Ruby
Using Ruby

Use rbenv 2 to manage ruby environment.

As per rbenv on Mac, install on Mac with

brew update
brew install rbenv

(bash) Add the following line to your ~/.profile script

eval "$(rbenv init -)"

(fish) Follow instructions output from

rbenv init fish 

Which essentially says 1 append the following to ~/.config/fish/config.fish

status --is-interactive; and source (rbenv init -|psub)

List available ruby environment

rbenv install -l

Install and use latest

rbenv install 2.6.5
rbenv global 2.6.5
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