Sha256: f008476efdea0ed0af46e8d81f1a4303a2e2ac5c9d4ea3622fcd87c3b6b05148

Contents?: true

Size: 647 Bytes

Versions: 16

Compression:

Stored size: 647 Bytes

Contents

group :red_green_refactor, halt_on_fail: true do
  guard :rspec, cmd: 'rspec' do
    require 'guard/rspec/dsl'
    dsl = Guard::RSpec::Dsl.new(self)

    # Feel free to open issues for suggestions and improvements

    # 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)
  end

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
activerecord_csv_importer-0.4.0 Guardfile
activerecord_csv_importer-0.3.0 Guardfile
activerecord_csv_importer-0.2.3 Guardfile
activerecord_csv_importer-0.2.2 Guardfile
activerecord_csv_importer-0.2.1 Guardfile
activerecord_csv_importer-0.2.0 Guardfile
activerecord_csv_importer-0.1.9 Guardfile
activerecord_csv_importer-0.1.8 Guardfile
activerecord_csv_importer-0.1.7 Guardfile
activerecord_csv_importer-0.1.6 Guardfile
activerecord_csv_importer-0.1.5 Guardfile
activerecord_csv_importer-0.1.4 Guardfile
activerecord_csv_importer-0.1.3 Guardfile
activerecord_csv_importer-0.1.2 Guardfile
activerecord_csv_importer-0.1.1 Guardfile
activerecord_csv_importer-0.1.0 Guardfile