diff options
author | Vít Ondruch <vondruch@redhat.com> | 2020-02-27 07:35:40 +0100 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-02-28 14:32:20 +0900 |
commit | 9bede6e942e7726d320d734fead741672d060625 (patch) | |
tree | 41edcc08cdf047fc85e5d6ded203837f8a61c493 /tool/rbinstall.rb | |
parent | 3556a834a2847e52162d1d3302d4c64390df1694 (diff) | |
download | ruby-9bede6e942e7726d320d734fead741672d060625.tar.gz |
Fix wrong RegExp.
The missing `\` in PR #2922 causes the default gems to be installed from
the .gem packages instead from the expanded sources.
Diffstat (limited to 'tool/rbinstall.rb')
-rwxr-xr-x | tool/rbinstall.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 9cd99243a6..b1914d795b 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -884,7 +884,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 unless /^(\S+)\s+(S+).*/ =~ name + next unless /^(\S+)\s+(\S+).*/ =~ name gem_name = "#$1-#$2" path = "#{srcdir}/.bundle/gems/#{gem_name}/#$1.gemspec" next unless File.exist?(path) |