Paul Brannan
5/8/2007 3:29:00 PM
On Tue, May 08, 2007 at 06:27:56AM +0900, darren kirby wrote:
> begin
> require 'rubygems'
> rescue LoadError
> end
export RUBYOPT=rubygems
(this works for most cases; where it doesn't work is in specifying a
file to require on the command line with -r)
> so that it may work for both. I plain and simple don't understand why
> the "require 'rubygems'" is required (pardon the pun), to make gem installed
> libs visable to Ruby.
>
> Now really, I'm just a dilatant in this whole software development biz and
> realize the core Ruby hackers are a lot smarter than me, so I am sure there
> is a sound technical reason for it or it wouldn't be. That said, I would sure
> love to hear a rational for it...
Rubygems used to use library stubs for transparency. Perhaps one of the
active Rubygems developers can better explain why they were removed.
Paul