rvm/pluginator — pull request #6 by justfalter (2014-08-14 16:06:23+00:00)
Title: Simplify loading of plugins

I ran into the issue that is ultimately the cause of #5. This commit (3754f57de3ad5082b2e85a7d0292be43a92eaef7) forces the requirement that all plugins be contained within a rubygem. So, pluginator would fail to load any plugins that are in $LOAD_PATH but not in a gem.

I removed the gem activation code as it was duplicating what is already being done by the rubygems' wrapper for 'require'. You can see that there is considerably more logic to the require wrapper than was present in the previous version of 'load_plugin': https://github.com/rubygems/rubygems/blob/master/lib/rubygems/core_ext/kernel_require.rb

This change modifies load_plugin so that it returns true if the path was successfully required, and false if a LoadError occurred. This works for the situation described by #3, which asks that pluginator only load files from activated gems.

Fixes #5