reissue 0.4.21 → 0.4.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3a28fd03cc31dda77bcbde9e17f4e5aebf6ecb50092b2a97e2a7861385f9e94
4
- data.tar.gz: a2d7b1a839d0c42aee1dc707ea0caa9bcf0f9387a8983788cf455c726f9b877e
3
+ metadata.gz: a9e4d5dc8c0b04d5c41514285fa8e8f2e7e87cc028b156ab7de97473e1e58276
4
+ data.tar.gz: e4af6b1a8061ec686f33e852b0abccd0d4e92335b87ad48c286e0645b7932ed7
5
5
  SHA512:
6
- metadata.gz: 2f5945026bb388b8c711e150fac291a1a47ad782d02f078a0e305739c3bbc5d4303bbc545eb6b24f1da2795b2edd4ae8872ea044589b527e224ccff3a46273e6
7
- data.tar.gz: 763d939af9da0dd92a800dfc299a978d67eada73de4b76bbfce50fd6556f8aa3e89ab2ffd79e66d79c6f8a2165b4806c0c312375481792ca83f36ec93a495550
6
+ metadata.gz: 12fe862113b9d5a765f7efd562ce4555b873e8496068c480f3a0531b873fbbcedc10bf44c1d971e7404ab1236f43125f08c31bac988ba88fb800dd78d5021618
7
+ data.tar.gz: 2235ef992fdfbda13a06e27bf1df4b582cb3ba9cfa034cdcc6bc1e7c61f8fa33167f553031dc7401eefb29edb59fc5e8ecbe699cdec3f2431796002356115b32
data/CHANGELOG.md CHANGED
@@ -5,10 +5,10 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
6
6
  and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
 
8
- ## [0.4.21] - 2026-03-11
9
-
10
- ## [0.4.20] - 2026-03-10
8
+ ## [0.4.22] - 2026-04-09
11
9
 
12
10
  ### Fixed
13
11
 
14
- - deferred_finalize skipping fragment collection when changelog has versioned entry with Unreleased date (d9d0bd7)
12
+ - changelog sections not following changelog_sections order on release (5f9c475)
13
+
14
+ ## [0.4.21] - 2026-03-11
@@ -29,7 +29,7 @@ module Reissue
29
29
  else
30
30
  "## [#{version}] - #{date}"
31
31
  end
32
- changes_string = changes.map do |section, section_changes|
32
+ changes_string = sorted_change_pairs(changes).map do |section, section_changes|
33
33
  format_section(section, section_changes)
34
34
  end.join("\n\n")
35
35
  [version_string, changes_string].reject { |str| str.empty? }.join("\n\n")
@@ -49,5 +49,13 @@ module Reissue
49
49
  #{changes.map { |change| "- #{change}" }.join("\n")}
50
50
  MARKDOWN
51
51
  end
52
+
53
+ # Keep section order aligned with rake / Reissue.changelog_sections (same rule as preview task).
54
+ def sorted_change_pairs(changes)
55
+ changes.sort_by do |section, _|
56
+ idx = Reissue.changelog_sections.index(section) || 999
57
+ [idx, section.to_s]
58
+ end
59
+ end
52
60
  end
53
61
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Reissue
4
- VERSION = "0.4.21"
5
- RELEASE_DATE = "2026-03-11"
4
+ VERSION = "0.4.22"
5
+ RELEASE_DATE = "2026-04-09"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reissue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.21
4
+ version: 0.4.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Gay