[Rubygems-developers] request_gem vs. gem

Norman Walsh ndw at nwalsh.com
Thu Mar 8 14:48:02 EST 2007

Sorry if this is an FAQ. Web searching wasn't fruitful.

Consider the following:

$ irb1.8
irb(main):001:0> require "rubygems"
=> true
irb(main):002:0> require_gem "fcgi"
(irb):2:Warning: require_gem is obsolete.  Use gem instead.
=> true
irb(main):003:0> FCGI

That seems to work fine, except for the warning about require_gem
being obsolete.

So consider instead:

$ irb1.8
irb(main):001:0> require "rubygems"
=> true
irb(main):002:0> gem "fcgi"
=> true
irb(main):003:0> FCGI
NameError: uninitialized constant FCGI
        from (irb):3

That doesn't seem to work at all.

Am I missing something obvious?

                                        Be seeing you,

Norman Walsh <ndw at nwalsh.com> | Men are more like the times they live
http://nwalsh.com/            | in than they are like their
                              | fathers.--Ali Ibn-abi-talib
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/rubygems-developers/attachments/20070308/e329a97d/attachment.bin 

More information about the Rubygems-developers mailing list