File Coverage

blib/lib/Dist/Zilla/Plugin/EnsureNotStale.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1 1     1   1986621 use strict;
  1         3  
  1         36  
2 1     1   7 use warnings;
  1         3  
  1         64  
3             package Dist::Zilla::Plugin::EnsureNotStale;
4             # vim: set ts=8 sts=2 sw=2 tw=115 et :
5             # ABSTRACT: Abort at build/release time if modules are out of date
6              
7             our $VERSION = '0.057';
8              
9 1     1   6 use Moose;
  1         2  
  1         7  
10             extends 'Dist::Zilla::Plugin::PromptIfStale';
11 1     1   6922 use namespace::autoclean;
  1         3  
  1         11  
12              
13             has '+fatal' => (
14             init_arg => undef, # cannot be passed in as a config value
15             default => 1,
16             );
17              
18             __PACKAGE__->meta->make_immutable;
19              
20             __END__
21              
22             =pod
23              
24             =encoding UTF-8
25              
26             =head1 NAME
27              
28             Dist::Zilla::Plugin::EnsureNotStale - Abort at build/release time if modules are out of date
29              
30             =head1 VERSION
31              
32             version 0.057
33              
34             =head1 SYNOPSIS
35              
36             In your F<dist.ini>:
37              
38             [EnsureNotStale]
39              
40             =head1 DESCRIPTION
41              
42             This is a L<Dist::Zilla> plugin that behaves just like
43             L<[PromptIfStale]|Dist::Zilla::Plugin::PromptIfStale> would with its C<fatal>
44             option set to true. Therefore, if there are any stale modules found, the build
45             or release is aborted immediately.
46              
47             =head1 CONFIGURATION OPTIONS
48              
49             All options are as for L<[PromptIfStale]|Dist::Zilla::Plugin::PromptIfStale>,
50             except C<fatal> cannot be passed or set (it is always true).
51              
52             =head1 ACKNOWLEDGEMENTS
53              
54             Getty made me do this!
55              
56             =head1 SEE ALSO
57              
58             =over 4
59              
60             =item *
61              
62             the L<[PromptIfStale]|Dist::Zilla::Plugin::PromptIfStale> plugin in this distribution
63              
64             =item *
65              
66             the L<dzil stale|Dist::Zilla::App::Command::stale> command in this distribution
67              
68             =item *
69              
70             L<Dist::Zilla::Plugin::Prereqs::MatchInstalled>, L<Dist::Zilla::Plugin::Prereqs::MatchInstalled::All>
71              
72             =back
73              
74             =head1 SUPPORT
75              
76             Bugs may be submitted through L<the RT bug tracker|https://rt.cpan.org/Public/Dist/Display.html?Name=Dist-Zilla-Plugin-PromptIfStale>
77             (or L<bug-Dist-Zilla-Plugin-PromptIfStale@rt.cpan.org|mailto:bug-Dist-Zilla-Plugin-PromptIfStale@rt.cpan.org>).
78              
79             There is also a mailing list available for users of this distribution, at
80             L<http://dzil.org/#mailing-list>.
81              
82             There is also an irc channel available for users of this distribution, at
83             L<C<#distzilla> on C<irc.perl.org>|irc://irc.perl.org/#distzilla>.
84              
85             I am also usually active on irc, as 'ether' at C<irc.perl.org> and C<irc.freenode.org>.
86              
87             =head1 AUTHOR
88              
89             Karen Etheridge <ether@cpan.org>
90              
91             =head1 COPYRIGHT AND LICENCE
92              
93             This software is copyright (c) 2013 by Karen Etheridge.
94              
95             This is free software; you can redistribute it and/or modify it under
96             the same terms as the Perl 5 programming language system itself.
97              
98             =cut