Auto use Ruby version with gemset
To use a specific Ruby version with a gemset, create both .ruby-version
and .ruby-gemset
files in each project. (Adding these files to .gitignore
is recommended!)
Example:
Inside .ruby-version
, specify the Ruby version you would like to use for this project:
Inside .ruby-gemset
, specify the name of the gemset you would like to use for this project:
Creation of these file will be equivalent of using:
rvm use ruby-2.4.0
rvm gemset use depot
Last updated
Was this helpful?