Guardfile in rapid-rack-0.2.0 vs Guardfile in rapid-rack-0.3.0
- old
+ new
@@ -2,15 +2,15 @@
watch('Gemfile')
watch(/^.+\.gemspec/)
end
guard :rspec, cmd: 'bundle exec rspec' do
- watch(/^spec\/.+_spec\.rb$/)
- watch(/^lib\/(.+)\.rb$/) { |m| "spec/lib/#{m[1]}_spec.rb" }
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch(%r{^spec/(dummy|support)/.+\.rb}) { 'spec' }
watch('spec/spec_helper.rb') { 'spec' }
end
guard :rubocop do
watch(/.+\.rb$/)
- watch(/(?:.+\/)?\.rubocop\.yml$/) { |m| File.dirname(m[0]) }
+ watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
end