reissue 0.4.11 → 0.4.12

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: 2716a8e3df4f6b34bcdaa93f2aeac3ad9ebbe46489c55181a2414bcbd2bc6e58
4
- data.tar.gz: 8c0090f0e3aef87175c72e4847193f3eb847e0d7307fe21ae89382561cf1ee66
3
+ metadata.gz: cf56ad0901ffde10b776b0529140063ae09bc092f6325130308e2df0be4b7168
4
+ data.tar.gz: 50ae2fee9430aa29e1624aab368e98f96953abc7b49cfd6662b619c155d38c24
5
5
  SHA512:
6
- metadata.gz: 26336e98efff7be479a552d34fabb965109b23fc9e4acc92977ad090dc13813eca62759b7619e87871126164c5001903ba3c7ec85edb8e9fd794b498a7d8301c
7
- data.tar.gz: 43e043210fd8315c6f0cd6ff8c9c7e7e85025b452e00f9c9de316baa9f31a8f39151182dbc34d875061d79f6a4d7911382f4554f6ec99a9ea37f2f31aa7fa8b1
6
+ metadata.gz: 397b4f6d6f09afad74c5fc429fcf05da8c12d3fce2f21345911fc2d7d4ef2b6ca8a0ecd64d7d0bc7b753e09171e86e7cb156fe1e73ee5282c78298f6993fd57e
7
+ data.tar.gz: 59b5f79e5a50d4481f1a507c2aed416714237b6cf03ec0db823e85b7d82af0c39e7372a60d51747df2d6e61f57bfff9696e1065a1adef7fc21f683ae5dce23e9
data/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ 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.12] - 2026-02-09
9
+
10
+ ### Changed
11
+
12
+ - reissue:bump now reads Version trailers regardless of whether the version file matches the last tag (98905d6)
13
+
8
14
  ## [0.4.11] - 2026-02-06
9
15
 
10
16
  ### Added
@@ -23,5 +29,3 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
23
29
  - Checksums not staged during finalize task (307939e)
24
30
  - Stage updated_paths fails when files do not exist (16b801e)
25
31
  - Release workflow fails with working-directory command not found (9068f04)
26
-
27
- ## [0.4.10] - 2026-01-27
data/lib/reissue/rake.rb CHANGED
@@ -366,26 +366,32 @@ module Reissue
366
366
  # Get version from last git tag
367
367
  tag_version = handler.last_tag_version
368
368
 
369
- # Only bump if current version matches tag version (hasn't been bumped yet)
370
- if tag_version && current_version == tag_version
371
- bump = handler.read_version_bump
369
+ bump = handler.read_version_bump
372
370
 
371
+ if tag_version && current_version == tag_version
373
372
  if bump
374
373
  updater = Reissue::VersionUpdater.new(version_file, version_redo_proc: version_redo_proc)
375
374
  updater.call(bump)
376
375
  puts "Version bumped (#{bump}) to #{updater.instance_variable_get(:@new_version)}"
377
376
  end
378
377
  elsif tag_version && current_version != tag_version
379
- puts "Version already bumped (#{tag_version} → #{current_version}), skipping"
380
- else
381
- # No tag exists, check for version trailers anyway
382
- bump = handler.read_version_bump
383
-
384
378
  if bump
385
379
  updater = Reissue::VersionUpdater.new(version_file, version_redo_proc: version_redo_proc)
386
- updater.call(bump)
387
- puts "Version bumped (#{bump}) to #{updater.instance_variable_get(:@new_version)}"
380
+ desired_version = updater.redo(tag_version, bump)
381
+
382
+ if desired_version > current_version
383
+ updater.call(bump)
384
+ puts "Version bumped (#{bump}) to #{updater.instance_variable_get(:@new_version)}"
385
+ else
386
+ puts "Version already bumped (#{tag_version} → #{current_version}), skipping"
387
+ end
388
+ else
389
+ puts "Version already bumped (#{tag_version} → #{current_version}), skipping"
388
390
  end
391
+ elsif bump
392
+ updater = Reissue::VersionUpdater.new(version_file, version_redo_proc: version_redo_proc)
393
+ updater.call(bump)
394
+ puts "Version bumped (#{bump}) to #{updater.instance_variable_get(:@new_version)}"
389
395
  end
390
396
  end
391
397
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Reissue
4
- VERSION = "0.4.11"
4
+ VERSION = "0.4.12"
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.11
4
+ version: 0.4.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Gay