guard/guard-rspec — pull request #104 by nevir (2012-03-23 04:59:53+00:00)
Title: In process running with DRB via an explicit flag for blazingly fast specs [Proof of concept]

Note that this is a proof of concept; If you agree w/ this approach, I'll be glad to fill in tests/etc.

The motivation behind this was to get rid of the ~1sec delay spent resolving the `rspec` bin & loading `rspec/core` every time a file changes. If you're using DRB, we can skip all that entirely without worrying about corrupting the test environment. A watched spec notifies almost instantaneously now.

* Add :drb => true to your rspec guard block. This will cause guard-rspec
to switch over to a much faster in-process rspec runner that avoids
shelling out on each run.

* When :drb is active, :cli is ignored. You must use :args, which takes
an array of command line arguments (split on space) instead of a single
string. This allows for unambiguous argument parsing when passing
directly to rspec.

* :cli is deprecated in favor of :args, since it can be applied with :drb
being either on or off.