From: Rimantas Liubertas Date: 2007-01-27T08:09:08+09:00 Subject: Re: RubyGems 0.9.1 calling a gem with gem '' > After upgrading to RubyGems 0.9.1, I'm seeing the following error: > > irb(main):001:0> require 'rubygems' > => true > irb(main):002:0> gem 'uuid' > => true > irb(main):003:0> UUID.new > NameError: uninitialized constant UUID > from (irb):3 > irb(main):004:0> > > > This problem doesn't happen if I use: > require 'uuid' Well, you should use require, not gem. I.e.: require 'rubygems' require 'my_gem' See http://rubygems.org/read/chapter/3#page70 (section 3.4). 'gem' does something different than you think. Regards, Rimantas -- http://rimantas.com/