[前][次][番号順一覧][スレッド一覧]

ruby-changes:63966

From: Nobuyoshi <ko1@a...>
Date: Sun, 6 Dec 2020 16:12:03 +0900 (JST)
Subject: [ruby-changes:63966] ea9f16a27f (master): update-bundled_gems: chomp ".git" suffix from the source code URI

https://git.ruby-lang.org/ruby.git/commit/?id=ea9f16a27f

From ea9f16a27fab68388532cf681e5f1dd79ef973c3 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sun, 6 Dec 2020 16:00:51 +0900
Subject: update-bundled_gems: chomp ".git" suffix from the source code URI


diff --git a/tool/update-bundled_gems.rb b/tool/update-bundled_gems.rb
index 905857e..a699d6b 100644
--- a/tool/update-bundled_gems.rb
+++ b/tool/update-bundled_gems.rb
@@ -8,6 +8,6 @@ unless /^[^#]/ !~ (gem = $F[0]) https://github.com/ruby/ruby/blob/trunk/tool/update-bundled_gems.rb#L8
   }
   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 v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]