mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
Try to load original gemspec from .bundle/gems/foo-x.y.z/foo.gemspec
.
`.bundle/specification/foo-x.y.z.gemspec` may be changed our toolchain
This commit is contained in:
parent
8d80dad6bc
commit
0314bc4aad
1 changed files with 6 additions and 5 deletions
|
@ -1046,12 +1046,13 @@ install?(:ext, :comm, :gem, :'bundled-gems') do
|
|||
next if /^\s*(?:#|$)/ =~ name
|
||||
next unless /^(\S+)\s+(\S+).*/ =~ name
|
||||
gem_name = "#$1-#$2"
|
||||
# Try to find the gemspec file
|
||||
path = "#{srcdir}/.bundle/gems/#{gem_name}/#{name}.gemspec"
|
||||
unless File.exist?(path)
|
||||
# Try to find the gemspec file for C ext gems
|
||||
# ex .bundle/gems/debug-1.7.1/debug-1.7.1.gemspec
|
||||
# This gemspec keep the original dependencies
|
||||
path = "#{srcdir}/.bundle/gems/#{gem_name}/#{gem_name}.gemspec"
|
||||
unless File.exist?(path)
|
||||
path = "#{srcdir}/.bundle/specifications/#{gem_name}.gemspec"
|
||||
unless File.exist?(path)
|
||||
skipped[gem_name] = "gemspec not found"
|
||||
next
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue