Best way to upgrade from Ruby 2.3 to rvm while retaining all your gems?

What is the best way to upgrade to Ruby 2.3 up rvm, store all your precious stones set in the previous version (eg json, nokogirietc.)?

+4
source share
1 answer

EDIT

This question has an answer: RVM: How to use gems from another ruby?

$ rvm gemset copy $oldversion 2.3.0

ORIGINAL

Before installing Ruby 2.3, get a list of the stones you installed and their versions with gem list. Then, after installing Ruby 2.3, use rvmto set 2.3 as the new default value:

$ rvm install 2.3.0
$ rvm --default use 2.3.0

Bundler, gem install bundler bundle install . , .

Bundler, , - Gemfile, , , gem install , -v, .

+17

Source: https://habr.com/ru/post/1622296/


All Articles