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 +4 -4
- data/CHANGELOG.md +4 -4
- data/lib/reissue/printer.rb +9 -1
- data/lib/reissue/version.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a9e4d5dc8c0b04d5c41514285fa8e8f2e7e87cc028b156ab7de97473e1e58276
|
|
4
|
+
data.tar.gz: e4af6b1a8061ec686f33e852b0abccd0d4e92335b87ad48c286e0645b7932ed7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
9
|
-
|
|
10
|
-
## [0.4.20] - 2026-03-10
|
|
8
|
+
## [0.4.22] - 2026-04-09
|
|
11
9
|
|
|
12
10
|
### Fixed
|
|
13
11
|
|
|
14
|
-
-
|
|
12
|
+
- changelog sections not following changelog_sections order on release (5f9c475)
|
|
13
|
+
|
|
14
|
+
## [0.4.21] - 2026-03-11
|
data/lib/reissue/printer.rb
CHANGED
|
@@ -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
|
data/lib/reissue/version.rb
CHANGED