diff options
Diffstat (limited to 'Guardfile')
-rw-r--r-- | Guardfile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Guardfile b/Guardfile new file mode 100644 index 0000000..b5c7298 --- /dev/null +++ b/Guardfile @@ -0,0 +1,15 @@ +# A sample Guardfile +# More info at https://github.com/guard/guard#readme + +guard 'bundler' do + watch('Gemfile') + # Uncomment next line if Gemfile contain `gemspec' command + watch(/^.+\.gemspec/) +end + +guard 'rspec', :version => 2 do + watch(%r{^spec/.+_spec\.rb$}) + watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } + watch('spec/spec_helper.rb') { "spec" } +end + |