Created
May 23, 2011 21:11
-
-
Save anithri/987622 to your computer and use it in GitHub Desktop.
Guardfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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