puppetlabs/puppet — pull request #873 by kelseyhightower (2012-06-22 08:59:47+00:00)
Title: (#7788) Feature/3.0rc/autoloader works with rubygems

The autoloader includes rubygems in the search path when searching for
modules to load. Puppet can now load things like Faces, report
processors, and parser functions using rubygems.

Example:

$ gem install puppetlabs-cloud_provisioner-1.0.4.gem
...
Successfully installed fog-1.3.1
Successfully installed guid-0.1.1
Successfully installed puppetlabs-cloud_provisioner-1.0.4

$ puppet help
Usage: puppet [options] [options]

Available subcommands:
...
node_aws View and manage Amazon AWS EC2 nodes.

This patch adds a new `Puppet::Util::RubyGems#directories` method for
locating the latest gems and their load paths. This method is used in
two places:

* When searching for subcommands
* When auto loading plug-ins

Updated specs are included.