Sha256: 8dc1de786227e534d7d75395e6c45e645fc4687122b7a6556cd504effb79053d

Contents?: true

Size: 572 Bytes

Versions: 7

Compression:

Stored size: 572 Bytes

Contents

# frozen_string_literal: true

scope groups: %i[doc lint unit]

group :doc do
  guard :yard do
    watch(%r{^lib/(.+)\.rb$})
  end
end

group :lint do
  guard :rubocop do
    watch(%r{.+\.rb$})
    watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
  end
end

group :unit do
  guard :rspec, cmd: 'bundle exec rspec --color --format Fuubar' do
    watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
    watch(%r{^lib/planter/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
    watch(%r{^spec/.+_spec\.rb$})
    watch('spec/spec_helper.rb') { 'spec' }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
planter-cli-3.0.5 Guardfile
planter-cli-3.0.4 Guardfile
planter-cli-3.0.3 Guardfile
planter-cli-3.0.2 Guardfile
planter-cli-3.0.1 Guardfile
planter-cli-0.0.4 Guardfile
planter-cli-0.0.3 Guardfile