Sha256: 4cb63243d74e8d0d7ecd037175d3fc2aa9424b1ce6caffe56ee61cddd92d53e1
Contents?: true
Size: 762 Bytes
Versions: 2
Compression:
Stored size: 762 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(%r{\Alib/(veritas/optimizer)/support/(.+)\.rb\z}) { |m| Dir["spec/unit/#{m[1]}/#{m[2]}"] } 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
veritas-optimizer-0.0.7 | Guardfile |
veritas-optimizer-0.0.6 | Guardfile |