sandro/specjour — pull request #31 by jgdavey (2012-02-29 03:41:40+00:00)
Title: Use more conservative path matching for load path

This fixes a bug where if specjour appeared anywhere in the path, it
would be matched, which is common for users of rvm maintaining this gem
with a gemset named specjour.

Example: when developing specjour, I like using a gemset named specjour. This, unfortunately, caused *any* gem in that gemset to match.

This patch limits the path to those that have a lib folder immediately following the folder name, i.e. `specjour-1.0.1/lib` but not `~/.rvm/gems/ruby-1.9.3-p0@specjour/yard-1.0.0/lib`