Setting Up a Development Environment
Before we get started, we need to all be on the same page! That means we need to have the same version of Ruby as well as the same tools. Let's do that!
- Install
rbenv
, a Ruby environment manager:brew install rbenv
- Now, have
rbenv
install Ruby version 2.2.0:rbenv install 2.2.0
- Choose the
global
version of Ruby (for your entire Mac) to version 2.2.0:rbenv global 2.2.0
- Finally, install
pry
- the Ruby REPL console that we'll use:gem install pry
- PS:
gems
are Ruby applications. You can install them usinggem install gem_name
. For a complete listing: https://rubygems.org/