From: Gregory Brown Date: 2006-06-14T09:39:29+09:00 Subject: Re: Gemspec option to prevent auto-require? On 6/13/06, Eric Hodel wrote: > > You are not working against trunk. > > Then you'll need to provide code I can work with to discover your > real problem. Downloading an entire project without gems is a heavy > burden. svn checkout svn://rubyforge.org//var/svn/ruport Not exactly a heavy burden. > Note that Rubygems doesn't do that much to require, it is roughly this: > > 1) Call Kernel#require > 2) If we got a LoadError, go looking for a gem with that file > 3) If we found a gem, add its libraries to $LOAD_PATH > 4) Call Kernel#require > > So I don't believe rubygems is at fault here. [sandal@harmonix pkg]$ irb --simple-prompt -rubygems -rruport >> $LOADED_FEATURES.length => 166 [sandal@harmonix pkg]$ irb --simple-prompt -I../lib -rruport >> $LOADED_FEATURES.length => 80 (both against trunk) > > [sandal@harmonix ruport]$ irb -Ilib --simple-prompt -rruport > >>> $LOADED_FEATURES.any? { |r| r =~ /fastercsv/ } > > => false > >>> [[1,2],[3,4]].to_ds(%w[a b]).as(:csv) > > => "a,b\n1,2\n3,4\n" > >>> $LOADED_FEATURES.any? { |r| r =~ /fastercsv/ } > > => true > > > > I appreciate that you are trying to help, but you really aren't > > answering my question. > > Rubygems doesn't do any auto-require unless you have set an > autorequire in your gemspec and use require_gem (IIRC, old versions > of rubygems would require everything in autorequire even when using > require). no auto_require in my spec. No require_gem [sandal@harmonix ruport]$ gem -v 0.8.11