diff options
author | Benoit Daloze <eregontp@gmail.com> | 2020-04-07 18:09:13 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-05-08 07:38:50 +0900 |
commit | fe2b83e2250158e69933c703f3a6666ebf1ac721 (patch) | |
tree | 7ee7420d29f6d6f1928e56c8b4cdeb2d207cc347 /lib | |
parent | 1464719f5feabaa237902e59f482792641901c1a (diff) | |
download | ruby-fe2b83e2250158e69933c703f3a6666ebf1ac721.tar.gz |
[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
https://github.com/rubygems/rubygems/commit/0e62c3be91
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rubygems/basic_specification.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/basic_specification.rb b/lib/rubygems/basic_specification.rb index 816fc8cb8f..0e65f26d10 100644 --- a/lib/rubygems/basic_specification.rb +++ b/lib/rubygems/basic_specification.rb @@ -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 |