Sha256: 2a6bab23e297ba0d6108cf8ede2f046ee51427b32069a89001a2eea7aa957808

Contents?: true

Size: 710 Bytes

Versions: 17

Compression:

Stored size: 710 Bytes

Contents

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

guard 'cucumber' do
  watch(%r{^features/.+\.feature$})
  watch(%r{^features/support/.+$})          { 'features' }
  watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' }
end

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/helper\.rb|)    { 'test' }

  # with Minitest::Spec
  # watch(%r|^spec/(.*)_spec\.rb|)
  # watch(%r|^lib/(.*)([^/]+)\.rb|)     { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
  # watch(%r|^spec/spec_helper\.rb|)    { "spec" }
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
bibtex-ruby-3.1.3 Guardfile
bibtex-ruby-3.1.2 Guardfile
bibtex-ruby-3.1.1 Guardfile
bibtex-ruby-3.1.0 Guardfile
bibtex-ruby-3.0.1 Guardfile
bibtex-ruby-3.0.0 Guardfile
bibtex-ruby-2.3.4 Guardfile
bibtex-ruby-2.3.3 Guardfile
bibtex-ruby-2.3.2 Guardfile
bibtex-ruby-2.3.1 Guardfile
bibtex-ruby-2.3.0 Guardfile
bibtex-ruby-2.2.2 Guardfile
bibtex-ruby-2.2.1 Guardfile
bibtex-ruby-2.2.0 Guardfile
bibtex-ruby-2.1.2 Guardfile
bibtex-ruby-2.1.1 Guardfile
bibtex-ruby-2.1.0 Guardfile