Remove our (now broken) dzil GatherDir subclass
[gitmo/Moose.git] / inc / CheckDelta.pm
index 1025e78..ebaeb95 100644 (file)
@@ -3,11 +3,13 @@ use Moose;
 
 use Path::Class;
 
-with 'Dist::Zilla::Role::BeforeRelease';
+with 'Dist::Zilla::Role::AfterBuild';
 
-sub before_release {
+sub after_build {
     my $self = shift;
 
+    return unless $ENV{DZIL_RELEASING};
+
     my ($delta) = grep { $_->name eq 'lib/Moose/Manual/Delta.pod' }
                        @{ $self->zilla->files };