Re: Rick''s gems:freeze plugin -> core

Dr Nic
Mon, 16 Oct 2006 11:00:51 -0000

Dr Nic wrote:
> Rick Olson wrote:
> > > Perhaps rick can share his thoughts,  assuming it''s nice
and seamless,
> > > I have no objections.
> >
> > The actual gem:freeze task itself is very handy IMO.  The only part
> > I''m unsure of is the code that automatically inserts vendor/*
folders
> > into the LOAD_PATH.  I assume if you use the gems plugin you want
> > this, but I don''t know if it''s a good assumption to
make for all apps.
>
> It might be cleaner to dump the gems in /vendor/gems and thus load them
> confidently from there.

The upside of all gems going into a separate folder is we can easily
find all rake tasks:

Add to rails/lib/tasks/rails.rb:
Dir["./vendor/gems/*/**/*.rake"].sort.each { |ext| load ext }

Rails-trac ticket: http://dev.rubyonrails.org/ticket/6410
* This ticket is just for the above trivial change, and not gems:freeze
as a whole *

Nic