Upgrading Ruby on your Mastodon server
When the minimum version of Ruby is increased for a new Mastodon release, you must upgrade Ruby before you can upgrade Mastodon to the new release.
Before you begin
Check the Mastodon installation documentation to see which version of Ruby is required. The need to upgrade Ruby isn't always clear in the Mastodon release notes. For example, the installation documentation shows that Mastodon 4.1.4 requires Ruby 3.0.6, but the release notes show Ruby 3.0.
When you try to upgrade Mastodon with an earlier version of Ruby, the bundle install command fails.
Procedure
Results
The required version of Ruby is now installed. You can upgrade your Mastodon server.