Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI failures and improve Ruby 3.3 support #217

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Watson1978
Copy link

This PR will fix CI failures and improve Ruby 3.3 support.

  1. Remove bundler installation
  • It installs bundler without specifying the version in CI. But, it installs bundler which does not work with old Ruby, and it causes failure. So, this patch remove bundler installation and uses bundler bundled in Ruby.
  1. Fix failure with Ruby 3.3
  • The method of getting pointers from TypedData structure has changed since Ruby 3.3. This PR follows that.

Fix following warning message in CI:

```
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
```

Because the CI will eventually stop working.
It installs bundler without specifying the version in CI.
But, it installs bundler which does not work with old Ruby, and it causes failure.

So, this patch remove bundler installation and uses bundler bundled in Ruby.
The method of getting pointers from TypedData structure has changed since Ruby 3.3.

Ruby 3.2 or below can get the pointer with DATA_PTR().
https://github.com/ruby/ruby/blob/52bb2ac0a6971d0391efa2275f7a66bff319087c/error.c#L1073

Ruby 3.3 or later uses RTYPEDDATA_GET_DATA() to get pointer.
https://github.com/ruby/ruby/blob/5124f9ac7513eb590c37717337c430cb93caa151/error.c#L1326
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