This repository has been archived by the owner on May 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Guardfile
66 lines (57 loc) · 2.48 KB
/
Guardfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
require 'active_support/core_ext'
# guard 'spork', :cucumber_env => { 'RAILS_ENV' => 'test' }, :rspec_env => { 'RAILS_ENV' => 'test' } do
# watch('config/application.rb')
# watch('config/environment.rb')
# watch(%r{^config/environments/.+\.rb$})
# watch(%r{^config/initializers/.+\.rb$})
# watch('Gemfile')
# watch('Gemfile.lock')
# watch('spec/spec_helper.rb') { :rspec }
# watch(%r{^spec/support/(.+)\.rb$})
# end
# guard 'rspec', :version => 2, :cli => "--drb" do
# watch(%r{^spec/.+_spec\.rb$})
# watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
# watch('spec/spec_helper.rb') { "spec" }
# # Rails example
# watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
# watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
# watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
# watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
# watch('config/routes.rb') { "spec/routing" }
# watch('app/controllers/application_controller.rb') { "spec/controllers" }
# # Capybara request specs
# watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
# # FactoryGirl
# # http://urgetopunt.com/2011/10/01/guard-factory-girl.html
# watch(%r{^spec/factories/(.+)\.rb$}) do |m|
# %W[
# spec/models/#{m[1].singularize}_spec.rb
# spec/controllers/#{m[1]}_controller_spec.rb
# spec/requests/#{m[1]}_spec.rb
# ]
# end
# end
guard 'annotate', :show_indexes => true do
watch( 'db/schema.rb' )
# Uncomment the following line if you also want to run annotate anytime
# a model file changes
#watch( 'app/models/**/*.rb' )
# Uncomment the following line if you are running routes annotation
# with the ":routes => true" option
#watch( 'config/routes.rb' )
end
# Possible options are :port, :executable, and :pidfile
guard 'redis'
### Guard::Resque
# available options:
# - :task (defaults to 'resque:work' if :count is 1; 'resque:workers', otherwise)
# - :verbose / :vverbose (set them to anything but false to activate their respective modes)
# - :trace
# - :queue (defaults to "*")
# - :count (defaults to 1)
# - :environment (corresponds to RAILS_ENV for the Resque worker)
guard 'resque', :environment => 'development' do
watch(%r{^app/(.+)\.rb$})
watch(%r{^lib/(.+)\.rb$})
end