Sha256: e7adc993f8b92a488e12f13a83c1fb8c2b35ac87c97dd85cdd1654d313c227c9

Contents?: true

Size: 896 Bytes

Versions: 14

Compression:

Stored size: 896 Bytes

Contents

# 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 :rubocop do
guard :rubocop, all_on_start: false, keep_failed: false, cli: ['-D'] do
  watch(%r{.+\.rb$})
  watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
end

guard :rspec, cmd: 'bundle exec rspec' do
  watch(%r{^spec/.+_spec\.rb$})
  watch(%r{^lib/(.+)\.rb$})     { |m| "spec/#{m[1]}_spec.rb" }
  watch(/^generators\/(.+)\.rb$/) { |_m| 'spec/schemaless/worker_spec' }

  watch('spec/spec_helper.rb')  { 'spec' }
end

Version data entries

14 entries across 14 versions & 5 rubygems

Version Path
mongoid-enum-i18n-0.8.1 Guardfile
mongoid-enum-i18n-0.5.0 Guardfile
mongoid-enum-i18n-0.3.3 Guardfile
mongoid-enum-i18n-0.3.0 Guardfile
mongoid-enum-i18n-0.2.9 Guardfile
hooray-0.3.0 Guardfile
mongoid-urls-0.0.7 Guardfile
mongoid-tenant-0.0.5 Guardfile
mongoid-urls-0.0.3 Guardfile
mongoid-ids-0.1.8 Guardfile
hooray-0.1.9 Guardfile
mongoid-ids-0.1.7 Guardfile
mongoid-ids-0.1.1 Guardfile
hooray-0.1.8 Guardfile