mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
[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:
parent
1464719f5f
commit
fe2b83e225
Notes:
git
2020-05-08 07:39:23 +09:00
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ class Gem::BasicSpecification
|
|||
elsif missing_extensions?
|
||||
@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. " +
|
||||
"Try: gem pristine #{name} --version #{version}"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue