Sha256: ec6ffc8bec42e3fceea52b2b6de49e183cc631bdf2b9740f3420a489f58ce1e2

Contents?: true

Size: 895 Bytes

Versions: 10

Compression:

Stored size: 895 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(/.+\.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(%r{^generators/(.+)\.rb$}) { |_m| 'spec/schemaless/worker_spec' }

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

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
mongoid-tenant-0.3.7 Guardfile
mongoid-tenant-0.3.5 Guardfile
mongoid-urls-0.5.0 Guardfile
mongoid-tenant-0.3.3 Guardfile
mongoid-tenant-0.3.1 Guardfile
mongoid-urls-0.3.0 Guardfile
mongoid-tenant-0.0.9 Guardfile
mongoid-tenant-0.0.8 Guardfile
mongoid-urls-0.0.9 Guardfile
mongoid-tenant-0.0.7 Guardfile