I hereby claim:
- I am igel on github.
- I am igelei (https://keybase.io/igelei) on keybase.
- I have a public key ASDx5e08AAwZryDHFw8SUstrqXo7r9JFyYuYES17Xmqw2Ao
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
require 'watir' | |
require 'notify' | |
def log (message) puts " #{message}" end | |
def success (message) puts "+ #{message}" end | |
def fail (message) puts "- #{message}" end | |
def notify (message) | |
success message.upcase | |
Notify.notify 'Burgerbot', message |
FROM debian | |
RUN apt-get update && apt-get install -y --no-install-recommends chromium | |
CMD chromium --headless --verbose --no-sandbox --screenshot https://www.chromestatus.com |
;; This is an adapted version of the tests from http://codekata.com/kata/kata09-back-to-the-checkout/ for Clojure | |
;; Original version by Dave Thomas | |
;; Run it like this: | |
;; lein exec check_out.clj | |
;; # or with Docker: | |
;; docker run -v `pwd`:`pwd` -w `pwd` clojure:alpine lein exec check_out.clj | |
(ns check-out.core | |
(:require [clojure.test :refer [is are deftest testing run-tests]] |
require 'sun_times' | |
# 1. Install ruby | |
# 2. gem install ruby-sun-times | |
# 3. ruby sun.rb | |
def f(t) | |
t.strftime("%H:%M") | |
end |
# Source: https://gist.github.com/iGEL/3cecd4bf5518a627cb2aaf9802c37f14 | |
# Fails if the user is currently not on the configured branch in git. | |
# Output doesn't matter, only that it succeeds (exit status 0). | |
# Current terraform version: v0.11.2 | |
data "external" "enforce_workspace" { | |
program = ["./git-branch"] | |
query = { |
diff --git a/spec/rubocop/cop/style/lambda_call_spec.rb b/spec/rubocop/cop/style/lambda_call_spec.rb | |
index abbd89c..93d37b9 100644 | |
--- a/spec/rubocop/cop/style/lambda_call_spec.rb | |
+++ b/spec/rubocop/cop/style/lambda_call_spec.rb | |
@@ -61,5 +61,15 @@ describe RuboCop::Cop::Style::LambdaCall, :config do | |
new_source = autocorrect_source(['a.call(x)']) | |
expect(new_source).to eq('a.(x)') | |
end | |
+ | |
+ it 'auto-corrects x.call to x.()' do |
# frozen_string_literal: true | |
unless Mail::VERSION.version == "2.6.4" | |
raise "Please delete #{__FILE__}, it's not required anymore" | |
end | |
# This file monkey patches away the new deprecation warnings from Ruby 2.4. | |
# Lifted here: | |
# * https://github.com/mikel/mail/pull/1053 | |
# * https://github.com/mikel/mail/pull/1058 |
I hereby claim:
To claim this, I am signing this object:
module WebMock | |
class NetConnectNotAllowedError < Exception | |
alias_method :stubbing_instructions_without_curl, :stubbing_instructions | |
private | |
def stubbing_instructions(request_signature) | |
[ | |
stubbing_instructions_without_curl(request_signature), | |
CurlInstructions.new(request_signature).instructions |
# This is a reimplementation of the tests of this kata: | |
# http://codekata.com/kata/kata09-back-to-the-checkout/ | |
# Original implementation by Dave Thomas | |
RSpec.describe CheckOut do | |
# Item Unit Special | |
# Price Price | |
# -------------------------- | |
# A 50 3 for 130 | |
# B 30 2 for 45 |