aboutsummaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-10-19 16:25:08 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2023-10-19 16:25:33 -0700
commitc221af2c3d0d0f7955214c14dfd66c8ccc7103e0 (patch)
treec047f0ca2e6b778ec7826ecc293555d9d8cacdf2 /tool
parent6d42f4dd2d1beacefb144c5caba0b80499d6681c (diff)
downloadruby-c221af2c3d0d0f7955214c14dfd66c8ccc7103e0.tar.gz
[DOC] Prism is a new default gem
Diffstat (limited to 'tool')
-rwxr-xr-xtool/update-NEWS-gemlist.rb10
1 files changed, 6 insertions, 4 deletions
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