From b00c850ef826dd1374bc5bf8a32bb15829983053 Mon Sep 17 00:00:00 2001 From: Michael Kessler Date: Wed, 28 Sep 2011 13:24:01 +0200 Subject: [PATCH] Put guards into groups. Now I can just run the :specs group and run all specs without generating the man pages. In addition I enabled the full BDD cycle for development, not sure why it wasn't enabled. Feel free to revert if there is a specific reason for that. --- Guardfile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Guardfile b/Guardfile index a1fe137..0f239c9 100644 --- a/Guardfile +++ b/Guardfile @@ -1,11 +1,15 @@ -guard :rspec, :version => 2, :all_on_start => false, :all_after_pass => false, :keep_failed => false, :cli => '--format doc' do - watch(%r{^spec/.+_spec\.rb$}) - watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" } - watch('spec/spec_helper.rb') { "spec" } +group :specs do + guard :rspec, :cli => '--format doc' do + watch(%r{^spec/.+_spec\.rb$}) + watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" } + watch('spec/spec_helper.rb') { "spec" } + end end -guard :ronn do - watch(%r{^man/.+\.ronn?$}) +group :docs do + guard :ronn do + watch(%r{^man/.+\.ronn?$}) + end end # require 'guard/guard'