Skip to content

Commit

Permalink
Update default bundler and ruby versions
Browse files Browse the repository at this point in the history
Rails 8.0.1 needs Ruby 3.2+ and unfortunately they decided to stop shipping with a Ruby version in the Gemfile. I don't yet have `.ruby-version` support, but this will at least allow a `rails new` app to work on Heroku with the default versions.
  • Loading branch information
schneems committed Dec 16, 2024
1 parent 96715dc commit 64dd3e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions buildpacks/ruby/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Default Ruby version is now 3.2.6 ([]())
- Default Bundler version is now 2.5.6 ([]())

## [4.0.2] - 2024-12-16

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions buildpacks/ruby/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ impl Buildpack for RubyBuildpack {
let lockfile_contents = fs_err::read_to_string(&lockfile)
.map_err(|error| RubyBuildpackError::MissingGemfileLock(lockfile, error))?;
let gemfile_lock = GemfileLock::from_str(&lockfile_contents).expect("Infallible");
let bundler_version = gemfile_lock.resolve_bundler("2.4.5");
let ruby_version = gemfile_lock.resolve_ruby("3.1.3");
let bundler_version = gemfile_lock.resolve_bundler("2.5.6");
let ruby_version = gemfile_lock.resolve_ruby("3.2.6");

// ## Install metrics agent
build_output = {
Expand Down

0 comments on commit 64dd3e1

Please sign in to comment.