"Austin Ziegler" <halostatue / gmail.com> writes: > On 6/29/06, Lanny Rosicky <lanny / canczech.com> wrote: >> Austin Ziegler wrote: >> > On 6/29/06, Lanny Rosicky <lanny / canczech.com> wrote: >> > >> > require 'rubygems' >> > require 'RedCloth' >> > >> > RubyGems modifies the search path. >> > >> > -austin >> I am sorry? Am I to prepend some file/all files/ with require 'rubygems' >> >> I need to set it up so that the applications executing the require >> actually find the objects of the require statement > > This may be changed in Ruby 1.8.5, I think, but the answer essentially is yes. > > You can use RUBYOPTS=-rubygems but that's a bit of a hack. Definitely no worse than breaking software for people that don't want to use Gems. require 'rubygems' is the thing I hate most about Rubygems: 1) As long as Rubygems is not standard, it adds a useless dependency to the source. 2) If Rubygems becomes standard, it should not be needed anymore anyway. If you feel like having to use require 'rubygems', please catch the LoadError if it's not there. Thank you. > -austin -- Christian Neukirchen <chneukirchen / gmail.com> http://chneukirchen.org