Skip to content

Add Ruby 4.0 cross-compilation support#104

Merged
stackmystack merged 1 commit intoFaveod:masterfrom
ehostalery-sweep:support-ruby-4.0
Apr 30, 2026
Merged

Add Ruby 4.0 cross-compilation support#104
stackmystack merged 1 commit intoFaveod:masterfrom
ehostalery-sweep:support-ruby-4.0

Conversation

@ehostalery-sweep
Copy link
Copy Markdown
Contributor

@ehostalery-sweep ehostalery-sweep commented Apr 7, 2026

Precompiled platform gems (e.g. x86_64-linux-gnu) currently set required_ruby_version to >= 3.1, < 3.5.dev,
making them incompatible with Ruby 4.0. This is because:

  1. rake-compiler-dock ~> 1.5 doesn't include Ruby 4.0 cross-compilation toolchains
  2. ruby_cc_version('~> 3.1') excludes Ruby 4.0 (~> means < 4.0)

Changes

  • Gemfile: bump rake-compiler-dock to ~> 1.11 (v1.11.0 added Ruby 4.0.0 support)
  • Rakefile: add '~> 4.0' to ruby_cc_version so Ruby 4.0 is included in cross-compilation targets

Fixes #103

_(m).must_be_kind_of Hash
_(m.keys.sort).must_equal %w[product product.left product.right sum sum.left]
_(m.values.all? { |n| n.instance_of?(TreeSitter::Node) }).must_be_equal true
_(m.values.all?(TreeSitter::Node)).must_be_equal true
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.

@stackmystack
Copy link
Copy Markdown
Collaborator

stackmystack commented Apr 9, 2026

I should have mentioned this in my first comment, apologies, but could could you please re-write the commit messages to follow the norms of this repo?

@ehostalery-sweep
Copy link
Copy Markdown
Contributor Author

@stackmystack Is it better? Not sure how to re-write it to be honest, I tried to have a look at the commits on master

@ehostalery-sweep
Copy link
Copy Markdown
Contributor Author

Hello @stackmystack , sorry to ping you, did you have time to have a look?
Thanks!

@stackmystack
Copy link
Copy Markdown
Collaborator

Hello @stackmystack , sorry to ping you, did you have time to have a look? Thanks!

I'm sorry I got very busy lately, I will try to do it tonight, if not, it will definitely land during the week-end.

@stackmystack stackmystack merged commit ae095da into Faveod:master Apr 30, 2026
19 checks passed
@stackmystack
Copy link
Copy Markdown
Collaborator

I just release 2.1.1. Enjoy.

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.

Different Ruby versions requirements depending on the platform

2 participants