Skip to content

Commit 215828f

Browse files
authored
Default Ruby version now 3.3.9 (heroku#1624)
The [default Ruby version for new Ruby applications is 3.3.9](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. Heroku highly recommends specifying your desired Ruby version. You can specify a Ruby version in your `Gemfile`: ```ruby ruby "3.3.9" ``` Once you have a Ruby version specified in your `Gemfile`, update the `Gemfile.lock` by running the following command: ```term $ bundle update --ruby ``` Make sure you commit the results to git before attempting to deploy again: ```term $ git add Gemfile Gemfile.lock $ git commit -m "update ruby version" ```
1 parent 09c1c86 commit 215828f

File tree

9 files changed

+31
-8
lines changed

9 files changed

+31
-8
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
uses: ruby/setup-ruby@v1
4040
with:
4141
bundler-cache: true
42-
ruby-version: "3.3.8"
42+
ruby-version: "3.3.9"
4343
- name: Hatchet setup
4444
run: bundle exec hatchet ci:setup
4545
- name: Run Hatchet integration tests

.github/workflows/hatchet_app_cleaner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: ruby/setup-ruby@v1
2525
with:
2626
bundler-cache: true
27-
ruby-version: "3.3.8"
27+
ruby-version: "3.3.9"
2828
- name: Run Hatchet destroy
2929
# Only apps older than 10 minutes are destroyed, to ensure that any
3030
# in progress CI runs are not interrupted.

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## [Unreleased]
44

5+
- Default Ruby version is now 3.3.9 (https://github.com/heroku/heroku-buildpack-ruby/pull/1624)
56

67
## [v315] - 2025-07-24
78

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
source "https://rubygems.org"
22
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
33

4-
ruby "3.3.8"
4+
ruby "3.3.9"
55

66
group :development, :test do
77
gem "toml-rb"

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ DEPENDENCIES
7272
toml-rb
7373

7474
RUBY VERSION
75-
ruby 3.3.8p144
75+
ruby 3.3.9p170
7676

7777
BUNDLED WITH
7878
2.5.22

buildpack.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[buildpack]
22
name = "Ruby"
3-
ruby_version = "3.3.8"
3+
ruby_version = "3.3.9"
44

55
[publish.Ignore]
66
files = [
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## Default Ruby version for new apps is now 3.3.9
2+
3+
The [default Ruby version for new Ruby applications is 3.3.9](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+
5+
Heroku highly recommends specifying your desired Ruby version. You can specify a Ruby version in your `Gemfile`:
6+
7+
```ruby
8+
ruby "3.3.9"
9+
```
10+
11+
Once you have a Ruby version specified in your `Gemfile`, update the `Gemfile.lock` by running the following command:
12+
13+
```term
14+
$ bundle update --ruby
15+
```
16+
17+
Make sure you commit the results to git before attempting to deploy again:
18+
19+
```term
20+
$ git add Gemfile Gemfile.lock
21+
$ git commit -m "update ruby version"
22+
```

changelogs/v309/default_ruby.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The [default Ruby version for new Ruby applications is 3.3.8](https://devcenter.
55
Heroku highly recommends specifying your desired Ruby version. You can specify a Ruby version in your `Gemfile`:
66

77
```ruby
8-
ruby "3.3.8"
8+
ruby "3.3.9"
99
```
1010

1111
Once you have a Ruby version specified in your `Gemfile`, update the `Gemfile.lock` by running the following command:

lib/language_pack/ruby_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ def initialize(output = "")
1212
end
1313
end
1414

15-
BOOTSTRAP_VERSION_NUMBER = "3.3.8".freeze
16-
DEFAULT_VERSION_NUMBER = "3.3.8".freeze
15+
BOOTSTRAP_VERSION_NUMBER = "3.3.9".freeze
16+
DEFAULT_VERSION_NUMBER = "3.3.9".freeze
1717
DEFAULT_VERSION = "ruby-#{DEFAULT_VERSION_NUMBER}".freeze
1818
RUBY_VERSION_REGEX = %r{
1919
(?<ruby_version>\d+\.\d+\.\d+){0}

0 commit comments

Comments
 (0)