Sha256: 4aeb92cad087cfa1e698d616f7b3df944c9ba3388726066487d5d202cc537f64

Contents?: true

Size: 870 Bytes

Versions: 255

Compression:

Stored size: 870 Bytes

Contents

# frozen_string_literal: true

guard :bundler, cmd: 'bundle install' do
  watch('Gemfile')
  watch('.gemspec')
end

group :green_pass_then_cop, halt_on_fail: true do
  guard :rspec, cmd: 'bundle exec rspec -f doc' 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
    ruby = dsl.ruby
    dsl.watch_spec_files_for(ruby.lib_files)
    watch(%r{^lib//(.+)\.rb$}) { |m| "spec/unit/#{m[1]}_spec.rb" }
    watch(%r{^lib//commands/(.+)\.rb$}) { |m| "spec/unit/commands/#{m[1]}_spec.rb" }
  end

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

Version data entries

255 entries across 255 versions & 13 rubygems

Version Path
ad-agent_architecture-0.0.18 Guardfile
ad-agent_architecture-0.0.17 Guardfile
ad-agent_architecture-0.0.16 Guardfile
ad-agent_architecture-0.0.15 Guardfile
ad-agent_architecture-0.0.14 Guardfile
ad-agent_architecture-0.0.13 Guardfile
ad-agent_architecture-0.0.9 Guardfile
ad-agent_architecture-0.0.8 Guardfile
ad-agent_architecture-0.0.7 Guardfile
ad-agent_architecture-0.0.6 Guardfile
ad-agent_architecture-0.0.5 Guardfile
ad-agent_architecture-0.0.4 Guardfile
ad-agent_architecture-0.0.3 Guardfile
ad-agent_architecture-0.0.2 Guardfile
openai_101-1.2.8 Guardfile
openai_101-1.2.7 Guardfile
openai_101-1.2.6 Guardfile
openai_101-1.2.5 Guardfile
openai_101-1.2.4 Guardfile
openai_101-1.2.3 Guardfile