Sha256: 7dab271f622f6fe49d139228bf3fcc8cc6720af71e9e4a351098c6bc075e84d5

Contents?: true

Size: 1.11 KB

Versions: 25

Compression:

Stored size: 1.11 KB

Contents

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

# 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 'ctags-bundler', :src_path => ["lib", "spec/support"] do
  watch(/^(app|lib|spec\/support)\/.*\.rb$/)
  watch('Gemfile.lock')
end

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{^spec/support/(.+)\.rb$})                  { "spec" }

  # 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

25 entries across 25 versions & 2 rubygems

Version Path
moysklad-0.5 Guardfile
moysklad-0.4.10 Guardfile
moysklad-0.4.9 Guardfile
moysklad-0.4.8 Guardfile
moysklad-0.4.7 Guardfile
moysklad-0.4.6 Guardfile
moysklad-0.4.5 Guardfile
moysklad-0.4.4 Guardfile
moysklad-0.4.3 Guardfile
moysklad-0.4.2 Guardfile
moysklad-0.4.1 Guardfile
moysklad-0.4.0 Guardfile
moysklad-0.3.4 Guardfile
moysklad-0.3.3 Guardfile
moysklad-0.3.2 Guardfile
moysklad-0.3.1 Guardfile
moysklad-0.3.0 Guardfile
amo_crm-0.2.2 Guardfile
moysklad-0.2.1 Guardfile
moysklad-0.2.0 Guardfile