Aug 24, 2013

Confusion around upgrading ruby using rvm ...

Confusion around upgrading ruby

I have three ruby versions running. For an old open source project, I use ruby 1.8. For many rails tutorials or recent apps, it is ruby 1.9. The latest is ruby 2.0. The version I ran is an early one - ruby 2.0.0-p0. I wanted to upgrade it. So, using RVM's instructions, I tried upgrading.

Basically, I do $ rvm upgrade 1.9.2-p0 1.9.2-pxxx (xxx is version you want to upgrade to)

The command is intended to "migrate gemsets, wrappers, aliases and environment files." It also would remove the 2.0.0-p0 gemset, which I wanted.

Is there a way to isolate single ruby version upgrade?

Thing was once it was done, I couldn't use ruby 1.8 and ruby 1.9 without having to upgrade those versions as well.  Does anyone know how to upgrade a single ruby version in RVM without messing around with the other versions? In the end, I had to upgrade 1.8 and 1.9 as well, which added more needless time to setup upgrade.


As you can guess, I looked on stackoverflow, but didn't find a ready answer. Ended up leaving a question: is it possible to isolate 'rvm upgrade' to single ruby version?

Ruby. Gotta love it.

No comments: