ruby-changes:61076
From: Benoit <ko1@a...>
Date: Fri, 8 May 2020 07:39:44 +0900 (JST)
Subject: [ruby-changes:61076] fe2b83e225 (master): [rubygems/rubygems] Fix platform comparison bug in #contains_requirable_file?
https://git.ruby-lang.org/ruby.git/commit/?id=fe2b83e225 From fe2b83e2250158e69933c703f3a6666ebf1ac721 Mon Sep 17 00:00:00 2001 From: Benoit Daloze <eregontp@g...> Date: Tue, 7 Apr 2020 18:09:13 +0200 Subject: [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 diff --git a/lib/rubygems/basic_specification.rb b/lib/rubygems/basic_specification.rb index 816fc8c..0e65f26 100644 --- a/lib/rubygems/basic_specification.rb +++ b/lib/rubygems/basic_specification.rb @@ -78,7 +78,7 @@ class Gem::BasicSpecification https://github.com/ruby/ruby/blob/trunk/lib/rubygems/basic_specification.rb#L78 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/