1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
hsbt 2018-08-28 13:42:39 +00:00
parent d36cd0b04d
commit 8a9996493a

View file

@ -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]