diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-12-06 16:00:51 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-12-06 16:11:09 +0900 |
commit | ea9f16a27fab68388532cf681e5f1dd79ef973c3 (patch) | |
tree | 386e3aeb934c617edab8cf142099f6dd11c6245c /tool | |
parent | 967ed35bbb2c42646b764ce9f72d69e609e2eafd (diff) |
update-bundled_gems: chomp ".git" suffix from the source code URI
Diffstat (limited to 'tool')
-rw-r--r-- | tool/update-bundled_gems.rb | 2 |
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 |