Skip to content

Commit

Permalink
Correctly pass the version_redo_proc
Browse files Browse the repository at this point in the history
  • Loading branch information
saturnflyer committed Jun 10, 2024
1 parent e11747f commit 3ef068a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [0.1.7] - Unreleased

### Fixed

- Pass the version_redo_proc to the Reissue.call in the reissue task.

## [0.1.6] - 2024-06-10

### Added
Expand Down
3 changes: 2 additions & 1 deletion lib/reissue/rake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,14 @@ def initialize(name = :reissue)
@commit = true
@commit_finalize = true
@version_limit = 2
@version_redo_proc = nil
end

def define
desc description
task name, [:segment] do |task, args|
segment = args[:segment] || "patch"
new_version = Reissue.call(segment:, version_file:, version_limit:)
new_version = Reissue.call(segment:, version_file:, version_limit:, version_redo_proc:)
if defined?(Bundler)
Bundler.with_unbundled_env do
system("bundle install")
Expand Down

0 comments on commit 3ef068a

Please sign in to comment.