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:
parent
a91874a4df
commit
b00c850ef8
16
Guardfile
16
Guardfile
@ -1,11 +1,15 @@
|
|||||||
guard :rspec, :version => 2, :all_on_start => false, :all_after_pass => false, :keep_failed => false, :cli => '--format doc' do
|
group :specs do
|
||||||
watch(%r{^spec/.+_spec\.rb$})
|
guard :rspec, :cli => '--format doc' do
|
||||||
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
watch(%r{^spec/.+_spec\.rb$})
|
||||||
watch('spec/spec_helper.rb') { "spec" }
|
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
||||||
|
watch('spec/spec_helper.rb') { "spec" }
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
guard :ronn do
|
group :docs do
|
||||||
watch(%r{^man/.+\.ronn?$})
|
guard :ronn do
|
||||||
|
watch(%r{^man/.+\.ronn?$})
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# require 'guard/guard'
|
# require 'guard/guard'
|
||||||
|
Loading…
Reference in New Issue
Block a user