Acme-Version-Hex
view release on metacpan or search on metacpan
},
{
"class" : "Dist::Zilla::Plugin::Git::Check",
"config" : {
"Dist::Zilla::Plugin::Git::Check" : {
"untracked_files" : "die"
},
"Dist::Zilla::Role::Git::DirtyFiles" : {
"allow_dirty" : [],
"allow_dirty_match" : [],
"changelog" : "Changes"
},
"Dist::Zilla::Role::Git::Repo" : {
"repo_root" : "."
}
},
"name" : "@Author::ETHER/initial check",
"version" : "2.033"
},
{
"class" : "Dist::Zilla::Plugin::Git::CheckFor::MergeConflicts",
},
{
"class" : "Dist::Zilla::Plugin::Git::Check",
"config" : {
"Dist::Zilla::Plugin::Git::Check" : {
"untracked_files" : "die"
},
"Dist::Zilla::Role::Git::DirtyFiles" : {
"allow_dirty" : [],
"allow_dirty_match" : [],
"changelog" : "Changes"
},
"Dist::Zilla::Role::Git::Repo" : {
"repo_root" : "."
}
},
"name" : "@Author::ETHER/after tests",
"version" : "2.033"
},
{
"class" : "Dist::Zilla::Plugin::CheckIssues",
"time_zone" : "local"
},
"Dist::Zilla::Role::Git::DirtyFiles" : {
"allow_dirty" : [
"README.pod",
"LICENSE",
"CONTRIBUTING",
"Changes"
],
"allow_dirty_match" : [],
"changelog" : "Changes"
},
"Dist::Zilla::Role::Git::Repo" : {
"repo_root" : "."
}
},
"name" : "@Author::ETHER/release snapshot",
"version" : "2.033"
},
{
"class" : "Dist::Zilla::Plugin::Git::Tag",
"commit_msg" : "increment $VERSION after release",
"time_zone" : "local"
},
"Dist::Zilla::Role::Git::DirtyFiles" : {
"allow_dirty" : [
"Changes"
],
"allow_dirty_match" : [
"(?^:^lib/.*\\.pm$)"
],
"changelog" : "Changes"
},
"Dist::Zilla::Role::Git::Repo" : {
"repo_root" : "."
}
},
"name" : "@Author::ETHER/post-release commit",
"version" : "2.033"
},
{
"class" : "Dist::Zilla::Plugin::Git::Push",
name: '@Author::ETHER/CheckStrictVersion'
version: '0.001'
-
class: Dist::Zilla::Plugin::Git::Check
config:
Dist::Zilla::Plugin::Git::Check:
untracked_files: die
Dist::Zilla::Role::Git::DirtyFiles:
allow_dirty: []
allow_dirty_match: []
changelog: Changes
Dist::Zilla::Role::Git::Repo:
repo_root: .
name: '@Author::ETHER/initial check'
version: '2.033'
-
class: Dist::Zilla::Plugin::Git::CheckFor::MergeConflicts
config:
Dist::Zilla::Role::Git::Repo:
repo_root: .
name: '@Author::ETHER/Git::CheckFor::MergeConflicts'
name: '@Author::ETHER/TestRelease'
version: '5.035'
-
class: Dist::Zilla::Plugin::Git::Check
config:
Dist::Zilla::Plugin::Git::Check:
untracked_files: die
Dist::Zilla::Role::Git::DirtyFiles:
allow_dirty: []
allow_dirty_match: []
changelog: Changes
Dist::Zilla::Role::Git::Repo:
repo_root: .
name: '@Author::ETHER/after tests'
version: '2.033'
-
class: Dist::Zilla::Plugin::CheckIssues
name: '@Author::ETHER/CheckIssues'
version: '0.008'
-
class: Dist::Zilla::Plugin::UploadToCPAN
- .
commit_msg: '%N-%v%t%n%n%c'
time_zone: local
Dist::Zilla::Role::Git::DirtyFiles:
allow_dirty:
- README.pod
- LICENSE
- CONTRIBUTING
- Changes
allow_dirty_match: []
changelog: Changes
Dist::Zilla::Role::Git::Repo:
repo_root: .
name: '@Author::ETHER/release snapshot'
version: '2.033'
-
class: Dist::Zilla::Plugin::Git::Tag
config:
Dist::Zilla::Plugin::Git::Tag:
branch: ~
signed: 0
config:
Dist::Zilla::Plugin::Git::Commit:
add_files_in: []
commit_msg: 'increment $VERSION after release'
time_zone: local
Dist::Zilla::Role::Git::DirtyFiles:
allow_dirty:
- Changes
allow_dirty_match:
- (?^:^lib/.*\.pm$)
changelog: Changes
Dist::Zilla::Role::Git::Repo:
repo_root: .
name: '@Author::ETHER/post-release commit'
version: '2.033'
-
class: Dist::Zilla::Plugin::Git::Push
config:
Dist::Zilla::Plugin::Git::Push:
push_to:
- origin
inc/MyVersionProvider.pm view on Meta::CPAN
use Moose;
with 'Dist::Zilla::Role::VersionProvider';
sub provide_version
{
my $self = shift;
my $assign_regex = qr/our\s+\$VERSION\s*=\s*(0x(?:\d*\.)?\d+p[+-]\d+)\s*;/;
my $eval_regex = qr/\$VERSION\s*=\s*eval\s*\$VERSION;/;
my ($version, $eval) = $self->zilla->main_module->content=~ m{^$assign_regex\s*($eval_regex)?[^\n]*$}ms;
$self->log([ 'got version %s', $version ]);
$version = eval $version if $eval;
$self->log([ 'evaluated version to %s', $version ]) if $eval;
return $version;
}
{
package Dist::Zilla::Dist::Builder;
# override name used for the full distribution name to keep the version in hex
no warnings 'redefine';
sub dist_basename {
xt/release/changes_has_content.t view on Meta::CPAN
}
done_testing;
# _get_changes copied and adapted from Dist::Zilla::Plugin::Git::Commit
# by Jerome Quelin
sub _get_changes
{
my $newver = shift;
# parse changelog to find commit message
open(my $fh, '<', $changes_file) or die "cannot open $changes_file: $!";
my $changelog = join('', <$fh>);
close $fh;
my @content =
grep { /^$newver(?:$trial_token)?(?:\s+|$)/ ... /^\S/ } # from newver to un-indented
split /\n/, $changelog;
shift @content; # drop the version line
# drop unindented last line and trailing blank lines
pop @content while ( @content && $content[-1] =~ /^(?:\S|\s*$)/ );
# return number of non-blank lines
return scalar @content;
}
( run in 0.541 second using v1.01-cache-2.11-cpan-49f99fa48dc )