From: Trans Date: 2005-09-29T00:41:48+09:00 Subject: Re: Gems undermine unit testing Alexey Verkhovsky wrote: > The current version of RubyGems library (0.8.10) doesn't alter the > LOADPATH. Instead it overrides Kernel#require with something like this: > > module Kernel > alias require__ require > > def require(path) > require__ path > rescue LoadError => load_error > ... tries to require a gem ... > end > end > > So, it will always try to get stuff from LOADPATH first, only then go to > RubyGems. This is true, but as Austin pointed out to me the other day, if there is a match in Gems it will alter the LOAD_PATH so as not to have to search again. T.