mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Try to install also gemspec files under gem directories
Gemspec files having extension libraries are placed under each gem directories now.
This commit is contained in:
parent
b249178398
commit
416cba90c1
Notes:
git
2022-07-14 09:00:39 +09:00
1 changed files with 4 additions and 1 deletions
|
@ -1051,7 +1051,10 @@ install?(:ext, :comm, :gem, :'bundled-gems') do
|
|||
next unless /^(\S+)\s+(\S+).*/ =~ name
|
||||
gem_name = "#$1-#$2"
|
||||
path = "#{srcdir}/.bundle/specifications/#{gem_name}.gemspec"
|
||||
unless File.exist?(path)
|
||||
path = "#{srcdir}/.bundle/gems/#{gem_name}/#{gem_name}.gemspec"
|
||||
next unless File.exist?(path)
|
||||
end
|
||||
spec = load_gemspec(path, "#{srcdir}/.bundle/gems/#{gem_name}")
|
||||
next unless spec.platform == Gem::Platform::RUBY
|
||||
next unless spec.full_name == gem_name
|
||||
|
|
Loading…
Reference in a new issue