Re: require_gem is obsolete

Jordan Krushen
Sun, 04 Feb 2007 01:13:43 -0000

> Steve Longdo wrote:
> > Is the "rails" command for generating apps actually
producing the code with
> > require_gem?  Has it not been patched so that RubyGems < 0.9.1 will
still
> > work?  Other wise...

$ script/about
./script/../config/boot.rb:29:Warning: require_gem is obsolete.  Use
gem instead.
About your application''s environment
Ruby version                 1.8.5 (powerpc-darwin8.8.0)
RubyGems version             0.9.1
Rails version                1.2.1
...

The above is from a MacPorts-installed rails.  Locomotive has the same issue:

$ script/about
./script/../config/boot.rb:29:Warning: require_gem is obsolete.  Use
gem instead.
About your application''s environment
Ruby version                 1.8.5 (powerpc-darwin7.9.0)
RubyGems version             0.9.1
Rails version                1.2.1
...

On 2/3/07, Phlip <phlip2005-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> I just ran rake rails:update (per my other post, and thaaanks for
> teeelling me about it, guys!), and it fixed my gem() calls by
> upgrading them to require_gem().

Shouldn''t that be the other way ''round?

J.