Updating to Ruby 3.0 via Brew

Alan Reid
1 min readFeb 25, 2021

--

With Ruby 3.0 being out in the wild for over a month now I thought it was time to post about updating to Ruby 3.0 via Brew.

In my previous posts we setup our dev enviroment using Homebrew with this we will be using rbenv to manage our Ruby versions.

The following lines are used to install Ruby 3.0 ( be sure to check ruby-lang.org for the latest version) and set it as your default Ruby version:

$ brew update
$ brew upgrade ruby-build
$ rbenv install 3.0.0
$ rbenv global 3.0.0
$ ruby -v

Not as bad as you thought? Well why make things harder than they need to be. Anyway, as you see we ran ruby -v just to make sure we are now running the latest Ruby version.

Now you will need to make sure you update your Rails app to use Ruby 3.0, this can be done in the .ruby-version and gemfile.

--

--

Alan Reid

Hi, I'm Alan! Rails developer, with a passion to create well crafted front-end experiences. Founder of Propiti