reissue 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98d162c9fe97d9ebd55f3ead6651db035f574ba3fedbd5108dc8b73207f14d2f
4
- data.tar.gz: 4cd9b74c2be2f24bf00cea642f454666f0cad712cbcd53107678a3302cae3f71
3
+ metadata.gz: c277981b6bc7dc46a2ae0d84bddd6b8f04a7328d2bd0949d380bb948cb3acbff
4
+ data.tar.gz: d9078fed64c4fc984e150a6c03bcdcd912663e3f8c9d550b571b8ba77b55a644
5
5
  SHA512:
6
- metadata.gz: c73d252f2528d09a79b298853bce7d27c82e786f50e85f3ed77bd13945d7ceeb072d47417f26ea09108bcf1ce55e3f64f9eb09620d7dc098eea44d83053eaa0c
7
- data.tar.gz: 4df58b81ac4bfaea5c713be2305553b3e754bff512990f2db35cdb08cc3481f284e9a6c77b738378860b424c59fa6fd9209df4436e1e460c8521a425f70d02e9
6
+ metadata.gz: 3d1677cb2633cc8b3b19c5842fb7edbc7ef46e6f8299b5a8886385822ad07f2657f2f3ff44c77a0bb68027c3227a4ce8ec298bd00b8d585f765368f2a64f4673
7
+ data.tar.gz: 27d09c82326c667a357cd77c8f1536dbb163e72445ff6b1d02f97738a1bcc0ba28080e74f2ab2e21d6cf42fbf3c43c0e6b54607b9c4052e7791603f47c14e046
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.1.7] - 2024-06-10
9
+
10
+ ### Fixed
11
+
12
+ - Pass the version_redo_proc to the Reissue.call in the reissue task.
13
+
8
14
  ## [0.1.6] - 2024-06-10
9
15
 
10
16
  ### Added
@@ -14,9 +20,3 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
14
20
  ### Fixed
15
21
 
16
22
  - Incorrect testing of Reissue.reformat
17
-
18
- ## [0.1.5] - 2024-06-09
19
-
20
- ### Fixed
21
-
22
- - Fixed incorrect handling of missing empty last line
data/README.md CHANGED
@@ -93,7 +93,7 @@ Reissue::Task.create :your_name_and_namespace do |task|
93
93
  task.version_limit = 5
94
94
 
95
95
  # Optional: A Proc to format the version number. Receives a Gem::Version object, and segment.
96
- task.format_version = ->(version, segment) do
96
+ task.version_redo_proc = ->(version, segment) do
97
97
  # your special versioning logic
98
98
  end
99
99
 
data/lib/reissue/rake.rb CHANGED
@@ -49,13 +49,14 @@ module Reissue
49
49
  @commit = true
50
50
  @commit_finalize = true
51
51
  @version_limit = 2
52
+ @version_redo_proc = nil
52
53
  end
53
54
 
54
55
  def define
55
56
  desc description
56
57
  task name, [:segment] do |task, args|
57
58
  segment = args[:segment] || "patch"
58
- new_version = Reissue.call(segment:, version_file:, version_limit:)
59
+ new_version = Reissue.call(segment:, version_file:, version_limit:, version_redo_proc:)
59
60
  if defined?(Bundler)
60
61
  Bundler.with_unbundled_env do
61
62
  system("bundle install")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Reissue
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.7"
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.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Gay