[rubygems/rubygems] Fix headings levels in Changelogs

And adapt release scripts and configuration to the new structure.

3deb1aedae
This commit is contained in:
Antoine Marguerie 2025-05-21 15:07:54 +02:00 committed by Hiroshi SHIBATA
parent 803dae70cb
commit 11492bd88d
2 changed files with 12 additions and 10 deletions

View file

@ -7,8 +7,8 @@ require_relative "../command"
# RubyGems checkout or tarball.
class Gem::Commands::SetupCommand < Gem::Command
HISTORY_HEADER = %r{^#\s*[\d.a-zA-Z]+\s*/\s*\d{4}-\d{2}-\d{2}\s*$}
VERSION_MATCHER = %r{^#\s*([\d.a-zA-Z]+)\s*/\s*\d{4}-\d{2}-\d{2}\s*$}
HISTORY_HEADER = %r{^##\s*[\d.a-zA-Z]+\s*/\s*\d{4}-\d{2}-\d{2}\s*$}
VERSION_MATCHER = %r{^##\s*([\d.a-zA-Z]+)\s*/\s*\d{4}-\d{2}-\d{2}\s*$}
ENV_PATHS = %w[/usr/bin/env /bin/env].freeze