Sha256: 30ea2370da2f0b88641616548041696cfb4641afb8207306e76b4a4a23c7f94d

Contents?: true

Size: 663 Bytes

Versions: 12

Compression:

Stored size: 663 Bytes

Contents

# encoding: utf-8

guard :bundler do
  watch('Gemfile')
end

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

  # 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/unit'                       }

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

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
mbj-assets-0.0.11 Guardfile
esearch-0.2.2 Guardfile
mbj-assets-0.0.10 Guardfile
esearch-0.2.1 Guardfile
mbj-assets-0.0.9 Guardfile
mbj-assets-0.0.8 Guardfile
mbj-assets-0.0.7 Guardfile
mbj-assets-0.0.6 Guardfile
mbj-assets-0.0.5 Guardfile
mbj-assets-0.0.4 Guardfile
mbj-assets-0.0.3 Guardfile
esearch-0.2.0 Guardfile