Ruby version 3.1.7 is now available (3.1.x is now EOL)

Change effective on 26 March 2025

Ruby v3.1.7 is now available on Heroku. To run your app using this version of Ruby, add the following ruby directive to your Gemfile:

ruby "3.1.7"

For more information on Ruby 3.1.7, you can view the release announcement. From Ruby core:

This version is a final release of Ruby 3.1 series. We will not provide any further updates including security fixes for Ruby 3.1 series.