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:
ruby-2.4.0Inside .ruby-gemset, specify the name of the gemset you would like to use for this project:
depotCreation of these file will be equivalent of using:
rvm use ruby-2.4.0rvm gemset use depot
Last updated
Was this helpful?