Currently I have Ruby 1.8.7 and Rails 2.3.8. Is it possible to update ruby so that I do not have to re-install all the gems again?
+4
A:
You're best bet is using RVM, it will let you have multiple versions of Ruby and gems per directory or project.
Chubas
2010-07-10 21:50:22
Yeah, RVM is by far the best way to manage Ruby versions and associated gems.
bjg
2010-07-10 22:13:46
In particular, RVM's gemset command will be useful.
Greg
2010-07-11 01:58:56
A:
Ruby is currently on version 1.9.1, which sports a new JIT VM, providing much improved performance when compared to Ruby 1.8. The good news is that Rails, as of version 2.3.2, fully supports Ruby 1.9.1. The bad news is that several Ruby libraries have not been updated for Ruby 1.9.1. Please refer to IsItRuby19 to see a list of currently supported Ruby 1.9.1 libraries.
A:
No - you will have to install the gems again per Ruby. RVM aids this in that you can import a gemset file, but ultimately - you will end up installing the gems again.
See http://rvm.beginrescueend.com/gemsets/importing/ for more details
Omar Qureshi
2010-07-11 09:30:02