Prerequisites

  1. Install homebrew first
brew install ruby
🍺  /usr/local/Cellar/ruby/2.1.2_2: 942 files, 20
   
ruby -v
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]