summaryrefslogtreecommitdiff
path: root/tool/rbinstall.rb
diff options
context:
space:
mode:
authornagachika <nagachika@ruby-lang.org>2022-10-15 16:34:32 +0900
committernagachika <nagachika@ruby-lang.org>2022-10-15 16:34:32 +0900
commitcc745f2da175d1658aa2923d65a964848e96d001 (patch)
treec1bd4c194526b90393c4ee920b5a9c4ad095953b /tool/rbinstall.rb
parent95e996e3350484e7845c681593498d9031de1488 (diff)
merge revision(s) 416cba90c1610f54dafd91234de9ec74d73ae22c:
Try to install also gemspec files under gem directories Gemspec files having extension libraries are placed under each gem directories now. --- tool/rbinstall.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Diffstat (limited to 'tool/rbinstall.rb')
-rwxr-xr-xtool/rbinstall.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index a644beedd4..8534cf75a3 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -1046,7 +1046,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"
- next unless File.exist?(path)
+ 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