Sha256: 783172a61d5bed2062720517aacab834764986b8e25430c960a4509328f411ea

Contents?: true

Size: 729 Bytes

Versions: 37

Compression:

Stored size: 729 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
  ignore(%r|swp$|)

  # 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

37 entries across 37 versions & 2 rubygems

Version Path
bibtex-ruby-5.0.1 Guardfile
bibtex-ruby-5.0.0 Guardfile
bibtex-ruby-4.4.7 Guardfile
bibtex-ruby-4.4.6 Guardfile
bibtex-ruby-4.4.5 Guardfile
bibtex_to_scrapbox-0.2.0 gems/gems/bibtex-ruby-4.4.4/Guardfile
bibtex_to_scrapbox-0.1.0 gems/gems/bibtex-ruby-4.4.4/Guardfile
bibtex-ruby-4.4.4 Guardfile
bibtex-ruby-4.4.3 Guardfile
bibtex-ruby-4.4.2 Guardfile
bibtex-ruby-4.4.1 Guardfile
bibtex-ruby-4.4.0 Guardfile
bibtex-ruby-4.3.0 Guardfile
bibtex-ruby-4.2.0 Guardfile
bibtex-ruby-4.1.2 Guardfile
bibtex-ruby-4.1.1 Guardfile
bibtex-ruby-4.1.0 Guardfile
bibtex-ruby-4.0.16 Guardfile
bibtex-ruby-4.0.15 Guardfile
bibtex-ruby-4.0.14 Guardfile