Components

Ruby

Mastodon requires an installation of Ruby for the webserver and Sidekiq components, and administrators must ensure a supported Ruby version is present and configured.
Versions of Mastodon are listed across the top of the matrix. Versions of each required component are listed along the left side.
4.64.54.44.34.2
3.4
3.3
3.2
3.1
3.0
2.7

References: Ruby Branches

Terminal
# Check running version
ruby -v
Mastodon has file called .ruby-version in the source code that is the expected target version for that release. You should use rbenv to install and manage the target Ruby version.
The official Mastodon container image will always use the correct target version of Ruby for that release.