Web Development

The Ruby community has been blessed with a ton of tools like RSpec, Cucumber, Rails, rbenv and of course RVM.

RVM as always been on my arsenal ever since I worked with Ruby. It makes it easier to move from one version to another. I have always found myself creating gemsets for each project so that gems on different projects don’t conflict with one another.

The fun thing about it is you can have .rvmrc files, configuration files, hanging around and set things for you automatically.

But recently after an update, I have been seeing messages like:

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 warning with 'rvm rvmrc warning ignore /Users/teejay/Documents/projects/rails/your_project/.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'.

This basically means that .rvmrc files are no good anymore. Plus, there’s a new configuration file that needs to be used for rvm and other ruby version managers like rbenv.

If you already have .rvmrc files hanging around and you get this message, one line can fix this for you:

rvm rvmrc to .ruby-version

You will find out 2 new files, .ruby-gemset and .ruby-version, and your rvmrc file gone.