Sha256: 61c4aa83ebbf1a69d6a80e30ce07ea1977e5f5171c5957d82efd830ab4b1472b

Contents?: true

Size: 635 Bytes

Versions: 7

Compression:

Stored size: 635 Bytes

Contents

# encoding: utf-8

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

7 entries across 7 versions & 3 rubygems

Version Path
veritas-do-adapter-0.0.7 Guardfile
veritas-sql-generator-0.0.7 Guardfile
veritas-0.0.7 Guardfile
veritas-do-adapter-0.0.6 Guardfile
veritas-do-adapter-0.0.5 Guardfile
veritas-sql-generator-0.0.6 Guardfile
veritas-0.0.6 Guardfile