guard "rspec" do watch(%r{^spec/.+_spec\.rb$}) watch(%r{^lib/(.+)\.rb$}) { "spec/thor_template_spec.rb" } watch(%r{^lib/thor_template/(.+)\.rb$}) { "spec/thor_template_spec.rb" } watch("spec/spec_helper.rb") { "spec/thor_template_spec.rb" } watch(%r{^lib/thor_template/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } end guard "bundler" do watch("Gemfile") watch(/^.+\.gemspec/) end