Re: require_gem is obsolete

Steve Longdo
Sun, 04 Feb 2007 06:22:15 -0000

I found a trac ticket that shows the remaining files in Rails that still use
require gem.
http://dev.rubyonrails.org/ticket/6886

These two in particular are what are causing the commotion on 1.2.1:

railties/environments/boot.rb
railties/lib/rails_generator.rb


On 2/3/07, Phlip <phlip2005-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
>
>
> Jordan Krushen 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?
>
> That was my insinuation. I fixed things manually, like y''all are
> discussing, then I ran rails:update, and it un-fixed them.
>
> phlip@penbird:~/projects$ rails -v
> Rails 1.2.1
> phlip@penbird:~/projects$ rails scratch
> phlip@penbird:~/projects$ cd scratch/
> phlip@penbird:~/projects/scratch$ grep require_gem config/boot.rb
>         require_gem "rails",
"=#{rails_gem.version.version}"
>       require_gem "rails"
>
> The base generator is generating the noisily deprecated version.
>
> --
>   Phlip
>   http://c2.com/cgi/wiki?ZeekLand  <-- NOT a blog!!
>
> >
>


--
Thanks,
-Steve