So, like many other compadres in the ruby world, I too have simplified my ruby version-switching, using the kick-ass chruby, written in less than 90 lines of code. I have been working on setting up a development environment for our interns here at Acorns, and wished to avoid submitting them to the nonsense that is RVM (since bundler takes care of ‘gemsets’ in the first place).
I’ve been using rbenv recently, with great results. However, I think that I like chruby even more, if only for its minimalism.
1 caveat: chruby does not assist in installing new versions of ruby. You’ll need a tool like ruby-install to help manage this. (Instructions included below)
brew install chruby
brew install https://raw.github.com/postmodern/ruby-install/master/homebrew/ruby-install.rb
ruby-install ruby 1.9
How basic is that? Keep in mind, you’ll need to reinstall system wide gems like bundler to dive right into your projects.