Sha256: ed99cfe807384e590ebea2baca45dbdb64c4e0176b1a9cdfd0dc104fdd84f5bc

Contents?: true

Size: 984 Bytes

Versions: 15

Compression:

Stored size: 984 Bytes

Contents

# frozen_string_literal: true

ignore(/
  bin | public | node_modules | tmp | .git
/x)

guard :bundler do
  watch('Gemfile')
  watch('Gemfile.lock')
end

group :specs, halt_on_fail: true do
  guard :rspec,
        cmd: 'bundle exec rspec --color --format documentation',
        all_after_pass: false,
        all_on_start: false,
        failed_mode: :keep 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)

    watch(%r{^config/(.+)\.rb$})

    watch(%r{^spec/factories/(.+)\.rb$})
  end

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

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
cyclone_lariat-1.0.0 Guardfile
luna_park-0.13.2 Guardfile
luna_park-0.13.1 Guardfile
luna_park-0.13.0 Guardfile
cyclone_lariat-1.0.0.rc9 Guardfile
cyclone_lariat-1.0.0.rc8 Guardfile
cyclone_lariat-1.0.0.rc7 Guardfile
cyclone_lariat-1.0.0.rc6 Guardfile
cyclone_lariat-1.0.0.rc5 Guardfile
cyclone_lariat-1.0.0.rc4 Guardfile
luna_park-0.12.1 Guardfile
luna_park-0.12.0 Guardfile
cyclone_lariat-1.0.0.rc3 Guardfile
cyclone_lariat-1.0.0.rc2 Guardfile
cyclone_lariat-1.0.0.rc1 Guardfile