From: Eric Hodel Date: 2006-06-14T09:30:38+09:00 Subject: Re: Gemspec option to prevent auto-require? On Jun 13, 2006, at 4:52 PM, Gregory Brown wrote: > On 6/13/06, Eric Hodel wrote: > >> > Ruport::DataSet.load does >> >> It may also, but it is not the only place. > > 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. 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 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). -- Eric Hodel - drbrain@segment7.net - http://blog.segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com