[rubygems/rubygems] Fix platform comparison bug in #contains_requirable_file?

* One should not compare RUBY_ENGINE and Gem::Platform.
* Introduced in https://github.com/rubygems/rubygems/pull/2672

0e62c3be91
This commit is contained in:
Benoit Daloze 2020-04-07 18:09:13 +02:00 committed by Hiroshi SHIBATA
parent 1464719f5f
commit fe2b83e225
Notes: git 2020-05-08 07:39:23 +09:00

View file

@ -78,7 +78,7 @@ class Gem::BasicSpecification
elsif missing_extensions? elsif missing_extensions?
@ignored = true @ignored = true
if RUBY_ENGINE == platform || Gem::Platform.local === platform if Gem::Platform::RUBY == platform || Gem::Platform.local === platform
warn "Ignoring #{full_name} because its extensions are not built. " + warn "Ignoring #{full_name} because its extensions are not built. " +
"Try: gem pristine #{name} --version #{version}" "Try: gem pristine #{name} --version #{version}"
end end