Ruby uses different gem path on macOS than specified in the documentation

Hi everyone,

I just did a fresh install of Ruby on my macOS (12.0.1 Monterey). It seems that when Ruby is installed via Homebrew it uses another PATH than specified in the documentation:

Documentation: $HOME/.gem/ruby/X.X.0/bin

On my machine: $HOME/.local/share/gem/ruby/3.0.0/bin

Can somebody reproduce/confirm?

Thanks, Peter

For first .gem path is for Ruby 2

And the latter for Ruby 3.

I cover this in my own notes

I guess the docs should cover both or the Ruby 2 one should be replaced.