summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
Diffstat (limited to 'tool')
-rwxr-xr-xtool/update-bundled_gems.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/tool/update-bundled_gems.rb b/tool/update-bundled_gems.rb
index 5b9c6b6974..bed1cfc52b 100755
--- a/tool/update-bundled_gems.rb
+++ b/tool/update-bundled_gems.rb
@@ -16,5 +16,7 @@ unless /^[^#]/ !~ (gem = $F[0])
$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