Bundler versions 2.4.22 and 2.5.6 are now available for Ruby applications
Change effective on 28 February 2024
The Ruby Buildpack now installs a version of bundler based on the major and minor version listed in the Gemfile.lock under the BUNDLED WITH key. Previously, it only used the major version. Now, this logic will be used:
BUNDLED WITH1.x will receive bundler1.17.3BUNDLED WITH2.0.x to 2.3.x will receive bundler2.3.25BUNDLED WITH2.4.x will receive bundler2.4.22BUNDLED WITH2.5.x and above will receive bundler2.5.6
It is strongly recommended that you have both a RUBY VERSION and BUNDLED WITH version listed in your Gemfile.lock. If you do not have those values, you can generate them and commit them to git:
$ bundle update --ruby
$ git add Gemfile.lock
$ git commit -m "Update Gemfile.lock"
Applications without these values specified in the Gemfile.lock may break unexpectedly when the defaults change.
If your application errors with the message bundler-2.5.6 requires ruby version >= 3.0.0 and you are using Ruby 2.7.x and Bundler 2.4, please purge your build cache and try re-deploying.