From: James Edward Gray II Date: 2004-12-09T02:02:37+09:00 Subject: Require Gems (was Re: [ANN] RubyScript2Exe 0.2.0) On Dec 8, 2004, at 10:57 AM, Mauricio Fern�ndez wrote: > On Thu, Dec 09, 2004 at 01:22:30AM +0900, itsme213 wrote: >> >> "Gavin Sinclair" wrote in message >>> Try: >>> >>> require 'rubygems' >>> require 'progressbar' >> >> Will this allow nested (gem and non-gem) requires within >> 'progressbar' to >> work? > > require 'foo' will always load the version from RubyGems, if you're > referring to that. Once you require 'rubygems', it overrides > Kernel.require and it is no longer possible to load the files in the > standard library dir, unless you use the GEM_SKIP env. variable. Hmm, is this a good thing? If Ruby Gems replaces the require(), couldn't it be set to try the old require() when a Gem require fails? Just a thought. James Edward Gray II