Sha256: 95a3018405f16eed223467349ffb296892be5fb8a11461487f23a762a3427b82

Contents?: true

Size: 676 Bytes

Versions: 5

Compression:

Stored size: 676 Bytes

Contents

# encoding: utf-8

guard 'ego' do
  watch('Guardfile')
end

guard 'bundler' do
  watch('Gemfile')
end

guard 'rspec' do
  # run all specs if the spec_helper or supporting files files are modified
  watch('spec/spec_helper.rb')                      { 'spec' }
  watch(%r{\Aspec/(?:lib|support|shared)/.+\.rb\z}) { 'spec' }

  # run unit specs if associated lib code is modified
  watch(%r{\Alib/(.+)\.rb\z})                                         { |m| Dir["spec/unit/#{m[1]}"] }
  watch("lib/#{File.basename(File.expand_path('../', __FILE__))}.rb") { 'spec'                       }

  # run a spec if it is modified
  watch(%r{\Aspec/(?:unit|integration)/.+_spec\.rb\z})
end

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
veritas-sql-generator-0.0.5 Guardfile
veritas-0.0.5 Guardfile
veritas-sql-generator-0.0.4 Guardfile
veritas-optimizer-0.0.4 Guardfile
veritas-0.0.4 Guardfile