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

Gem::Platform.match is deprecated #19492

Closed
nieldk opened this issue Sep 23, 2024 · 1 comment · Fixed by #19184
Closed

Gem::Platform.match is deprecated #19492

nieldk opened this issue Sep 23, 2024 · 1 comment · Fixed by #19184
Labels

Comments

@nieldk
Copy link
Contributor

nieldk commented Sep 23, 2024

Steps to reproduce

How'd you do it?

1.msfdb start, or msfconsole ...

This section should also tell us any relevant information about the
environment; for example, if an exploit that used to work is failing,
tell us the victim operating system and service versions.

Expected behavior

No errors are expected to be reported

Current behavior

Get an error "NOTE: Gem::Platform.match is deprecated; use Gem::Platform.match_spec? or match_gem? instead. It will be removed in Rubygems 4" on many gems

Metasploit version

a27d491bf80251fbb3329e0c1a1a75d8f91fadb4 Land #19491, Fix a crash in lib/msf/core/payload/php.rb

Additional Information

Error can be fixed with

find . -type f -exec sed -i 's/Gem::Platform\.match/Gem::Platform\.match_spec?/g' {} +

@adfoster-r7
Copy link
Contributor

Thanks for the error report! This should be fixed in a future release - closing as a duplicate of #19316 for now 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants