Sha256: 9d5c63791479094c9e8a4b5c7e0e5919bd362dca940fb96311d126e19bec9e09

Contents?: true

Size: 697 Bytes

Versions: 3

Compression:

Stored size: 697 Bytes

Contents

# frozen_string_literal: true
guard :bundler do
  watch('Gemfile')
  watch('basquiat.gemspec')
end

guard :rspec, cmd: 'bundle exec rspec', all_on_start: true,
      keep: true, all_after_pass: true, run_all: { cmd: 'rspec -f progress' } do
  watch(%r{^spec/.+_spec.rb$})
  watch(%r{^spec/lib/.+_spec.rb$})
  watch(%r{^lib/basquiat/(.+)\.rb$}) { |matchdata| "spec/lib/#{matchdata[1]}_spec.rb" }
  watch('spec/spec_helper.rb') { 'spec' }
  watch(%r{spec/support/.+\.rb}) { 'spec' }
end

guard :rubocop, cmd: 'rubocop', cli: '-fs -c./.rubocop.yml' do
  # watch(%r{.+\.rb$})
  # watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
end

guard 'yard', cli: '-r' do
  watch %r{lib/.+\.rb}
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
basquiat-1.3.2 Guardfile
basquiat-1.3.1 Guardfile
basquiat-1.3.0 Guardfile