diff --git a/NEWS.md b/NEWS.md index 74e2150688..f789dc649a 100644 --- a/NEWS.md +++ b/NEWS.md @@ -623,7 +623,7 @@ The following deprecated APIs are removed. [Feature #16122]: https://bugs.ruby-lang.org/issues/16122 [Feature #16131]: https://bugs.ruby-lang.org/issues/16131 [Bug #16466]: https://bugs.ruby-lang.org/issues/16466 -[Feature #16663]: https://bugs.ruby-lang.org/issues/#16663 +[Feature #16663]: https://bugs.ruby-lang.org/issues/16663 [Feature #16806]: https://bugs.ruby-lang.org/issues/16806 [Bug #16889]: https://bugs.ruby-lang.org/issues/16889 [Bug #16908]: https://bugs.ruby-lang.org/issues/16908 @@ -636,23 +636,23 @@ The following deprecated APIs are removed. [Feature #18159]: https://bugs.ruby-lang.org/issues/18159 [Feature #18351]: https://bugs.ruby-lang.org/issues/18351 [Feature #18367]: https://bugs.ruby-lang.org/issues/18367 -[Bug #18435]: https://bugs.ruby-lang.org/issues/#18435 +[Bug #18435]: https://bugs.ruby-lang.org/issues/18435 [Feature #18481]: https://bugs.ruby-lang.org/issues/18481 [Bug #18487]: https://bugs.ruby-lang.org/issues/18487 [Feature #18564]: https://bugs.ruby-lang.org/issues/18564 [Feature #18571]: https://bugs.ruby-lang.org/issues/18571 [Feature #18585]: https://bugs.ruby-lang.org/issues/18585 [Feature #18589]: https://bugs.ruby-lang.org/issues/18589 -[Feature #18595]: https://bugs.ruby-lang.org/issues/#18595 +[Feature #18595]: https://bugs.ruby-lang.org/issues/18595 [Feature #18598]: https://bugs.ruby-lang.org/issues/18598 [Bug #18625]: https://bugs.ruby-lang.org/issues/18625 [Feature #18630]: https://bugs.ruby-lang.org/issues/18630 [Bug #18633]: https://bugs.ruby-lang.org/issues/18633 [Feature #18639]: https://bugs.ruby-lang.org/issues/18639 [Feature #18685]: https://bugs.ruby-lang.org/issues/18685 -[Bug #18729]: https://bugs.ruby-lang.org/issues/#18729 -[Bug #18751]: https://bugs.ruby-lang.org/issues/#18751 -[Feature #18774]: https://bugs.ruby-lang.org/issues/#18774 +[Bug #18729]: https://bugs.ruby-lang.org/issues/18729 +[Bug #18751]: https://bugs.ruby-lang.org/issues/18751 +[Feature #18774]: https://bugs.ruby-lang.org/issues/18774 [Feature #18776]: https://bugs.ruby-lang.org/issues/18776 [Bug #18782]: https://bugs.ruby-lang.org/issues/18782 [Feature #18788]: https://bugs.ruby-lang.org/issues/18788 @@ -660,9 +660,9 @@ The following deprecated APIs are removed. [Feature #18809]: https://bugs.ruby-lang.org/issues/18809 [Feature #18821]: https://bugs.ruby-lang.org/issues/18821 [Feature #18824]: https://bugs.ruby-lang.org/issues/18824 -[Feature #18832]: https://bugs.ruby-lang.org/issues/#18832 +[Feature #18832]: https://bugs.ruby-lang.org/issues/18832 [Feature #18925]: https://bugs.ruby-lang.org/issues/18925 -[Feature #18944]: https://bugs.ruby-lang.org/issues/#18944 +[Feature #18944]: https://bugs.ruby-lang.org/issues/18944 [Feature #18949]: https://bugs.ruby-lang.org/issues/18949 [Feature #18968]: https://bugs.ruby-lang.org/issues/18968 [Feature #19008]: https://bugs.ruby-lang.org/issues/19008 @@ -672,7 +672,7 @@ The following deprecated APIs are removed. [Feature #19070]: https://bugs.ruby-lang.org/issues/19070 [Feature #19071]: https://bugs.ruby-lang.org/issues/19071 [Feature #19078]: https://bugs.ruby-lang.org/issues/19078 -[Bug #19087]: https://bugs.ruby-lang.org/issues/19087 +[Bug #19087]: https://bugs.ruby-lang.org/issues/19087 [Bug #19100]: https://bugs.ruby-lang.org/issues/19100 [Feature #19135]: https://bugs.ruby-lang.org/issues/19135 [Feature #19138]: https://bugs.ruby-lang.org/issues/19138 diff --git a/tool/update-NEWS-refs.rb b/tool/update-NEWS-refs.rb index 8be26b048e..4ee392f90c 100644 --- a/tool/update-NEWS-refs.rb +++ b/tool/update-NEWS-refs.rb @@ -13,7 +13,7 @@ if links.empty? || lines.last != "" end new_src = lines.join("\n").gsub(/\[?\[(Feature|Bug)\s+#(\d+)\]\]?/) do - links[$2] ||= "[#$1 ##$2]: ".ljust(17) + "https://bugs.ruby-lang.org/issues/##$2" + links[$2] ||= "[#$1 ##$2]: ".ljust(18) + "https://bugs.ruby-lang.org/issues/#$2" "[[#$1 ##$2]]" end.chomp + "\n\n" + links.keys.sort.map {|k| links[k] }.join("\n") + "\n"