guard :bundler do watch('Gemfile') watch(/^.+\.gemspec/) end guard :rspec do watch(%r{^spec/.+_spec\.rb$}) watch(%r{^lib/(.+)\.rb$}) { "spec" } watch(%r|^spec/{support,matchers}/(.+)\.rb$|) { "spec" } watch('spec/spec_helper.rb') { "spec" } end