ruby-changes:43995
From: nobu <ko1@a...>
Date: Sun, 4 Sep 2016 15:16:02 +0900 (JST)
Subject: [ruby-changes:43995] nobu:r56068 (trunk): rbinstall.rb: chdir to gem directory [ci skip]
nobu 2016-09-04 15:15:58 +0900 (Sun, 04 Sep 2016) New Revision: 56068 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56068 Log: rbinstall.rb: chdir to gem directory [ci skip] * tool/rbinstall.rb (gem): load gemspec files under each directories, since some gemspecs read files there. Modified files: trunk/tool/rbinstall.rb Index: tool/rbinstall.rb =================================================================== --- tool/rbinstall.rb (revision 56067) +++ tool/rbinstall.rb (revision 56068) @@ -755,7 +755,11 @@ install?(:ext, :comm, :gem) do https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L755 } gem_ext_dir = "#$extout/gems/#{CONFIG['arch']}" extensions_dir = Gem::StubSpecification.gemspec_stub("", gem_dir, gem_dir).extensions_dir - Gem::Specification.each_spec([srcdir+'/gems/*']) do |spec| + Gem::Specification.each_gemspec([srcdir+'/gems/*']) do |path| + dir = File.dirname(path) + spec = Dir.chdir(dir) { + Gem::Specification.load(File.basename(path)) + } 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/