Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A different rubygem version for each ruby version in rvm

Tags:

ruby

rubygems

rvm

I have ruby 1.8.7 and 1.9.3 installed by rvm. For each ruby version, I'd like to:

  • use gem 1.3.7 for ruby 1.8.7
  • use gem 1.8.x for ruby 1.9.3

How can I set the above in rvm?

like image 880
ohho Avatar asked Oct 24 '12 10:10

ohho


1 Answers

$ rvm use 1.8.7
$ rvm rubygems 1.3.7
$ rvm use 1.9.3
$ rvm rubygems latest-1.8
$ gem -v
1.8.24
$ rvm use 1.8.7
$ gem -v
1.3.7
like image 169
ohho Avatar answered Sep 20 '22 02:09

ohho