It s all git and ruby underneath so hack away with the knowledge that you can easily revert your modifications and merge upstream updates.
Brew update ruby.
Debian or ubuntu 16 04.
If ruby is already installed run brew upgrade ruby to upgrade to the latest version.
Installing homebrew on a mac installation.
Homebrew macos ruby versions 2 0 and above are included by default in macos releases since at least el capitan 10 11.
Older versions of os x are mostly compatible so follow along as far as you can and then google search for any problems you run into.
Homebrew is a commonly used package manager on macos.
Brew install ruby.
Run brew install ruby.
This should install the latest ruby version.
Homebrew lets you avoid possible security problems associated with using the sudo command to install software like node.
The missing package manager for macos or linux.
The command is pretty straightforward.
To uninstall follow the directions listed here.
Use the package manager to install ruby.
This will take about 30 minutes.
Apt installs ruby v2 3 1.
Installing ruby using homebrew is easy.
Alright so now that homebrew is installed we can use it to install a newer version of ruby.
We will be setting up a ruby on rails development environment on macos 10 14 mojave.