Sha256: 7b10d07072dc5398561fa50be6ba4d851e5cb84204cf09b13a5416be62223326
Contents?: true
Size: 815 Bytes
Versions: 12
Compression:
Stored size: 815 Bytes
Contents
# A sample Guardfile # More info at https://github.com/guard/guard#readme ## Uncomment and set this to only include directories you want to watch # directories %w(app lib config test spec feature) ## Uncomment to clear the screen before every task # clearing :on guard :minitest do # with Minitest::Unit # watch(%r{^test/(.*)\/?test_(.*)\.rb$}) # watch(%r{^lib/(.*/)?([^/]+)\.rb$}) { |m| "test/#{m[1]}test_#{m[2]}.rb" } # watch(%r{^test/test_helper\.rb$}) { 'test' } # with Minitest::Spec watch(/^spec\/(.*)_spec\.rb$/) watch(/^lib\/(.+)\.rb$/) { 'spec' } # watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" } watch(/^spec\/spec_helper\.rb$/) { 'spec' } end guard :rubocop do watch(/.+\.rb$/) watch(/(?:.+\/)?\.rubocop\.yml$/) { |m| File.dirname(m[0]) } end
Version data entries
12 entries across 12 versions & 2 rubygems