gem sources -l
gem sources --remove <>
gem sources --add <>

Installing on M1 Apple for macOS 13 Ventura

brew install chruby ruby-install

Next, if you’re on an Apple Silicon Mac (M1 or M2), you need to check which version of the Apple Command Line Tools (CLT) or Xcode you have:

brew config

Look for the lines at the bottom that start with CLT:  and Xcode: . If either one of them starts with 14 , then you’ll need to install Ruby like this:

ruby-install ruby -- --enable-shared

Otherwise, don’t use any extra options:

ruby-install ruby