[前][次][番号順一覧][スレッド一覧]

ruby-changes:43996

From: nobu <ko1@a...>
Date: Sun, 4 Sep 2016 15:25:42 +0900 (JST)
Subject: [ruby-changes:43996] nobu:r56069 (trunk): rbinstall.rb: install iff expected platforms [ci skip]

nobu	2016-09-04 15:25:38 +0900 (Sun, 04 Sep 2016)

  New Revision: 56069

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56069

  Log:
    rbinstall.rb: install iff expected platforms [ci skip]
    
    * tool/rbinstall.rb (gem): install only gemspecs for expected
      platforms.  e.g., ignore json-java.gemspec in json gem.

  Modified files:
    trunk/tool/rbinstall.rb
Index: tool/rbinstall.rb
===================================================================
--- tool/rbinstall.rb	(revision 56068)
+++ tool/rbinstall.rb	(revision 56069)
@@ -760,6 +760,7 @@ install?(:ext, :comm, :gem) do https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L760
     spec = Dir.chdir(dir) {
       Gem::Specification.load(File.basename(path))
     }
+    next unless spec.platform == Gem::Platform::RUBY
     spec.extension_dir = "#{extensions_dir}/#{spec.full_name}"
     if File.directory?(ext = "#{gem_ext_dir}/#{spec.full_name}")
       spec.extensions[0] ||= "-"

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]