Various tweaks #77

Merged
merged 6 commits into from Jun 7, 2011
Commits on Jun 7, 2011
  1. @mislav
  2. @mislav

    gemspec: avoid adding the "lib/" directory to load path

    mislav committed May 26, 2011
    Simply reading the gemspec shouldn't activate the gem by adding its
    files to the load path.
  3. @mislav
  4. @mislav

    include CHANGELOG in the gem

    mislav committed May 26, 2011
  5. @mislav

    refactor `get_guard_class` to first try the constant and fallback to …

    mislav committed May 26, 2011
    …require
    
    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.
  6. @mislav

    skip version comparison if Gem::Version is not available

    mislav committed May 26, 2011
    This decouples Guard from RubyGems