ruby-changes:74226
From: Nobuyoshi <ko1@a...>
Date: Mon, 24 Oct 2022 18:12:43 +0900 (JST)
Subject: [ruby-changes:74226] 8873c420d3 (master): Fix error when commit hash is removed [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=8873c420d3 From 8873c420d34d4573a153dd0d107a0ada099f4d26 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 24 Oct 2022 18:12:25 +0900 Subject: Fix error when commit hash is removed [ci skip] --- tool/update-bundled_gems.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/update-bundled_gems.rb b/tool/update-bundled_gems.rb index bed1cfc52b..5ec0528721 100755 --- a/tool/update-bundled_gems.rb +++ b/tool/update-bundled_gems.rb @@ -17,6 +17,6 @@ unless /^[^#]/ !~ (gem = $F[0]) https://github.com/ruby/ruby/blob/trunk/tool/update-bundled_gems.rb#L17 end end f = [gem.name, gem.version.to_s, uri, *$F[3..-1]] - $_.gsub!(/\S+\s*/) {|s| f.shift.ljust(s.size)} + $_.gsub!(/\S+\s*/) {|s| (f.shift || "").ljust(s.size)} $_ = [$_, *f].join(" ") unless f.empty? end -- cgit v1.2.3 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/