summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-06 16:00:51 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-06 16:11:09 +0900
commitea9f16a27fab68388532cf681e5f1dd79ef973c3 (patch)
tree386e3aeb934c617edab8cf142099f6dd11c6245c /tool
parent967ed35bbb2c42646b764ce9f72d69e609e2eafd (diff)
update-bundled_gems: chomp ".git" suffix from the source code URI
Diffstat (limited to 'tool')
-rw-r--r--tool/update-bundled_gems.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/update-bundled_gems.rb b/tool/update-bundled_gems.rb
index 905857e27c..a699d6bae9 100644
--- a/tool/update-bundled_gems.rb
+++ b/tool/update-bundled_gems.rb
@@ -8,6 +8,6 @@ unless /^[^#]/ !~ (gem = $F[0])
}
gem = src.fetch_spec(gem)
uri = gem.metadata["source_code_uri"] || gem.homepage
- uri = uri.sub(%r[\Ahttps://github\.com/[^/]+/[^/]+\K/tree/.*], "")
+ uri = uri.sub(%r[\Ahttps://github\.com/[^/]+/[^/]+\K/tree/.*], "").chomp(".git")
$_ = [gem.name, gem.version, uri].join(" ")
end