Reputation: 37253
I have a client on a legacy version of rails (2.2.2
) Their environment is running with gem version 1.3.2. When I run gem -v
on the new legacy gemset I've created with ruby 1.8.7
and rails 2.2.2
, it says the version of gem is 1.8.25
Is there a way that I can set rubygems to 1.3.2 JUST for my legacy gemset?
Upvotes: 0
Views: 231
Reputation: 53158
It is not possible to set rubygems version per gemset in RVM1, it might be possible in RVM2 - you can read more about RVM2 here: https://docs.google.com/document/d/1xW9GeEpLOWPcddDg_hOPvK4oeLxJmU3Q5FiCNT7nTAc/edit?usp=sharing
You can change rubygems for already installed ruby with:
rvm rubygems 1.4.2
Or specify rubygems version while installing ruby:
rvm install ruby-1.8.7 --rubygems 1.4.2
Upvotes: 0
Reputation: 26
You should upgrade/downgrade rubygems by following command:
rvm install rubygems 1.4.2
Have you seen How do you downgrade rubygems? ?
Upvotes: 1