Sha256: dbe426b605794cbc905a31ead0323c8e27f88be1a96c9e3abf50271df6dcf552
Contents?: true
Size: 1.11 KB
Versions: 4
Compression:
Stored size: 1.11 KB
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 features) \ # .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")} ## Note: if you are using the `directories` clause above and you are not ## watching the project directory ('.'), then you will want to move ## the Guardfile to a watched dir and symlink it back, e.g. # # $ mkdir config # $ mv Guardfile config/ # $ ln -s config/Guardfile . # # and, you'll have to watch "config/Guardfile" instead of "Guardfile" guard :test do watch(%r{^test/.+_test\.rb$}) watch('test/test_helper.rb') { 'test' } # Non-rails watch(%r{^lib/jr/cli/(.+)\.rb$}) { |m| "test/unit/#{m[1]}_test.rb" } end guard "cucumber" do watch('bin/jr') { "features" } watch(%r{^lib/.+\.rb$}) { "features" } watch(%r{^features/.+\.feature$}) watch(%r{^features/support/.+$}) { "features" } watch(%r{^features/step_definitions/(.+)_steps\.rb$}) do |m| Dir[File.join("**/#{m[1]}.feature")][0] || "features" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
jr-cli-0.5.1 | Guardfile |
jr-cli-0.5.0 | Guardfile |
jr-cli-0.4.0 | Guardfile |
jr-cli-0.3.1 | Guardfile |