From 64dd3e179a3b13e9c8319cce265cbdf326af26f3 Mon Sep 17 00:00:00 2001 From: Schneems Date: Mon, 16 Dec 2024 16:08:58 -0600 Subject: [PATCH] Update default bundler and ruby versions 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. --- buildpacks/ruby/CHANGELOG.md | 5 +++++ buildpacks/ruby/src/main.rs | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/buildpacks/ruby/CHANGELOG.md b/buildpacks/ruby/CHANGELOG.md index 3e5467b6..f24ac852 100644 --- a/buildpacks/ruby/CHANGELOG.md +++ b/buildpacks/ruby/CHANGELOG.md @@ -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 diff --git a/buildpacks/ruby/src/main.rs b/buildpacks/ruby/src/main.rs index b0190c35..4663e905 100644 --- a/buildpacks/ruby/src/main.rs +++ b/buildpacks/ruby/src/main.rs @@ -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 = {