Skip to content

Commit

Permalink
Update default Ruby version to 3.3.6
Browse files Browse the repository at this point in the history
The latest Ruby is now 3.4.x. Our ideal default policy is to use the latest release of the prior year's version. This PR updates to the latest Ruby 3.3.x version which is 3.3.6.
  • Loading branch information
schneems committed Jan 6, 2025
1 parent 5ea0ef8 commit 8ca07fc
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## [Unreleased]

- Default Ruby version is now 3.3.6 (https://github.com/heroku/heroku-buildpack-ruby/pull/1534)

## [v287] - 2024-12-25

Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '>= 3.1', '< 3.3'
ruby "3.3.6"

group :development, :test do
gem "toml-rb"
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ DEPENDENCIES
toml-rb

RUBY VERSION
ruby 3.1.6p260
ruby 3.3.6p260

BUNDLED WITH
2.5.11
2 changes: 1 addition & 1 deletion buildpack.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[buildpack]
name = "Ruby"
ruby_version = "3.1.6"
ruby_version = "3.3.6"

[publish.Ignore]
files = [
Expand Down
3 changes: 3 additions & 0 deletions changelogs/unreleased/default_ruby.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Default Ruby version for new apps is now 3.3.6

The [default Ruby version for new Ruby applications is 3.3.6](https://devcenter.heroku.com/articles/ruby-support#default-ruby-version-for-new-apps). You’ll only get the default if the application does not specify a ruby version.
4 changes: 2 additions & 2 deletions lib/language_pack/ruby_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def initialize(output = "")
end
end

BOOTSTRAP_VERSION_NUMBER = "3.1.6".freeze
DEFAULT_VERSION_NUMBER = "3.1.6".freeze
BOOTSTRAP_VERSION_NUMBER = "3.3.6".freeze
DEFAULT_VERSION_NUMBER = "3.3.6".freeze
DEFAULT_VERSION = "ruby-#{DEFAULT_VERSION_NUMBER}".freeze
LEGACY_VERSION_NUMBER = "1.9.2".freeze
LEGACY_VERSION = "ruby-#{LEGACY_VERSION_NUMBER}".freeze
Expand Down
6 changes: 3 additions & 3 deletions spec/helpers/outdated_ruby_version_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
)

outdated.call
expect(outdated.suggested_ruby_minor_version).to eq("3.1.6")
expect(outdated.suggested_ruby_minor_version).to eq("3.3.6")
end

it "handles arm 💪 architecture on heroku-24" do
ruby_version = LanguagePack::RubyVersion.new("ruby-3.1.0")
ruby_version = LanguagePack::RubyVersion.new("ruby-3.3.0")
fetcher = LanguagePack::Fetcher.new(
LanguagePack::Base::VENDOR_URL,
stack: "heroku-24",
Expand All @@ -35,7 +35,7 @@
)

outdated.call
expect(outdated.suggested_ruby_minor_version).to eq("3.1.6")
expect(outdated.suggested_ruby_minor_version).to eq("3.3.6")
end

it "finds the latest version on a stack" do
Expand Down

0 comments on commit 8ca07fc

Please sign in to comment.