Skip to content

Commit

Permalink
Add Bundler 2.5.23 support
Browse files Browse the repository at this point in the history
This commit adds support for downloading bundler 2.5.23 for applications with Bundler 2.5.x in their `Gemfile.lock`.
  • Loading branch information
schneems committed Jan 6, 2025
1 parent 998ec3f commit a422d7d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## [Unreleased]

- Ruby apps using bundler 2.6+ will now receive bundler 2.6.2 ()
- Ruby apps using bundler 2.5.x will now receive bundler 2.5.23 ()

## [v287] - 2024-12-25

Expand Down
15 changes: 15 additions & 0 deletions changelogs/unreleased/bundler_2.5.23.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## Bundler version 2.5.23 is now available for Ruby Applications

The [Ruby Buildpack](https://devcenter.heroku.com/articles/ruby-support#libraries) installs a version of bundler based on the major and minor version listed in the `Gemfile.lock` under the `BUNDLED WITH` key:

- `BUNDLED WITH` 2.5.x will receive bundler `2.5.23`

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.
2 changes: 1 addition & 1 deletion lib/language_pack/helpers/bundler_wrapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class LanguagePack::Helpers::BundlerWrapper
# Heroku-20's oldest Ruby verison is 2.5.x which doesn't work with bundler 2.4
BLESSED_BUNDLER_VERSIONS["2.3"] = "2.3.25"
BLESSED_BUNDLER_VERSIONS["2.4"] = "2.4.22"
BLESSED_BUNDLER_VERSIONS["2.5"] = "2.5.6"
BLESSED_BUNDLER_VERSIONS["2.5"] = "2.5.23"
BLESSED_BUNDLER_VERSIONS["2.6"] = "2.6.2"
BLESSED_BUNDLER_VERSIONS.default_proc = Proc.new do |hash, key|
if Gem::Version.new(key).segments.first == 1
Expand Down

0 comments on commit a422d7d

Please sign in to comment.