Skip to content

Upgrade to Ruby 4.0#53

Merged
brandur merged 1 commit intomasterfrom
brandur-ruby-4
Mar 29, 2026
Merged

Upgrade to Ruby 4.0#53
brandur merged 1 commit intomasterfrom
brandur-ruby-4

Conversation

@brandur
Copy link
Copy Markdown
Contributor

@brandur brandur commented Dec 25, 2025

Just for fun, upgrade to Ruby 4.0 [1]. It's been a few months now, so
hopefully at the downstream gems have been fixed up.

Just for good measure, I also ran a make update to update all gems.
Some updates like for standardrb are necessary to get this working.

[1] https://www.ruby-lang.org/en/news/2025/12/25/ruby-4-0-0-released/

@brandur brandur force-pushed the brandur-ruby-4 branch 3 times, most recently from c01dd78 to d2f4643 Compare December 25, 2025 22:53
Gemfile Outdated
Comment on lines +7 to +8
# gem "ffi", git: "https://github.com/ffi/ffi", branch: "master"
# gem "pg", git: "https://github.com/ged/ruby-pg", branch: "master"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't these need to be uncommented?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, heh. Didn't end up working. Tried to do this a little too early ... everything's still super broken.

@brandur
Copy link
Copy Markdown
Contributor Author

brandur commented Dec 26, 2025

Haha, okay, what a mess. Going to abandon this one for now, but notes to self for later:

  • The pg gem is quite broken, depending on Ruby <= 3.5.
  • The bundled RuboCop can't support Ruby 4.0. Rubocop has a release that supports 4.0, but:
  • Standard is affixed to an old version of RuboCop. Looking at Standard's repo, I couldn't find any evidence that there's a release forthcoming.

Probably the best thing is to just wait a couple weeks/months for all these things to resolve themselves.

@brandur brandur changed the title Upgrade to Ruby 4.0.0 on release day Upgrade to Ruby 4.0 Mar 28, 2026
@brandur brandur force-pushed the brandur-ruby-4 branch 3 times, most recently from 8326d72 to 204c9c9 Compare March 28, 2026 14:55
Just for fun, upgrade to Ruby 4.0 [1]. It's been a few months now, so
hopefully at the downstream gems have been fixed up.

Just for good measure, I also ran a `make update` to update all gems.
Some updates like for `standardrb` are necessary to get this working.

[1] https://www.ruby-lang.org/en/news/2025/12/25/ruby-4-0-0-released/
@brandur brandur requested a review from bgentry March 28, 2026 15:04
@brandur
Copy link
Copy Markdown
Contributor Author

brandur commented Mar 28, 2026

@bgentry Finally works lol.

Copy link
Copy Markdown
Contributor

@bgentry bgentry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wooo :shipit:

@brandur brandur merged commit c71f1d3 into master Mar 29, 2026
11 checks passed
@brandur brandur deleted the brandur-ruby-4 branch March 29, 2026 22:45
brandur added a commit that referenced this pull request Mar 29, 2026
Mostly contains #53 that upgrades to Ruby 4.0. I wanted to get this out
sooner rather than later because it may be ages until we put another
Ruby change through that'll merit a release.
@brandur brandur mentioned this pull request Mar 29, 2026
brandur added a commit that referenced this pull request Mar 30, 2026
Mostly contains #53 that upgrades to Ruby 4.0. I wanted to get this out
sooner rather than later because it may be ages until we put another
Ruby change through that'll merit a release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants