Skip to content

Commit

Permalink
Preserve each column positions in gems/bundled_gems
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Aug 12, 2022
1 parent b179926 commit e444455
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tool/update-bundled_gems.rb
Expand Up @@ -16,5 +16,7 @@
$F[3..-1] = []
end
end
$_ = [gem.name, gem.version, uri, *$F[3..-1]].join(" ")
f = [gem.name, gem.version.to_s, uri, *$F[3..-1]]
$_.gsub!(/\S+\s*/) {|s| f.shift.ljust(s.size)}
$_ = [$_, *f].join(" ") unless f.empty?
end

0 comments on commit e444455

Please sign in to comment.