Skip to content

Support Ruby 4.0 and TruffleRuby 40: declare the logger dependency - #46

Merged
PetrHeinz merged 3 commits into
mainfrom
claude/ci-ruby-4
Sep 30, 2026
Merged

PetrHeinz merged 3 commits into
mainfrom
claude/ci-ruby-4

Conversation

@PetrHeinz

@PetrHeinz PetrHeinz commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

Ruby 4.0 and TruffleRuby 40 no longer ship logger as a default gem, so under Bundler require "logtail" raises cannot load such file -- logger unless the app happens to bundle it. That is why the truffleruby job is red on main, and Ruby 4.0 was not in the matrix at all.

  • logger is now a runtime dependency of the gem.
  • The unused require "base64" is gone. Nothing in the gem uses Base64, and since Ruby 3.4 the require alone broke apps that do not bundle base64. The Gemfile still bundles it for the test dependencies.
  • Ruby 4.0 joins the CI matrix.

The first commit only adds Ruby 4.0 to the matrix and is red on the 4.0 and truffleruby jobs. With the following commits the whole matrix is green.

The rack and rails gems pick the dependency up with the next logtail release.

🤖 Generated with Claude Code

PetrHeinz and others added 3 commits September 29, 2026 12:35
Expected to fail, like the truffleruby job already does: logger is no
longer a default gem there and logtail does not declare it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Ruby 4.0 and TruffleRuby 40 no longer ship logger as a default gem, so
under Bundler `require "logtail"` raised a LoadError unless the app
bundled logger itself.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Nothing in the gem uses Base64. base64 stopped being a default gem in
Ruby 3.4, so the require alone broke apps that do not bundle it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@PetrHeinz
PetrHeinz marked this pull request as ready for review September 29, 2026 10:56
@PetrHeinz
PetrHeinz merged commit 2b57bf8 into main Sep 30, 2026
13 checks passed
@PetrHeinz
PetrHeinz deleted the claude/ci-ruby-4 branch September 30, 2026 15:26
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.

1 participant