reissue 0.4.19 → 0.4.21
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 -30
- data/Rakefile +0 -2
- data/lib/reissue/rake.rb +2 -18
- data/lib/reissue/version.rb +2 -2
- data/lib/reissue.rb +5 -1
- 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: f3a28fd03cc31dda77bcbde9e17f4e5aebf6ecb50092b2a97e2a7861385f9e94
|
|
4
|
+
data.tar.gz: a2d7b1a839d0c42aee1dc707ea0caa9bcf0f9387a8983788cf455c726f9b877e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2f5945026bb388b8c711e150fac291a1a47ad782d02f078a0e305739c3bbc5d4303bbc545eb6b24f1da2795b2edd4ae8872ea044589b527e224ccff3a46273e6
|
|
7
|
+
data.tar.gz: 763d939af9da0dd92a800dfc299a978d67eada73de4b76bbfce50fd6556f8aa3e89ab2ffd79e66d79c6f8a2165b4806c0c312375481792ca83f36ec93a495550
|
data/CHANGELOG.md
CHANGED
|
@@ -5,36 +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.
|
|
8
|
+
## [0.4.21] - 2026-03-11
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
## [0.4.20] - 2026-03-10
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
- Print ## [Unreleased] without trailing date suffix when version is Unreleased (aed6011)
|
|
14
|
-
- ChangelogUpdater handles Unreleased version strings without crashing (d5f4e3e)
|
|
15
|
-
- ChangelogUpdater#finalize accepts resolved_version parameter to replace Unreleased (d5f4e3e)
|
|
16
|
-
- VersionUpdater#set_version for writing arbitrary version strings like Unreleased (33b3d76)
|
|
17
|
-
- Reissue.deferred_call sets VERSION to Unreleased and adds ## [Unreleased] changelog entry (76e3d61)
|
|
18
|
-
- Reissue.deferred_finalize resolves version from segment, explicit version, or git trailers at release time (1bdf36f)
|
|
19
|
-
- deferred_versioning flag for Reissue::Task to defer version bumping until finalize (aac3ade)
|
|
20
|
-
- Rake reissue task sets VERSION to Unreleased in deferred mode (aac3ade)
|
|
21
|
-
- Rake reissue:finalize task accepts version or segment argument in deferred mode (aac3ade)
|
|
22
|
-
- reissue_deferred_versioning attribute in Hoe plugin (e5a78d4)
|
|
23
|
-
- End-to-end integration tests for the deferred versioning workflow (77a313e)
|
|
12
|
+
### Fixed
|
|
24
13
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
- set_version uses RELEASE_VERSION_MATCH paralleling RELEASE_DATE_MATCH pattern (efec0e5)
|
|
28
|
-
|
|
29
|
-
## [0.4.18] - 2026-02-25
|
|
30
|
-
|
|
31
|
-
### Added
|
|
32
|
-
|
|
33
|
-
- RELEASE_DATE constant tracking in VersionUpdater (496ec6b)
|
|
34
|
-
- Reset RELEASE_DATE to Unreleased when bumping version via Reissue.call (a7894cc)
|
|
35
|
-
- Update RELEASE_DATE to actual date during Reissue.finalize (8253796)
|
|
36
|
-
- RELEASE_DATE to the version.rb (6e08782)
|
|
37
|
-
|
|
38
|
-
### Changed
|
|
39
|
-
|
|
40
|
-
- Pass version_file to Reissue.finalize from rake task (83682ff)
|
|
14
|
+
- deferred_finalize skipping fragment collection when changelog has versioned entry with Unreleased date (d9d0bd7)
|
data/Rakefile
CHANGED
data/lib/reissue/rake.rb
CHANGED
|
@@ -319,27 +319,11 @@ module Reissue
|
|
|
319
319
|
end
|
|
320
320
|
end
|
|
321
321
|
|
|
322
|
-
desc
|
|
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
|
-
|
|
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."
|
data/lib/reissue/version.rb
CHANGED
data/lib/reissue.rb
CHANGED
|
@@ -111,7 +111,11 @@ module Reissue
|
|
|
111
111
|
|
|
112
112
|
if fragment
|
|
113
113
|
changelog = Parser.parse(File.read(changelog_file))
|
|
114
|
-
unreleased = changelog["versions"].find { |v|
|
|
114
|
+
unreleased = changelog["versions"].find { |v|
|
|
115
|
+
v["version"] == "Unreleased" ||
|
|
116
|
+
v["date"].nil? ||
|
|
117
|
+
v["date"] == "Unreleased"
|
|
118
|
+
}
|
|
115
119
|
|
|
116
120
|
if unreleased
|
|
117
121
|
changelog["versions"].delete(unreleased)
|