Ruby

Using Ruby

Use rbenv to manage ruby environment.

As per rbenv on Mac Install on Mac with

brew update
brew install rbenv

Add the following line to the .profile script

eval "$(rbenv init -)"

List available ruby environment
rbenv install -l
Install and use latest
rbenv install 2.4.1 rbenv global 2.4.1 rbenv rehash gem install bundler

Tweaks

To allow nokogiri to install (on OSX Sierra)
xcode-select --install

Troubleshooting

Confirm environment set up for bundle command

bundle env

Updates

Update gems with

bundle update