summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-01-11 00:58:12 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-01-13 20:34:45 +0900
commit447f8f7a3c663f6b78f8159a9a8f4f0b9d8c270f (patch)
treed368f75bf7b1ad70b7845835f47c05d3ffb99ee9 /tool
parent3ecffae8e81b8c508b4b964643a1468718452054 (diff)
[DOC] Changed gem list style in NEWS.md
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7104
Diffstat (limited to 'tool')
-rwxr-xr-xtool/update-NEWS-gemlist.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/update-NEWS-gemlist.rb b/tool/update-NEWS-gemlist.rb
index ef2cc4fe36..42c263433d 100755
--- a/tool/update-NEWS-gemlist.rb
+++ b/tool/update-NEWS-gemlist.rb
@@ -5,7 +5,7 @@ prev = news[/since the \*+(\d+\.\d+\.\d+)\*+/, 1]
prevs = [prev, prev.sub(/\.\d+\z/, '')]
update = ->(list, type, desc = "updated") do
- news.sub!(/^\*( +)The following #{type} gems? (?:are|is) #{desc}\.\n(\n*)\K(?: \1\*( +).*\n)*\n*/) do
+ news.sub!(/^(?:\*( +))?The following #{type} gems? (?:are|is) #{desc}\.\n(\n*)\K(?:(?(1) \1)\*( +).*\n)*\n*/) do
mark = "#{$1&.<< " "}*#{$3 || ' '}"
list.map {|g, v|"#{mark}#{g} #{v}\n"}.join("") + $2
end