Use rvmrc or ruby-version file to set a project gemset with RVM?

I use RVM, the Ruby Version Manager to specify a Ruby version and a set of gems for each of my Rails projects.

I have a .rvmrc file to automatically select a Ruby version and gemset whenever I cd into a project directory.

After installing RVM 1.19.0, I get a message

You are using .rvmrc, it requires trusting, it is slower and it is
not compatible with other ruby managers, you can switch to
.ruby-version using rvm rvmrc to [.]ruby-version or ignore this
warnings with rvm rvmrc warning ignore
/Users/userName/code/railsapps/rails-prelaunch-signup/.rvmrc
,
.rvmrc will continue to be the default project file in RVM 1 and RVM
2, to ignore the warning for all files run rvm rvmrc warning ignore
all.rvmrcs
.

Should I continue using my .rvmrc file or should I switch to a .ruby-version file? Which is optimal? What are the ramifications?

5 Answers
5

Leave a Comment