reissue 0.4.20 → 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: 5ef812dbcea96e962840220c51f6107352672125790ac6583ee09e96508ff331
4
- data.tar.gz: e2b18453be73f0111d1033ed007816bed8f7209ecd6bceae54695233730a09c2
3
+ metadata.gz: a9e4d5dc8c0b04d5c41514285fa8e8f2e7e87cc028b156ab7de97473e1e58276
4
+ data.tar.gz: e4af6b1a8061ec686f33e852b0abccd0d4e92335b87ad48c286e0645b7932ed7
5
5
  SHA512:
6
- metadata.gz: 41722aad368f14d32a1590f46d31d70c707c6e295d8d3516d3ab7b3b0f8145b81d3c80e31895b87ce64a553dedce8a9b57e268af671be3cc689ca03778c4e335
7
- data.tar.gz: 73f63925f09204f96348a2064901508467d627cf71eb65952b82906cc865aafaf413848c7094a5075bb602c4461b097a5140880756b42538f43aed4d9c38305a
6
+ metadata.gz: 12fe862113b9d5a765f7efd562ce4555b873e8496068c480f3a0531b873fbbcedc10bf44c1d971e7404ab1236f43125f08c31bac988ba88fb800dd78d5021618
7
+ data.tar.gz: 2235ef992fdfbda13a06e27bf1df4b582cb3ba9cfa034cdcc6bc1e7c61f8fa33167f553031dc7401eefb29edb59fc5e8ecbe699cdec3f2431796002356115b32
data/CHANGELOG.md CHANGED
@@ -5,29 +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.20] - 2026-03-10
8
+ ## [0.4.22] - 2026-04-09
9
9
 
10
10
  ### Fixed
11
11
 
12
- - 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
13
 
14
- ## [0.4.19] - 2026-03-09
15
-
16
- ### Added
17
-
18
- - Support parsing changelog version entries without a date field (e.g. ## [Unreleased]) (75c5d6c)
19
- - Print ## [Unreleased] without trailing date suffix when version is Unreleased (aed6011)
20
- - ChangelogUpdater handles Unreleased version strings without crashing (d5f4e3e)
21
- - ChangelogUpdater#finalize accepts resolved_version parameter to replace Unreleased (d5f4e3e)
22
- - VersionUpdater#set_version for writing arbitrary version strings like Unreleased (33b3d76)
23
- - Reissue.deferred_call sets VERSION to Unreleased and adds ## [Unreleased] changelog entry (76e3d61)
24
- - Reissue.deferred_finalize resolves version from segment, explicit version, or git trailers at release time (1bdf36f)
25
- - deferred_versioning flag for Reissue::Task to defer version bumping until finalize (aac3ade)
26
- - Rake reissue task sets VERSION to Unreleased in deferred mode (aac3ade)
27
- - Rake reissue:finalize task accepts version or segment argument in deferred mode (aac3ade)
28
- - reissue_deferred_versioning attribute in Hoe plugin (e5a78d4)
29
- - End-to-end integration tests for the deferred versioning workflow (77a313e)
30
-
31
- ### Changed
32
-
33
- - set_version uses RELEASE_VERSION_MATCH paralleling RELEASE_DATE_MATCH pattern (efec0e5)
14
+ ## [0.4.21] - 2026-03-11
data/Rakefile CHANGED
@@ -19,5 +19,3 @@ Reissue::Task.create :reissue do |task|
19
19
  task.fragment = :git # Use git trailers for changelog entries
20
20
  task.push_finalize = :branch
21
21
  end
22
-
23
- Rake.application.options.trace = true
@@ -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/rake.rb CHANGED
@@ -319,27 +319,11 @@ module Reissue
319
319
  end
320
320
  end
321
321
 
322
- desc <<~MSG
323
- Create a new branch for the next version.
324
-
325
- If the branch already exists it will be deleted and a new one will be created along with a new tag.
326
- MSG
327
-
322
+ desc "Create or switch to a branch for the release workflow."
328
323
  task "#{name}:branch", [:branch_name] do |task, args|
329
324
  raise "No branch name specified" unless args[:branch_name]
330
325
  branch_name = args[:branch_name]
331
- # Force create branch by deleting if exists, then creating fresh
332
- if system("git show-ref --verify --quiet refs/heads/#{branch_name}")
333
- # Extract version from branch name (e.g., "reissue/0.4.1" -> "0.4.1")
334
- version = branch_name.sub(/^reissue\//, "")
335
- # Delete matching tag if it exists
336
- system("git tag -d v#{version} 2>/dev/null || true")
337
- # Delete the local branch
338
- run_command("git branch -D #{branch_name}", "Failed to delete existing branch #{branch_name}")
339
- # Delete the remote tracking ref to prevent --force-with-lease from comparing against stale data
340
- system("git branch -d -r origin/#{branch_name} 2>/dev/null")
341
- end
342
- run_command("git checkout -b #{branch_name}", "Failed to create and checkout branch #{branch_name}")
326
+ run_command("git checkout -B #{branch_name}", "Failed to checkout branch #{branch_name}")
343
327
  end
344
328
 
345
329
  desc "Push the current branch to the remote repository."
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Reissue
4
- VERSION = "0.4.20"
5
- RELEASE_DATE = "2026-03-10"
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.20
4
+ version: 0.4.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Gay