Skip to content

Commit 9bede6e

Browse files
voxiknobu
authored andcommitted
Fix wrong RegExp.
The missing `\` in PR #2922 causes the default gems to be installed from the .gem packages instead from the expanded sources.
1 parent 3556a83 commit 9bede6e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tool/rbinstall.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ def install_default_gem(dir, srcdir)
884884
gem_ext_dir = "#$extout/gems/#{CONFIG['arch']}"
885885
extensions_dir = Gem::StubSpecification.gemspec_stub("", gem_dir, gem_dir).extensions_dir
886886
File.foreach("#{srcdir}/gems/bundled_gems") do |name|
887-
next unless /^(\S+)\s+(S+).*/ =~ name
887+
next unless /^(\S+)\s+(\S+).*/ =~ name
888888
gem_name = "#$1-#$2"
889889
path = "#{srcdir}/.bundle/gems/#{gem_name}/#$1.gemspec"
890890
next unless File.exist?(path)

0 commit comments

Comments
 (0)