Sha256: a5199673cce0a50647821c882556c94f41bc2c8f9caadcf5d1540d3f2e0c3a97
Contents?: true
Size: 597 Bytes
Versions: 13
Compression:
Stored size: 597 Bytes
Contents
# A sample Guardfile # More info at https://github.com/guard/guard#readme rspec_option = { all_after_pass: false, all_on_start: false } if /darwin/ =~ RUBY_PLATFORM rspec_option[:binstubs] = 'spec' end guard :rspec, rspec_option do watch(%r{^spec/.+_spec\.rb$}) watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } watch('spec/spec_helper.rb') { "spec" } watch(%r{^spec/support/(.+)\.rb$}) { "spec" } end guard :rubocop, all_on_start: false do watch(%r{.+\.rb$}) watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) } end # Local Variables: # mode: ruby # End:
Version data entries
13 entries across 13 versions & 1 rubygems