How to update Ruby with Homebrew?
I would use ruby-build
with rbenv
. The following lines install Ruby 3.0.2 and set it as your default Ruby version:
$ brew update$ brew install ruby-build$ brew install rbenv$ rbenv install 3.0.2$ rbenv global 3.0.2