summaryrefslogtreecommitdiff
path: root/inc/CheckDelta.pm
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2015-06-06 17:50:16 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2015-06-06 17:50:16 +0000
commit5ac2026f7eed78958d69d051e7a8e993dcf51205 (patch)
tree298c3d2f08bdfe5689998b11892d72a897985be1 /inc/CheckDelta.pm
downloadMoose-tarball-5ac2026f7eed78958d69d051e7a8e993dcf51205.tar.gz
Diffstat (limited to 'inc/CheckDelta.pm')
-rw-r--r--inc/CheckDelta.pm18
1 files changed, 18 insertions, 0 deletions
diff --git a/inc/CheckDelta.pm b/inc/CheckDelta.pm
new file mode 100644
index 0000000..d4ef142
--- /dev/null
+++ b/inc/CheckDelta.pm
@@ -0,0 +1,18 @@
+package inc::CheckDelta;
+use Moose;
+
+with 'Dist::Zilla::Role::AfterBuild';
+
+sub after_build {
+ my $self = shift;
+
+ return unless $ENV{DZIL_RELEASING};
+
+ my ($delta) = grep { $_->name eq 'lib/Moose/Manual/Delta.pod' }
+ @{ $self->zilla->files };
+
+ die "Moose::Manual::Delta still contains \$NEXT"
+ if $delta->content =~ /\$NEXT/;
+}
+
+1;