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 +4 -4
- data/CHANGELOG.md +14 -6
- data/README.md +4 -0
- data/lib/reissue/rake.rb +10 -4
- 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: ec588273a5faaed4d2287b8bde8877deb2e64b4ff8ef84ff71ce5ce58dd85ffc
|
|
4
|
+
data.tar.gz: 4ae823291b5180145e82bdba30d87c89a69440f5ab41df9c6120813898afdc1c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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 '#{
|
|
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
|
|
404
|
+
puts message
|
|
399
405
|
end
|
|
400
406
|
else
|
|
401
|
-
puts
|
|
407
|
+
puts message
|
|
402
408
|
end
|
|
403
409
|
end
|
|
404
410
|
|
data/lib/reissue/version.rb
CHANGED