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.
This commit is contained in:
Michael Kessler 2011-09-28 13:24:01 +02:00
parent a91874a4df
commit b00c850ef8

View File

@ -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'