summaryrefslogtreecommitdiff
path: root/tool/update-bundled_gems.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-10-24 18:36:40 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-10-24 18:38:09 +0900
commit6cca8a0ceb7936d110aca600225ede87864df4e7 (patch)
treebdaa7bbf6ed355a33ef3b5f40939917d6d5ef9fd /tool/update-bundled_gems.rb
parentc7a5ca999e5e2a6ad99b46798c4cc056f832aa65 (diff)
downloadruby-6cca8a0ceb7936d110aca600225ede87864df4e7.tar.gz
Strip trailing spaces [ci skip]
Diffstat (limited to 'tool/update-bundled_gems.rb')
-rwxr-xr-xtool/update-bundled_gems.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/update-bundled_gems.rb b/tool/update-bundled_gems.rb
index 5ec0528721..c8927b878d 100755
--- a/tool/update-bundled_gems.rb
+++ b/tool/update-bundled_gems.rb
@@ -19,4 +19,5 @@ unless /^[^#]/ !~ (gem = $F[0])
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?
+ $_.rstrip!
end