Sha256: d0348ab941f1508a7e479d5dfa695d9d81f69cc2ba4263867fa1baeaae9a79e6

Contents?: true

Size: 1.79 KB

Versions: 28

Compression:

Stored size: 1.79 KB

Contents

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

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

# Note: The cmd option is now required due to the increasing number of ways
#       rspec may be run, below are examples of the most common uses.
#  * bundler: 'bundle exec rspec'
#  * bundler binstubs: 'bin/rspec'
#  * spring: 'bin/rsspec' (This will use spring if running and you have
#                          installed the spring binstubs per the docs)
#  * zeus: 'zeus rspec' (requires the server to be started separetly)
#  * 'just' rspec: 'rspec'
guard :rspec, cmd: 'bundle exec 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" }
  watch('app/controllers/application_controller.rb')  { "spec/controllers" }
  watch('spec/rails_helper.rb')                       { "spec" }

  # Capybara features specs
  watch(%r{^app/views/(.+)/.*\.(erb|haml|slim)$})     { |m| "spec/features/#{m[1]}_spec.rb" }

  # Turnip features and steps
  watch(%r{^spec/acceptance/(.+)\.feature$})
  watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$})   { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
end

Version data entries

28 entries across 28 versions & 12 rubygems

Version Path
trax_model-0.0.97 Guardfile
trax_model-0.0.96 Guardfile
trax_model-0.0.95 Guardfile
trax_model-0.0.93 Guardfile
trax_model-0.0.92 Guardfile
trax_model-0.0.91 Guardfile
trax_model-0.0.9 Guardfile
trax_model-0.0.8 Guardfile
trax_model-0.0.7 Guardfile
trax_model-0.0.6 Guardfile
ull-etsii-alu0100315462-quiz-0.0.2 Guardfile
lppexam-0.0.1 Guardfile.example
my-gem-0.0.1 Guardfile
ull-etsii-alu0100315462-quiz-0.0.1 Guardfile
simpleselect-0.0.1 Guardfile
prct5-0.0.1 Guardfile
prct07-0.0.1 Guardfile
prct07_Noe_Adonai-0.0.1 Guardfile
quiz_dsl-0.1.0 Guardfile
quiz_dsl-0.0.1 Guardfile