Sha256: e0434a10b99b2914180b5fca33f9073c475ecb93fa64c0c523dc1be6cd91f41f

Contents?: true

Size: 1.44 KB

Versions: 19

Compression:

Stored size: 1.44 KB

Contents

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

guard 'bundler' do
  watch('Gemfile')
  # Uncomment next line if Gemfile contain `gemspec' command
  # watch(/^.+\.gemspec/)
end

guard 'rspec', :version => 2, :cli => "--color --format nested --drb", :all_on_start => false, :all_after_pass => false do
  watch(%r{^spec/.+_spec\.rb$})
  watch(%r{^lib/(.+)\.rb$})     { |m| "spec/lib/#{m[1]}_spec.rb" }
  watch(%r{^lib/api_resource/(.+)\.rb$})  {|m| "spec/lib/#{m[1]}_spec.rb"}
  watch('spec/spec_helper.rb')  { "spec/" }

  # Rails example
  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"] }
  watch(%r{^spec/support/(.+)\.rb$})                  { "spec/" }
  watch('spec/spec_helper.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" }
end

guard 'spork' do
  watch('api_resource.gemspec')
  watch('Gemfile.lock')
  watch('spec/spec_helper.rb') { :rspec }
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
api_resource-0.6.18 Guardfile
api_resource-0.6.17 Guardfile
api_resource-0.6.16 Guardfile
api_resource-0.6.15 Guardfile
api_resource-0.6.14 Guardfile
api_resource-0.6.13 Guardfile
api_resource-0.6.12 Guardfile
api_resource-0.6.11 Guardfile
api_resource-0.6.9 Guardfile
api_resource-0.6.10 Guardfile
api_resource-0.6.8 Guardfile
api_resource-0.6.7 Guardfile
api_resource-0.6.6 Guardfile
api_resource-0.6.5 Guardfile
api_resource-0.6.4 Guardfile
api_resource-0.6.3 Guardfile
api_resource-0.6.2 Guardfile
api_resource-0.6.1 Guardfile
api_resource-0.6.0 Guardfile