reissue 0.5.1 → 0.5.2

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: 6c5e8636f0e88ac91af9c6dec7033c12a62e55d6c47a0eb2212dc03d51877058
4
- data.tar.gz: a83714b57eb820b00a4b3cbfdab77640d5062f7d3e00aba0b52aca83d89cbad0
3
+ metadata.gz: ec588273a5faaed4d2287b8bde8877deb2e64b4ff8ef84ff71ce5ce58dd85ffc
4
+ data.tar.gz: 4ae823291b5180145e82bdba30d87c89a69440f5ab41df9c6120813898afdc1c
5
5
  SHA512:
6
- metadata.gz: 63a416ec48050137cd7ee8ecd1d295395aa2e32b243fbb0835aecd185a48ddf36abebfe1c979450ef6be9cec46a67c2163896fba5b265874dc7b13eb1bc76ad5
7
- data.tar.gz: d6b7f8c2e94997cd952c8e84aa74f29659d06cae56d338e20c10d37405ee1eb8dbf5615688268d366855942d1745bd36d7cd2f8881a1c29104c6045ad29a1947
6
+ metadata.gz: 91d584ae8adb5bebee45f1ca5668df9e136399a56134350ea8cf76c25dff748406f909cfb3d4110d8c92907376c3105c6d1d94d89d7c9047b5d0955004f28e84
7
+ data.tar.gz: d27c47553f7ac4a2969a6ac15e91ad23e928f74c989526e7a20e6a92e8ef333363cd04817bed4ab89833bd2ae8f7bc234e02e6a1fa87e1110660a57551a39594
data/CHANGELOG.md CHANGED
@@ -5,6 +5,20 @@ 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.5.2] - 2026-09-17
9
+
10
+ ### Added
11
+
12
+ - finalize_message option sets the finalize commit subject from the version and date (3716c08)
13
+
14
+ ### Changed
15
+
16
+ - Finalize commits use the subject "Finalize changelog for VERSION" without the release date (3716c08)
17
+
18
+ ### Fixed
19
+
20
+ - Shared release workflow retries post-release PR creation up to three times before failing, since the gem is already published and the branch pushed by that point (84bf0da)
21
+
8
22
  ## [0.5.1] - 2026-07-24
9
23
 
10
24
  ### Added
@@ -19,9 +33,3 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
19
33
  ### Fixed
20
34
 
21
35
  - Releases no longer publish a version whose changelog entry and git tag name the previous version (acf4c1a)
22
-
23
- ## [0.4.23] - 2026-07-21
24
-
25
- ### Added
26
-
27
- - Optional runbook_file setting maintains a post-release runbook populated from Runbook: git trailers or direct edits (b41ba15)
data/README.md CHANGED
@@ -123,6 +123,10 @@ Reissue::Task.create :reissue do |task|
123
123
  # Optional: Whether to commit the results of the finalize task. Defaults to true
124
124
  task.commit_finalize = true
125
125
 
126
+ # Optional: A callable returning the finalize commit subject, given version and date.
127
+ # Defaults to: ->(version, date) { "Finalize changelog for #{version}" }
128
+ task.finalize_message = ->(version, date) { "Release #{version}" }
129
+
126
130
  # Optional: Whether to push the changes automatically. Defaults to false
127
131
  # Options: false, true (push working branch), :branch (create and push new branch)
128
132
  task.push_finalize = :branch
data/lib/reissue/rake.rb CHANGED
@@ -79,6 +79,11 @@ module Reissue
79
79
  # Whether to commit the finalize change to the changelog. Default: true.
80
80
  attr_accessor :commit_finalize
81
81
 
82
+ # Callable receiving the version and release date, returning the commit subject.
83
+ # The default omits the date to stay under the 50-character subject limit.
84
+ # Default: ->(version, date) { "Finalize changelog for #{version}" }
85
+ attr_accessor :finalize_message
86
+
82
87
  # Whether to commit the clear fragments change.
83
88
  # Returns false for :git fragments since there are no files to commit.
84
89
  attr_writer :commit_clear_fragments
@@ -137,6 +142,7 @@ module Reissue
137
142
  @clear_fragments = false
138
143
  @commit = true
139
144
  @commit_finalize = true
145
+ @finalize_message = ->(version, _date) { "Finalize changelog for #{version}" }
140
146
  @commit_clear_fragments = true
141
147
  @push_finalize = false
142
148
  @version_limit = 2
@@ -384,7 +390,7 @@ module Reissue
384
390
  )
385
391
  end
386
392
 
387
- finalize_message = "Finalize the changelog for version #{version} on #{date}"
393
+ message = finalize_message.call(version, date)
388
394
  if commit_finalize
389
395
  if finalize_with_branch?
390
396
  tasker["#{name}:branch"].invoke("finalize/#{version}")
@@ -392,13 +398,13 @@ module Reissue
392
398
  run_command("git add -u", "Failed to stage finalized changelog")
393
399
  stage_updated_paths
394
400
  if changes_to_commit?
395
- run_command("git commit -m '#{finalize_message}'", "Failed to commit finalized changelog")
401
+ run_command("git commit -m '#{message}'", "Failed to commit finalized changelog")
396
402
  tasker["#{name}:push"].invoke if push_finalize?
397
403
  else
398
- puts finalize_message
404
+ puts message
399
405
  end
400
406
  else
401
- puts finalize_message
407
+ puts message
402
408
  end
403
409
  end
404
410
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Reissue
4
- VERSION = "0.5.1"
5
- RELEASE_DATE = "2026-07-24"
4
+ VERSION = "0.5.2"
5
+ RELEASE_DATE = "2026-09-17"
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.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Gay