mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
update-bundled_gems: chomp ".git" suffix from the source code URI
This commit is contained in:
parent
967ed35bbb
commit
ea9f16a27f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue