guard :bundler do watch('Gemfile') # Uncomment next line if your Gemfile contains the `gemspec' command. watch(/^.+\.gemspec/) end guard 'rspec', all_on_start: true, all_after_pass: true, cmd: 'bundle exec rspec' do watch(%r{^spec/.+_spec\.rb$}) watch(%r{^lib/(.+)\.rb$}) { "spec" } watch('spec/spec_helper.rb') { "spec" } end