From: Jesse Luehrs Date: Mon, 6 Jun 2011 21:43:08 +0000 (-0500) Subject: move these plugins earlier X-Git-Tag: 2.0008~15 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=218a0db0058f14d91d750c9efc53ba5e096dabd4;p=gitmo%2FMoose.git move these plugins earlier --- diff --git a/inc/CheckDelta.pm b/inc/CheckDelta.pm index 1025e78..1f0d962 100644 --- a/inc/CheckDelta.pm +++ b/inc/CheckDelta.pm @@ -3,11 +3,13 @@ use Moose; use Path::Class; -with 'Dist::Zilla::Role::BeforeRelease'; +with 'Dist::Zilla::Role::BeforeBuild'; -sub before_release { +sub before_build { my $self = shift; + return unless $ENV{DZIL_RELEASING}; + my ($delta) = grep { $_->name eq 'lib/Moose/Manual/Delta.pod' } @{ $self->zilla->files }; diff --git a/inc/GitUpToDate.pm b/inc/GitUpToDate.pm index 35020e7..2f6c9ea 100644 --- a/inc/GitUpToDate.pm +++ b/inc/GitUpToDate.pm @@ -1,7 +1,7 @@ package inc::GitUpToDate; use Moose; -with 'Dist::Zilla::Role::BeforeRelease'; +with 'Dist::Zilla::Role::BeforeBuild'; sub git { if (wantarray) { @@ -14,9 +14,11 @@ sub git { } } -sub before_release { +sub before_build { my $self = shift; + return unless $ENV{DZIL_RELEASING}; + my $branch = git "symbolic-ref HEAD"; die "Could not get the current branch" unless $branch;