Sha256: 1421f32a633ec00dea1a7986103b4993787775b084d5bdcccad95ef28af93678
Contents?: true
Size: 1.57 KB
Versions: 10
Compression:
Stored size: 1.57 KB
Contents
notification :growl # Spork guard 'spork', rspec_env: { 'RAILS_ENV' => 'test' } do watch('config/environment.rb') watch('config/boot.rb') watch(%r{^config/environments/.+\.rb$}) watch(%r{^config/initializers/.+\.rb$}) watch(%r{^lib/.+\.rb$}) watch('Gemfile.lock') watch('spec/spec_helper.rb') { :rspec } end # Bundler guard :bundler do watch('Gemfile') end # Yard (documentation) guard :yard, stdout: 'log/yard.log' do watch(%r{lib/.+\.rb}) watch(%r{vendor/.+\.rb}) end # Cane (code metrics) guard :cane do watch(%r{^(.+)\.rb$}) end # Rubycritic (code metrics) guard 'rubycritic' do watch(%r{^lib/(.+)\.rb$}) end group :red_green_refactor, halt_on_fail: true do # RSpec guard :rspec, cmd: 'rspec -f html -o ./tmp/spec_results.html --fail-fast', launchy: false, all_on_start: false, failed_mode: :focus, notification: true do watch(%r{^spec/.+_spec\.rb$}) watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } watch('spec/spec_helper.rb') { "spec" } # Turnip features and steps watch(%r{^spec/acceptance/(.+)\.feature$}) watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' } end # Rubocop (code style checker) guard :rubocop, all_on_start: false, hide_stdout: false, cli: ['--out tmp/rubocop_results.html', '--format html', '--rails'], notification: true do watch(%r{.+\.rb$}) watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) } end end
Version data entries
10 entries across 5 versions & 1 rubygems