ruby-changes:63964
From: Nobuyoshi <ko1@a...>
Date: Sun, 6 Dec 2020 16:12:02 +0900 (JST)
Subject: [ruby-changes:63964] e4e2a33560 (master): update-bundled_gems: support recent format, keep the tag to test
https://git.ruby-lang.org/ruby.git/commit/?id=e4e2a33560 From e4e2a33560ca1ec4543fd593b344a29d452f251f Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 6 Dec 2020 15:59:46 +0900 Subject: update-bundled_gems: support recent format, keep the tag to test diff --git a/tool/update-bundled_gems.rb b/tool/update-bundled_gems.rb index a699d6b..cef31e2 100644 --- a/tool/update-bundled_gems.rb +++ b/tool/update-bundled_gems.rb @@ -9,5 +9,6 @@ unless /^[^#]/ !~ (gem = $F[0]) https://github.com/ruby/ruby/blob/trunk/tool/update-bundled_gems.rb#L9 gem = src.fetch_spec(gem) uri = gem.metadata["source_code_uri"] || gem.homepage uri = uri.sub(%r[\Ahttps://github\.com/[^/]+/[^/]+\K/tree/.*], "").chomp(".git") - $_ = [gem.name, gem.version, uri].join(" ") + $F[3][$F[1]] = gem.version.to_s if $F[3] && $F[3].include?($F[1]) + $_ = [gem.name, gem.version, uri, *$F[3..-1]].join(" ") end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/