Hi, I'm curious as to why Gem#gem doesn't autorequire the library:
require 'rubygems' gem 'ptools' require 'ptools' # Must I do this? p File.which('ruby') 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. Why not? 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 approach. This isn't a major deal. It's just a minor nuisance really, but I was curious. Regards, Dan 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. _______________________________________________ Rubygems-developers mailing list Rubygems-developers@rubyforge.org http://rubyforge.org/mailman/listinfo/rubygems-developers