October 19 2011
Ruby Tip: 1.8.7 and 1.9.2, Side by Side
Recently, I needed to run rake test on a Ruby gem with both Ruby 1.8.7 and 1.9.2. I wanted to figure out why Travis CI was failing for the gem. Not a problem with rvm, even on Lion (10.7).
To install a version of Ruby, use rvm install:
You can check that it’s installed with rvm list:
To use Ruby 1.8.7 for the Terminal session, use rvm use:
Seriously, use rvm. It’s awesome.