Guardfile in akero-1.0.4 vs Guardfile in akero-1.1.0
- old
+ new
@@ -1,5 +1,6 @@
+# frozen_string_literal: true
my_code = <<'RUBY_CODE'
if type == 'failed'
system "ssh 192.168.1.106 '~/bin/keyboard_leds -c1 >/dev/null'"
system "ssh 192.168.1.106 'afplay ~/.fail.wav'"
end
@@ -7,12 +8,12 @@
system "ssh 192.168.1.106 '~/bin/keyboard_leds -c0 >/dev/null'"
system "ssh 192.168.1.106 'afplay ~/.success.wav'"
end
RUBY_CODE
-notification :eval_notifier, :code => my_code
+notification :eval_notifier, code: my_code
-guard 'rspec', :cli => '--color --format doc' do
+guard 'rspec', cli: '--color --format doc' do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
- watch('spec/spec_helper.rb') { "spec" }
+ watch('spec/spec_helper.rb') { 'spec' }
end