[Rubygems-developers] The deprecation of autorequire
Daniel.Berger at qwest.com
Wed Jan 14 16:17:58 EST 2009
I'm curious as to why Gem#gem doesn't autorequire the library:
require 'ptools' # Must I do this?
If I leave out the 'require' on line 3 it doesn't work.
I checked rubygems.rb and the $LOAD_PATH definitely includes the path
where the gems are stored, but as far as I can tell the Gem.activate
method does _not_ automatically call require (or gem_original_require)
on the gem specified.
I realize in most cases you can just use reqular 'require', but that
doesn't work in all cases. For example, if I want to use Test::Unit 2.x
instead of the one that ships with the stdlib, I must use the above
This isn't a major deal. It's just a minor nuisance really, but I was
This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.
More information about the Rubygems-developers