Sha256: 12652973780ceb7d471ba58a3c698b13bccdb9b7bff33d363255763a6eb077ee

Contents?: true

Size: 765 Bytes

Versions: 37

Compression:

Stored size: 765 Bytes

Contents

# A sample Guardfile
# More info at https://github.com/guard/guard#readme

# This group allows to skip running rubocop when tests fail.
group :red_green_refactor, halt_on_fail: true do
  guard :minitest do
    watch(%r{^test/.+_test\.rb$})
    watch('test/test_helper.rb')  { 'test' }

    # Non-rails
    watch(%r{^lib/ndr_support/(.+)\.rb$}) { |m| "test/#{m[1]}_test.rb" }
  end

  # automatically check Ruby code style with Rubocop when files are modified
  guard :shell do
    watch(/.+\.(rb|rake)$/) do |m|
      unless system("bundle exec rake rubocop:diff #{m[0]}")
        Notifier.notify "#{File.basename(m[0])} inspected, offenses detected",
                        title: 'RuboCop results (partial)', image: :failed
      end
      nil
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
ndr_support-5.10.4 Guardfile
ndr_support-5.10.3 Guardfile
ndr_support-5.10.2 Guardfile
ndr_support-5.10.1 Guardfile
ndr_support-5.10.0 Guardfile
ndr_support-5.9.7 Guardfile
ndr_support-5.9.6 Guardfile
ndr_support-5.9.5 Guardfile
ndr_support-5.9.4 Guardfile
ndr_support-5.9.3 Guardfile
ndr_support-5.9.2 Guardfile
ndr_support-5.9.1 Guardfile
ndr_support-5.9.0 Guardfile
ndr_support-5.8.4 Guardfile
ndr_support-5.8.3 Guardfile
ndr_support-5.8.2 Guardfile
ndr_support-5.8.1 Guardfile
ndr_support-5.8.0 Guardfile
ndr_support-5.7.1 Guardfile
ndr_support-5.7.0 Guardfile