Sha256: a9ea2290b9d1ec0dcd467105fd3335235cc2e6606939732c6e6897ff13dbec7b

Contents?: true

Size: 611 Bytes

Versions: 3

Compression:

Stored size: 611 Bytes

Contents

group :specs, halt_on_fail: true do
  guard :rspec, cmd: 'bundle exec rspec', failed_mode: :keep, all_on_start: true do
    watch(%r{spec/.+_spec.rb})
    watch(%r{lib/(.+)\.rb})    { |m| "spec/lib/#{m[1]}_spec.rb" }
    watch('spec/spec_helper.rb') { 'spec' }
    watch('lib/guard/livereload/templates/Guardfile') { 'spec/lib/guard/livereload/template_spec.rb' }
  end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
guard-livereload-2.5.2 Guardfile
guard-livereload-2.5.1 Guardfile
guard-livereload-2.5.0 Guardfile