Sha256: 72286d6775863b5444edd311c900961f2904be83235c52163fa25dc48ed68e56

Contents?: true

Size: 1.53 KB

Versions: 4

Compression:

Stored size: 1.53 KB

Contents

# A sample Guardfile
# More info at https://github.com/guard/guard#readme

guard 'bundler' do
  watch('Gemfile')
  watch(/^.+\.gemspec/)
end

guard 'spork', :cucumber_env => { 'RAILS_ENV' => 'test' }, :rspec_env => { 'RAILS_ENV' => 'test' } do
  watch(%r{spec/mock/rails_.*?/config/application.rb})
  watch(%r{spec/mock/rails_.*?/config/environment.rb})
  watch(%r{^spec/mock/rails_.*?/config/environments/.+\.rb$})
  watch(%r{^spec/mock/rails_.*?/config/initializers/.+\.rb$})
  watch('Gemfile')
  watch('Gemfile.lock')
  watch('spec/spec_helper.rb') { :rspec }
  watch(%r{features/support/}) { :cucumber }
end

guard 'rspec', version: 2, cli: '--color -f doc --drb --fail-fast', all_after_pass: false, all_on_start: false 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{^spec/mock/rails_.*?/app/(.+)\.rb$})                           { |m| "spec/#{m[1]}_spec.rb" }
  watch(%r{^spec/mock/rails_.*?/app/(.*)(\.erb|\.haml)$})                 { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
  watch(%r{^spec/mock/rails_.*?/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(%r{spec/mock/rails_.*?/config/routes.rb})                           { "spec/routing" }
  watch(%r{spec/mock/rails_.*?/app/controllers/application_controller.rb})  { "spec/controllers" }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mount_doc-1.0.0 Guardfile
mount_doc-0.0.3 Guardfile
mount_doc-0.0.2 Guardfile
mount_doc-0.0.1 Guardfile