From 4c1952f4bf9d2fe183431747a83596287e9b7631 Mon Sep 17 00:00:00 2001 From: hsbt Date: Thu, 7 Mar 2019 11:24:48 +0000 Subject: Ignore to handle the different platform When `GEM_HOME` was shared with CRuby and JRuby. RubyGems try to handle both platforms. It should be ignored the different platform. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rubygems/basic_specification.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/rubygems/basic_specification.rb') diff --git a/lib/rubygems/basic_specification.rb b/lib/rubygems/basic_specification.rb index edb38cb1c2..45a6fc08a0 100644 --- a/lib/rubygems/basic_specification.rb +++ b/lib/rubygems/basic_specification.rb @@ -71,8 +71,11 @@ class Gem::BasicSpecification elsif missing_extensions? @ignored = true - warn "Ignoring #{full_name} because its extensions are not built. " + - "Try: gem pristine #{name} --version #{version}" + if platform == RUBY_ENGINE + warn "Ignoring #{full_name} because its extensions are not built. " + + "Try: gem pristine #{name} --version #{version}" + end + return false end -- cgit v1.2.3