CI: Get to green on Ruby head (4.1) - #259
Merged
olleolleolle merged 2 commits intoJul 30, 2026
Merged
Conversation
Ruby 4.1 removed the untyped Data_Wrap_Struct/Data_Get_Struct C API, so two Gemfile entries no longer build and bundle install fails before the specs run: curb 0.9.11 curb_easy.c:76: expected expression before 'ruby_curl_upload' eventmachine rubymain.cpp:53: 'Data_Wrap_Struct' was not declared curb 1.0 moved to the TypedData API, so bump to '~> 1.3'. eventmachine 1.2.7 (2018) is its last release and there is nothing to bump to, so only declare em-http-request/em-synchrony below Ruby 4.1. The specs now detect the gems via EM_HTTP_AVAILABLE instead of assuming they are installed, replacing the RUBY_PLATFORM =~ /java/ guards. HTTPI::Adapter.default_adapter already rescues LoadError. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
curb 1.x's TypedData free functions crash TruffleRuby's C-extension reference-processor thread: dead handle 0xbad000000090080 from rb_tr_rtypeddata_run_finalizer (data.c:83) TruffleRuby's Bundler platform is :ruby, so this needs a RUBY_ENGINE check rather than a platforms: option. CRuby stays on 1.3, which it needs to build on Ruby 4.1. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
olleolleolle
marked this pull request as ready for review
July 30, 2026 07:06
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Slop:
Ruby head is now 4.1. It removed the untyped
Data_Wrap_Struct/Data_Get_StructC API.In order to keep us buildable:
See: https://github.com/savonrb/httpi/actions/runs/30506928846/job/90758618681