rubyist/guard-rake — pull request #26 by erikh (2013-02-15 14:08:30+00:00)
Title: add a new option, :failure_ok, to tolerate failures from rake tasks

Hi!

I've added this option to allow me to use rake tasks which might fail -- my personal usage is a rake task that runs rdoc coverage -- if the coverage is not 100%, the rake task fails (which is what I want for release tasking and so forth).

This unfortunately results in the exception bubbling up and more or less crashing the guard-rake subsystem -- the first time this runs in guard will be the last, which isn't very great for adding documentation and testing coverage via rake tasks. :)

The option I've added swallows the exception and is off by default, allowing the existing behavior, but allowing me to also specify that a failure is ok here.

Let me know if you have any qualms! Thanks.