Sha256: 21e76ea30753daedde891c67fc7ce2f1d6d247e6432c37d0a1c8339ffc49cc1a
Contents?: true
Size: 1.15 KB
Versions: 8
Compression:
Stored size: 1.15 KB
Contents
# A sample Guardfile # More info at https://github.com/guard/guard#readme group 'specs' do guard 'rspec', :version => 2 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('spec/spec_helper.rb') { "spec" } watch('config/routes.rb') { "spec/routing" } watch('app/controllers/application_controller.rb') { "spec/controllers" } 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(%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"] } end end group 'features' do guard 'cucumber' do watch(%r{^features/.+\.feature$}) watch(%r{^features/support/.+$}) { 'features' } watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' } end end
Version data entries
8 entries across 8 versions & 1 rubygems
Version | Path |
---|---|
navi-0.2.1 | Guardfile |
navi-0.2.0 | Guardfile |
navi-0.1.4 | Guardfile |
navi-0.1.3 | Guardfile |
navi-0.0.17 | Guardfile |
navi-0.0.16 | Guardfile |
navi-0.0.15 | Guardfile |
navi-0.0.14 | Guardfile |