From: Ryan Leavengood Date: 2005-04-18T00:58:21+09:00 Subject: Re: All Quiet on the Western Front: Is Rails overshadowing Ruby? Chad Fowler wrote: > > You miss the point: if RubyGems were included in Ruby's default > distribution, it would be integrated, and you'd never have to use > require_gem again (though, you could still use require_gem to load a > specific version of a library). I kind of wondered why you added require_gem instead of just overriding require like I originally did, but I see that until RubyGems is in the default distribution, it is the friendly thing to do. Also once you get to that point you still wouldn't need require_gem, even for the version specification: alias :__old_require__ :require def require(name, version = nil) if version puts "Would call new version of require!" else puts "Calling old version of require!" __old_require__(name) end end require 'singleton' require 'foo', '0.5.6' Ryan Leavengood