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

Avoid deprecated Gem::Platform.match in Gem::Resolver::InstallerSet #6105

Merged
merged 1 commit into from Dec 8, 2022

Conversation

eregon
Copy link
Contributor

@eregon eregon commented Dec 7, 2022

What was the end-user or developer problem that led to this PR?

TruffleRuby emits a warning when Gem::Platform.match is used because that ignores the

What is your fix for the problem, implemented in this PR?

Use the non-deprecated method which can also use the name.
This usage was added in #5820

Probably we should really deprecate Gem::Platform.match so it's not used accidentally anymore.
Maybe it's enough to only warn about it when running RubyGems & Bundler tests?
About deprecation, see https://github.com/rubygems/rubygems/pull/3817/files#r453293031 and #4096
cc @deivid-rodriguez

Make sure the following tasks are checked

@deivid-rodriguez deivid-rodriguez merged commit 823c776 into rubygems:master Dec 8, 2022
@eregon eregon deleted the patch-2 branch December 8, 2022 13:38
@eregon
Copy link
Contributor Author

eregon commented Dec 8, 2022

Thanks for merging!
Any thoughts about deprecating Gem::Platform.match?

graalvmbot pushed a commit to oracle/truffleruby that referenced this pull request Dec 21, 2022
sophie-kaleba pushed a commit to sophie-kaleba/truffleruby that referenced this pull request Jan 16, 2023
sophie-kaleba pushed a commit to sophie-kaleba/truffleruby that referenced this pull request Jan 17, 2023
sophie-kaleba pushed a commit to sophie-kaleba/truffleruby that referenced this pull request Feb 16, 2023
john-heinnickel pushed a commit to thermofisher-jch/truffleruby that referenced this pull request Aug 16, 2023
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

2 participants