From: Jesse Luehrs Date: Mon, 6 Jun 2011 21:43:08 +0000 (-0500) Subject: move these plugins earlier X-Git-Tag: 2.0101~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=32e9a3ed708bd49a1a6ec8df89bd00343243641a;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;