diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-06-06 17:50:16 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-06-06 17:50:16 +0000 |
commit | 5ac2026f7eed78958d69d051e7a8e993dcf51205 (patch) | |
tree | 298c3d2f08bdfe5689998b11892d72a897985be1 /inc/CheckDelta.pm | |
download | Moose-tarball-5ac2026f7eed78958d69d051e7a8e993dcf51205.tar.gz |
Moose-2.1405HEADMoose-2.1405master
Diffstat (limited to 'inc/CheckDelta.pm')
-rw-r--r-- | inc/CheckDelta.pm | 18 |
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; |