Ruby version 4.0.7 is now available

Change effective on 15 September 2026

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

ruby ruby "4.0.7" ​

For more information on Ruby 4.0.7, you can view the release announcement.