0

I understand that rvm allows us to run multiple versions of ruby. Are ruby gems installed to a specific version of ruby? Say I upgraded to the latest version of ruby 2.1.1 and want to use that as my default, do I have to reinstall the ruby gems from the earlier version of ruby to this version?

huijing
  • 398
  • 2
  • 14

3 Answers3

2

If you use rvm install, you will have to install your gems anew. If you use rvm upgrade, the gems will be migrated if possible.

Amadan
  • 179,482
  • 20
  • 216
  • 275
0

Check out the RVM documentation:

RVM creates a new completely separate gem directory for each version of ruby. In addition you can separate this further and have a set of gems per project/application/gerbil color... see the gemsets for more details on using sets of gems. [...]

donsteffenski
  • 447
  • 3
  • 15
0
rvm --default use <RUBYVERSION>

For example,

rvm --default use 2.1.1

You can check this. And check out RVM Documentation too.

Community
  • 1
  • 1
Amrit Dhungana
  • 4,157
  • 5
  • 29
  • 35