Ruby 2.0 is no longer a work in progress! Ruby 2.0 Release Candidate 1 was released today! Here's how to get it:
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
Make sure brew is up to date:
Install rbenv, ruby-build, and openssl:
brew install rbenv ruby-build openssl
Or, if you already have rbenv:
brew upgrade rbenv
Use rbenv to install Ruby 2.0 RC1
rbenv install 2.0.0-rc1
You may need to specify the location for the ssl directory:
CONFIGURE_OPTS=--with-openssl-dir=`brew --prefix openssl` rbenv install 2.0.0-rc1
You may also need to specify a different
CONFIGURE_OPTS=--with-gcc=clang rbenv install 2.0.0-rc1
I highly suggest you install Ruby 2.0. There are some significant speed improvements and optimizations in the language.
Seth Vargo is a Developer Advocate at Google. Previously he worked at HashiCorp, Chef Software, CustomInk, and a few Pittsburgh-based startups. He is the author of Learning Chef and is passionate about reducing inequality in technology. When he is not writing, working on open source, teaching, or speaking at conferences, Seth enjoys spending time with his friends and advising non-profits.