Various tweaks #77

merged 6 commits into from Jun 7, 2011


None yet
2 participants

mislav commented Jun 7, 2011

This branch contains various small tweaks I've done to Guard. The most important is 17a654b for which I forgot to send a pull request in time for the the 0.4.0 release. Others are for you to review and cherry-pick if wanted

mislav added some commits May 26, 2011

gemspec: avoid adding the "lib/" directory to load path
Simply reading the gemspec shouldn't activate the gem by adding its
files to the load path.
refactor `get_guard_class` to first try the constant and fallback to …

This enables defining inline guard handlers to override ones present in gems,
e.g. you could define an inline Guard::RSpec handler and have guard use that
instead of first trying to load 'guard/rspec' from the 'guard-rspec' gem.

Also gets rid of the ill-named method `try_to_load_gem`. Handlers are simply
found in the $LOAD_PATH and don't have to necessarily come from gems.

thibaudgg commented Jun 7, 2011

Awesome, thanks!

@thibaudgg thibaudgg merged commit 2997ed6 into guard:master Jun 7, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment