diff --git a/NEWS.md b/NEWS.md index c1caec6fad..1042b684f4 100644 --- a/NEWS.md +++ b/NEWS.md @@ -102,6 +102,10 @@ Note: We're only listing outstanding class updates. * Random::Formatter#alphanumeric is extended to accept optional `chars` keyword argument. [[Feature #18183]] +The following default gem is added. + +* prism 0.15.1 + The following default gems are updated. * RubyGems 3.5.0.dev @@ -115,7 +119,6 @@ The following default gems are updated. * nkf 0.1.3 * openssl 3.2.0 * optparse 0.4.0.pre.1 -* prism 0.15.1 * psych 5.1.1.1 * reline 0.3.9 * stringio 3.0.9 diff --git a/tool/update-NEWS-gemlist.rb b/tool/update-NEWS-gemlist.rb index 6804900df1..aea471aa4e 100755 --- a/tool/update-NEWS-gemlist.rb +++ b/tool/update-NEWS-gemlist.rb @@ -28,12 +28,14 @@ ARGV.each do |type| next unless v [g, v] unless last[g] == v end - if type == 'bundled' - changed, added = changed.partition {|g, _| last[g]} - end + changed, added = changed.partition {|g, _| last[g]} update[changed, type] or next if added and !added.empty? - update[added, 'default', 'now bundled'] or next + if type == 'bundled' + update[added, 'default', 'now bundled'] or next + else + update[added, 'default', 'added'] or next + end end File.write("NEWS.md", news) end