summaryrefslogtreecommitdiff
path: root/tool/rbinstall.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/rbinstall.rb')
-rwxr-xr-xtool/rbinstall.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index aadfd41ef8..eb13be9360 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -923,6 +923,7 @@ 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
File.foreach("#{srcdir}/gems/bundled_gems") do |name|
+ next if /^\s*(?:#|$)/ =~ name
next unless /^(\S+)\s+(\S+).*/ =~ name
gem_name = "#$1-#$2"
path = "#{srcdir}/.bundle/gems/#{gem_name}/#$1.gemspec"