Sha256: d9717459c394dda6513a2da5639db12a09e94ebed4d2794079a9e9d6cd265f8f
Contents?: true
Size: 1.21 KB
Versions: 3
Compression:
Stored size: 1.21 KB
Contents
# encoding: utf-8 guard :bundler do watch('Gemfile') watch('Gemfile.lock') watch(%w{.+.gemspec\z}) end guard :rspec, cli: File.read('.rspec').split.join(' '), keep_failed: false do # Run all specs if configuration is modified watch('.rspec') { 'spec' } watch('Guardfile') { 'spec' } watch('Gemfile.lock') { 'spec' } watch('spec/spec_helper.rb') { 'spec' } # Run all specs if supporting files are modified watch(%r{\Aspec/(?:fixtures|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/(.+)/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 guard :rubocop, cli: %w[--config config/rubocop.yml] do watch(%r{.+\.(?:rb|rake)\z}) watch(%r{\Aconfig/rubocop\.yml\z}) { |m| File.dirname(m[0]) } watch(%r{(?:.+/)?\.rubocop\.yml\z}) { |m| File.dirname(m[0]) } end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
equalizer-0.0.8 | Guardfile |
axiom-0.1.1 | Guardfile |
equalizer-0.0.7 | Guardfile |