summaryrefslogtreecommitdiff
path: root/tool/rbinstall.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-05 00:58:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-05 00:58:23 +0000
commitb08a45521e43bc5f6aa63e4b52a713b70df7943a (patch)
treee3bbca3e90bce6ab489fc0c774e42fee0dd33cd4 /tool/rbinstall.rb
parent2f4f44352c2926cc59ec57ea160727bd333660e4 (diff)
rbinstall.rb: install just one gemspec [ci skip]
* tool/rbinstall.rb (gem): install gemspec match with the directory only. some gems, (e.g., json) have multiple gemspec files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/rbinstall.rb')
-rwxr-xr-xtool/rbinstall.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index 6ae73544ad..ab61a0256e 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -761,6 +761,7 @@ install?(:ext, :comm, :gem) do
Gem::Specification.load(File.basename(path))
}
next unless spec.platform == Gem::Platform::RUBY
+ next unless spec.full_name == path[srcdir.size..-1][/\A\/gems\/([^\/]+)/, 1]
spec.extension_dir = "#{extensions_dir}/#{spec.full_name}"
if File.directory?(ext = "#{gem_ext_dir}/#{spec.full_name}")
spec.extensions[0] ||= "-"