Sha256: d51e8895b281e2f402cb70915c891183cc7933535af3e19297710f4e4fa0ea63

Contents?: true

Size: 659 Bytes

Versions: 1

Compression:

Stored size: 659 Bytes

Contents

guard :rspec, cmd: 'bin/rspec' do
  require 'guard/rspec/dsl'
  dsl = Guard::RSpec::Dsl.new(self)

  # RSpec files
  rspec = dsl.rspec
  watch(rspec.spec_helper) { rspec.spec_dir }
  watch(rspec.spec_support) { rspec.spec_dir }
  watch(rspec.spec_files)

  # Ruby files
  watch(%r{lib/(.+)\.rb$}) { |match| "spec/unit/#{match[1]}_spec.rb" }
end

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

guard :yard, server: false do
  watch(/^(README|LICENSE|CODE_OF_CONDUCT)/)
  watch(%r{lib\/.+\.rb})
  watch(/.yardopts/)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
registrable-0.1.0 Guardfile