reissue 0.4.5 → 0.4.6

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: cbf7f6743d0d3f7d9cc6ae1d2daa7b60debf47a437473a01a23d18e50450b3ed
4
- data.tar.gz: 545d45ca3354aa70cba0b3bb01ba5b653d62b26b6c9ee37dd4c398f1384e7fee
3
+ metadata.gz: 9c61992d2172981673e7c362ea9cbcdcaa670ef4ceb3fed96788b5505fbc711e
4
+ data.tar.gz: eb845aa92d394db11bdc07c65a932c235f52b7f791112925da59be72231fb117
5
5
  SHA512:
6
- metadata.gz: f7f3a5b754e4d9189f1ca8452510129e1b4550dcf9dba385b9d92af1e6dc2e648582d356483648f7e2a9ea766b1efec87e118a9c34def1800e2201f28997ffb9
7
- data.tar.gz: dd3518eebf74b5280eca612148cb8782d591f195e4f8d7f31ba314c7e5ec109c2bcd55aecf91128ac9d22802a36f1feb63671c644835a350f041fa1ca16f1b94
6
+ metadata.gz: 21de07a153e7d6fe299cd12400348c727e1b712ab3d6f64ee2c58a77955cf6f6b963d7a115edf4b13c77384684101b929aaae184f12859377e3a3a65a4007a90
7
+ data.tar.gz: b5d16f47253ede33cfdc994209c09678ef2fd258bd8c3c0a9411cba22918445d14a28d9741865ca9d33f8b29e16723475cb04e5f031da1d71477cbe585d37252
data/CHANGELOG.md CHANGED
@@ -5,7 +5,7 @@ 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.5] - 2025-11-21
8
+ ## [0.4.6] - 2025-12-05
9
9
 
10
10
  ### Added
11
11
 
@@ -17,25 +17,18 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
17
17
 
18
18
  - Duplicate changelog entries with incorrect release dates. (1e03b68)
19
19
 
20
- ## [0.4.4] - 2025-10-17
21
-
22
20
  ### Changed
23
21
 
24
- - Derive TRAILER_REGEX from VALID_SECTIONS to eliminate duplication (32b963e)
25
- - Updated example Rakefile to include version trailer configuration (4f2a254)
26
- - Replace Qlty with native SimpleCov coverage reporting in CI (764d6ba)
22
+ - Branch naming convention to use distinct prefixes for finalize vs reissue (d1add14)
23
+
24
+ ## [0.4.5] - 2025-11-21
27
25
 
28
26
  ### Added
29
27
 
30
- - Version trailer parsing methods to GitFragmentHandler (0434f69)
31
- - Version bump rake task with idempotency protection (9ff858a)
32
- - Build task enhancement to process version trailers before finalize (b5a05b7)
33
- - Release flow integration documentation and verification tests (e038230)
34
- - Version bumping documentation to README.md (4f2a254)
35
- - Version trailer examples and usage guide (4f2a254)
36
- - PR comments showing code coverage percentage and threshold status (bfa4619)
37
- - ChatNotifier to update slack about CI runs (55dfeb8)
28
+ - NOTIFY_APP_NAME ENV var for CI runs in 5700751d (e2c75ff)
29
+ - Support for alphanumery patch version tag matching in 5c17ce36 (e2c75ff)
30
+ - Info in the README about adding trailers in development of Reissue (68117e0)
38
31
 
39
32
  ### Fixed
40
33
 
41
- - Namespace loading problem when building a new release with Gem::Version. (c5fffd0)
34
+ - Duplicate changelog entries with incorrect release dates. (1e03b68)
@@ -119,16 +119,29 @@ module Reissue
119
119
  commits.each do |commit|
120
120
  sha = commit[:sha]
121
121
  message = commit[:message]
122
+ lines = message.lines
122
123
 
123
- # Split commit message into lines and look for trailers
124
- message.lines.each do |line|
125
- line = line.strip
126
- next if line.empty?
124
+ i = 0
125
+ while i < lines.length
126
+ line = lines[i].rstrip
127
+ i += 1
128
+ next if line.strip.empty?
127
129
 
128
130
  if (match = line.match(TRAILER_REGEX))
129
131
  section_name = normalize_section_name(match[1])
130
132
  trailer_value = match[2].strip
131
133
 
134
+ # Collect continuation lines (non-empty lines that don't start a new changelog trailer)
135
+ while i < lines.length
136
+ next_line = lines[i].rstrip
137
+ # Stop at empty line or another changelog trailer
138
+ break if next_line.strip.empty?
139
+ break if next_line.match(TRAILER_REGEX)
140
+
141
+ trailer_value += " #{next_line.strip}"
142
+ i += 1
143
+ end
144
+
132
145
  result[section_name] ||= []
133
146
  # Append the short SHA in parentheses
134
147
  result[section_name] << "#{trailer_value} (#{sha})"
data/lib/reissue/rake.rb CHANGED
@@ -197,7 +197,8 @@ module Reissue
197
197
  finalize_message = "Finalize the changelog for version #{version} on #{date}"
198
198
  if commit_finalize
199
199
  if finalize_with_branch?
200
- tasker["#{name}:branch"].invoke("reissue/#{version}")
200
+ # Use "finalize/" prefix for the version being released
201
+ tasker["#{name}:branch"].invoke("finalize/#{version}")
201
202
  end
202
203
  system("git add -u")
203
204
  system("git commit -m '#{finalize_message}'")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Reissue
4
- VERSION = "0.4.5"
4
+ VERSION = "0.4.6"
5
5
  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.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Gay