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

Update Mysql2::Result spec for Ruby 3.1 #1219

Merged

Conversation

casperisfine
Copy link
Contributor

Ref: #1179

Ruby 3.1 immediately raise a TypeError if you try to instantiate a class that doesn't have an allocator, which is what we want anyways.

This should fix ruby-head CI.

I'm actually tempted to undefine Result.new and Result.allocate, but chose to stick to the minimum change.

cc @simi @listerino

Ruby 3.1 immediately raise a TypeError if you try to
instantiate a class that doesn't have an allocator,
which is what we want anyways.
@tenderlove tenderlove merged commit 6200322 into brianmario:master Nov 30, 2021
@tenderlove tenderlove deleted the fix-ruby-head-allocator-undefined-ci branch November 30, 2021 19:16
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.

None yet

3 participants