diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-28 13:42:39 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-28 13:42:39 +0000 |
commit | 8a9996493a3eb60326ea63f8be66ba37ad1993c2 (patch) | |
tree | e8f0322c5b9bbeb087bde940397a0194cff1bc43 /tool | |
parent | d36cd0b04d672c79213498c0a85786b4b961836b (diff) |
Fixed installation failure with mswin environment.
[ruby-core:88699][Bug #15035]
This patch was provided by MSP-Greg.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/rbinstall.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 194396321e..2584ac1e91 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -792,7 +792,8 @@ install?(:ext, :comm, :gem, :'bundled-gems') do } gem_ext_dir = "#$extout/gems/#{CONFIG['arch']}" extensions_dir = Gem::StubSpecification.gemspec_stub("", gem_dir, gem_dir).extensions_dir - Gem::Specification.each_gemspec([srcdir+'/gems/*']) do |path| + dirs = Gem::Util.glob_files_in_dir "*/", "#{srcdir}/gems" + Gem::Specification.each_gemspec(dirs) do |path| spec = load_gemspec(path) next unless spec.platform == Gem::Platform::RUBY next unless spec.full_name == path[srcdir.size..-1][/\A\/gems\/([^\/]+)/, 1] |