freezing rails to a specific version

2 views
Skip to first unread message

Jared Nedzel

unread,
Jul 15, 2008, 3:52:43 PM7/15/08
to boston-r...@googlegroups.com
Folks:

I'm trying to freeze my Rails app to a particular version. The usual
way to do this is:

rake rails:freeze:gems

If I understand this correctly, this will freeze my rails install, but
to the highest version installed on my development machine. The problem
is that while I have 1.2.5, 2.0, and 2.1 on my development machine, I
need to freeze to 1.2.5.

Does anyone know how to do this? I've been googling without any luck.

Thanks,

--
Jared Nedzel
Cancer Genomics Informatics
Broad Institute
7 Cambridge Center
Cambridge, MA 02142

617-324-4825
jne...@broad.mit.edu

Nick Plante

unread,
Jul 15, 2008, 3:54:05 PM7/15/08
to boston-r...@googlegroups.com
VERSION=1.2.5

jcbloch

unread,
Jul 16, 2008, 11:08:10 AM7/16/08
to Boston Ruby Group
That should do it. Freeze gems just does a gem unpack (see
http://www.rubygems.org/read/chapter/10#page39 ) to vendor/rails
You can also just (manually) copy to vendor/rails anything you want
and assemble a custom version of rails...
If you just want to have your app use an old version of rails (as-is),
you could also explicitly require it (rails) in the env file (though
you might also have to find an old copy of the boot.rb code depending
upon your gem system version and when your app was created)
Reply all
Reply to author
Forward
0 new messages