Sha256: 56472feae9464a46e8ebf9194f0e3e3658186aecd924273aa4af2f2296a0c075

Contents?: true

Size: 579 Bytes

Versions: 25

Compression:

Stored size: 579 Bytes

Contents

# -*- encoding: utf-8 -*-
ignore %r{^\.gem/}

def rspec_opts
  { :cmd => "bundle exec rspec" }
end

def rubocop_opts
  { :all_on_start => false, :keep_failed => false, :cli => "-r finstyle" }
end

group :red_green_refactor, :halt_on_fail => true do
  guard :rspec, rspec_opts do
    watch(%r{^spec/(.*)_spec\.rb})
    watch(%r{^lib/(.*)([^/]+)\.rb})   { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
    watch(%r{^spec/spec_helper\.rb})  { "spec" }
  end

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

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
kitchen-vagrant-1.3.4 Guardfile
kitchen-vagrant-1.3.3 Guardfile
kitchen-vagrant-1.3.2 Guardfile
kitchen-vagrant-1.3.1 Guardfile
kitchen-vagrant-1.3.0 Guardfile
kitchen-vagrant-1.2.1 Guardfile
kitchen-vagrant-1.2.0 Guardfile
kitchen-vagrant-1.1.1 Guardfile
kitchen-vagrant-1.1.0 Guardfile
kitchen-vagrant-1.0.2 Guardfile
kitchen-vagrant-1.0.1 Guardfile
kitchen-vagrant-1.0.0 Guardfile
kitchen-vagrant-0.21.1 Guardfile
kitchen-vagrant-0.21.0 Guardfile
kitchen-vagrant-0.20.0 Guardfile
kitchen-inspec-0.9.0 Guardfile
kitchen-vagrant-0.19.0 Guardfile
kitchen-vagrant-0.18.0 Guardfile
kitchen-vagrant-0.17.0 Guardfile
kitchen-vagrant-0.17.0.rc.1 Guardfile