diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-09-05 00:58:23 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-09-05 00:58:23 +0000 |
commit | b08a45521e43bc5f6aa63e4b52a713b70df7943a (patch) | |
tree | e3bbca3e90bce6ab489fc0c774e42fee0dd33cd4 /tool/rbinstall.rb | |
parent | 2f4f44352c2926cc59ec57ea160727bd333660e4 (diff) | |
download | ruby-b08a45521e43bc5f6aa63e4b52a713b70df7943a.tar.gz |
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-x | tool/rbinstall.rb | 1 |
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] ||= "-" |