Sha256: ec01d6ca6df04fe615f1f80f67808117cace4441295b1114b6835af5cb499a82

Contents?: true

Size: 621 Bytes

Versions: 17

Compression:

Stored size: 621 Bytes

Contents

# A sample Guardfile
# More info at https://github.com/guard/guard#readme

group :red_green_refactor, halt_on_fail: true do
  guard :rspec, cmd: 'bundle exec rspec' do
    watch(%r{^spec/.+_spec\.rb$})
    watch(%r{^lib/attributor/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
    watch('spec/spec_helper.rb') { 'spec' }
    watch('lib/attributor/base.rb') { 'spec' }
    watch('spec/support/models.rb') { 'spec' }
    watch('lib/attributor.rb') { 'spec' }
  end

  guard :rubocop, cli: '--auto-correct --display-cop-names' do
    watch(/.+\.rb$/)
    watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
attributor-8.0 Guardfile
attributor-7.1 Guardfile
attributor-7.0 Guardfile
attributor-6.5 Guardfile
attributor-6.4 Guardfile
attributor-6.3 Guardfile
attributor-6.2 Guardfile
attributor-6.1 Guardfile
attributor-6.0 Guardfile
attributor-5.7 Guardfile
attributor-5.6 Guardfile
attributor-5.5 Guardfile
attributor-5.4 Guardfile
attributor-5.3 Guardfile
attributor-5.2.1 Guardfile
attributor-5.2.0 Guardfile
attributor-5.1.0 Guardfile