How to migrate Ruby gems when using chruby

166 Views Asked by At

Is there a way to migrate gems from a previous version on installed Ruby to a newly installed version of Ruby when using chruby?

1

There are 1 best solutions below

0
On

Was this what you were looking for?

source /usr/local/share/chruby/chruby.sh

RUBIES+=(
  /opt/jruby-1.7.0
  "$HOME/src/rubinius"
)

If you are migrating from another Ruby manager, set RUBIES accordingly:

RVM

RUBIES+=(~/.rvm/rubies/*)

rbenv

RUBIES+=(~/.rbenv/versions/*)

rbfu

RUBIES+=(~/.rbfu/rubies/*)

source