Skip to content

Instantly share code, notes, and snippets.

@anithri
Created May 23, 2011 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anithri/987622 to your computer and use it in GitHub Desktop.
Save anithri/987622 to your computer and use it in GitHub Desktop.
Guardfile
guard 'bundler' do
watch('Gemfile')
end
guard 'passenger' do
watch(%r{lib/.*\.rb})
watch(%r{config/.*\.rb})
end
guard 'livereload' do
watch(%r{^app/.+\.(erb|haml)$})
watch(%r{^app/helpers/.+\.rb$})
watch(%r{^/public/.+\.(css|js|html)$})
watch(%r{^config/locales/.+\.ym$})
end
guard 'rspec', :version => 2, :bundler => false, :formatter => "instafail" do
watch(%r{^spec/(.*)_spec\.rb})
watch(%r{^app/(.*)\.rb}) { |m| "spec/#{m[1]}_spec.rb" }
watch(%r{^lib/(.*)\.rb}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('config/routes.rb') { "spec/routing" }
watch('app/controllers/application_controller.rb') { "spec/controllers" }
watch('spec/support/controller_spec_helpers.rb') { "spec/controllers" }
watch('spec/factories.rb') { "spec/models" }
watch('spec/spec_helper.rb') { "spec" }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment