Sha256: 50e6482eca3db70546dd580a4d0b1c82172bef9e4bb28f4b7f064561c6eaffe3

Contents?: true

Size: 887 Bytes

Versions: 166

Compression:

Stored size: 887 Bytes

Contents

# frozen_string_literal: true

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

guard :rspec 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|\.slim)$})          { |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' }
end

guard :rubocop do
  watch(/.+\.rb$/)
  watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
end

Version data entries

166 entries across 166 versions & 6 rubygems

Version Path
deimos-ruby-2.0.2 Guardfile
deimos-ruby-2.0.1 Guardfile
deimos-ruby-2.0.0 Guardfile
deimos-ruby-2.0.0.pre.beta7 Guardfile
deimos-ruby-2.0.0.pre.beta6 Guardfile
deimos-ruby-2.0.0.pre.beta5 Guardfile
deimos-ruby-2.0.0.pre.beta4 Guardfile
deimos-ruby-2.0.0.pre.beta3 Guardfile
deimos-ruby-2.0.0.pre.beta2 Guardfile
deimos-ruby-2.0.0.pre.beta1 Guardfile
deimos-ruby-2.0.0.pre.alpha7 Guardfile
deimos-ruby-2.0.0.pre.alpha6 Guardfile
deimos-ruby-2.0.0.pre.alpha5 Guardfile
deimos-ruby-2.0.0.pre.alpha4 Guardfile
deimos-ruby-2.0.0.pre.alpha3 Guardfile
deimos-ruby-2.0.0.pre.alpha2 Guardfile
deimos-ruby-2.0.0.pre.alpha1 Guardfile
fig_tree-0.2.0 Guardfile
deimos-ruby-1.24.2 Guardfile
deimos-ruby-1.24.1 Guardfile