From ea9f16a27fab68388532cf681e5f1dd79ef973c3 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 6 Dec 2020 16:00:51 +0900 Subject: update-bundled_gems: chomp ".git" suffix from the source code URI --- tool/update-bundled_gems.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tool') 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 -- cgit v1.2.3