Skip to content

Commit

Permalink
be more specific in log message about version match
Browse files Browse the repository at this point in the history
This helps debugging if the result was not quite as desired or expected.
  • Loading branch information
karenetheridge committed Dec 13, 2017
1 parent db101dd commit b5973de
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ Revision history for Dist-Zilla-Plugin-BumpVersionAfterRelease

{{$NEXT}}

[CHANGED]

- [BumpVersionAfterRelease] log message now identifies which version it is
trying to replace, when all_matching = 1

0.016 2017-11-26 16:54:54-05:00 America/New_York

[ADDED]
Expand Down
3 changes: 2 additions & 1 deletion lib/Dist/Zilla/Plugin/BumpVersionAfterRelease.pm
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ sub munge_file {
$self->log_debug( [ 'bumped $VERSION in %s', $file->_original_name ] );
}
else {
$self->log( [ q[Skipping: no "our $VERSION = '...'" found in "%s"], $file->name ] );
my $version = $self->all_matching ? $self->zilla->version : '...';
$self->log( [ q[Skipping: no "our $VERSION = '%s'" found in "%s"], $version, $file->name ] );
}
return;
}
Expand Down

0 comments on commit b5973de

Please sign in to comment.