diff options
-rwxr-xr-x | tool/update-bundled_gems.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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]) 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 |