Handle really old Rails-installation

Hi,

I need to do some development with Rails 0.14.3, and since I was stupid
and didn’t freeze the environment at that point, I’m wondering how I
should go about it afterwards. I’m not even sure the rake tasks that old
include the possibility of freezing version. There is no option in
environment.rb to set Rails version either.

I’m thinking about two different approaches; either copy the specific
gems manually to vendor/rails, or modify the require-statements in
environment.rb to require_gem the exact needed version.
Which approach should I use?


Ola B. (http://ola-bini.blogspot.com)
JvYAML, RbYAML, JRuby and Jatha contributor
System Developer, Karolinska Institutet (http://www.ki.se)
OLogix Consulting (http://www.ologix.com)

“Yields falsehood when quined” yields falsehood when quined.

Ola B. wrote:

Hi,

I need to do some development with Rails 0.14.3, and since I was stupid
and didn’t freeze the environment at that point, I’m wondering how I
should go about it afterwards. I’m not even sure the rake tasks that old
include the possibility of freezing version. There is no option in
environment.rb to set Rails version either.

I’m thinking about two different approaches; either copy the specific
gems manually to vendor/rails, or modify the require-statements in
environment.rb to require_gem the exact needed version.
Which approach should I use?


Ola B. (http://ola-bini.blogspot.com)
JvYAML, RbYAML, JRuby and Jatha contributor
System Developer, Karolinska Institutet (http://www.ki.se)
OLogix Consulting (http://www.ologix.com)

“Yields falsehood when quined” yields falsehood when quined.

I’d try creating a new dummy rails app then

rake rails:freeze:edge TAG=rel_0-14-3

Then copy the vendor directory to your old app…

Although I’d at least check to see how much work it would be to migrate
it forward to the current release.

svn export the Rails 0.14.3 release to vendor.

unknown wrote:

svn export the Rails 0.14.3 release to vendor.

It will most likely work but I’ve noticed that what’s in the vendor
folder after the freeze:edge is not exactly what’s in the svn release
folder