Guardfile in webhookr-0.2.0 vs Guardfile in webhookr-0.3.0
- old
+ new
@@ -1,31 +1,28 @@
-guard 'minitest', :test_folders => 'test', :test_file_patterns => '*_test.rb' do
+guard 'minitest', test_folders: 'test', test_file_patterns: '*_test.rb' do
watch(%r|^test/(.+)_test\.rb|)
- watch(%r|^test/stubs/(.+)\.rb$|) { "test" }
+ watch(%r|^test/stubs/(.+)\.rb$|) { 'test' }
# Rails
- watch(%r{^app/models/(.+)\.rb$}) { |m|
+ watch(%r{^app/models/(.+)\.rb$}) do |m|
"test/unit/#{m[1]}_test.rb"
- }
+ end
- watch(%r{^app/controllers/(.+)\.rb$}) { |m|
+ watch(%r{^app/controllers/(.+)\.rb$}) do |m|
"test/functional/#{m[1]}_test.rb"
- }
+ end
- watch('config/routes.rb') {
- ["test/functional", "test/integration"]
- }
+ watch('config/routes.rb') do
+ ['test/functional', 'test/integration']
+ end
end
guard 'livereload' do
watch('README.html')
end
-guard 'markdown', :convert_on_start => true do
- watch ('README.md') { "./README.md|./README.html" }
+guard 'markdown', convert_on_start: true do
+ watch('README.md') { './README.md|./README.html' }
end
-if File.exists?('Guardfile.local')
- instance_eval File.read('Guardfile.local')
-end
-
+instance_eval File.read('Guardfile.local') if File.exist?('Guardfile.local')