[Rubygems-developers] Can't require 'rubygems/specification' anymore?

Trans transfire at gmail.com
Tue Dec 8 11:33:43 EST 2009



On Dec 8, 10:19 am, Luis Lavena <luislav... at gmail.com> wrote:
> On Tue, Dec 8, 2009 at 12:17 PM, Daniel Berger <djber... at gmail.com> wrote:
> > On Tue, Dec 8, 2009 at 5:34 AM, Trans <transf... at gmail.com> wrote:
> >>  require 'rubygems/specification'
> >>  NameError: uninitialized constant Gem
> >>      from /usr/local/lib/site_ruby/1.8/rubygems/version.rb:28
> >>      from /usr/local/lib/site_ruby/1.8/rubygems/specification.rb:7:in
> >> `require'
> >>      from /usr/local/lib/site_ruby/1.8/rubygems/specification.rb:7
> >>      from (irb):1:in `require'
> >>      from (irb):1
>
> > I can require it just fine with Ruby 1.8.7 and Rubygems 1.3.5.
>
> By chance do you have RUBYOPT set?

No.

If I set it to "-rubygems" of course then it works (in fact
specification.rb is already loaded then). But I would think loading
'rubygems/specification' should work without that --and I am pretty
sure it used to.


More information about the Rubygems-developers mailing list