File Coverage

blib/lib/Dist/Zilla/Plugin/ConsistentVersionTest.pm
Criterion Covered Total %
statement 18 18 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod 1 1 100.0
total 25 25 100.0


line stmt bran cond sub pod time code
1             #
2             # This file is part of Dist-Zilla-Plugin-ConsistentVersionTest
3             #
4             # This software is copyright (c) 2010 by Dave Rolsky.
5             #
6             # This is free software; you can redistribute it and/or modify it under
7             # the same terms as the Perl 5 programming language system itself.
8             #
9             package Dist::Zilla::Plugin::ConsistentVersionTest;
10             our $AUTHORITY = 'cpan:RSRCHBOY';
11             # git description: 091ea5c
12             $Dist::Zilla::Plugin::ConsistentVersionTest::VERSION = '0.03';
13              
14 1     1   2009070 use strict;
  1         1  
  1         27  
15 1     1   3 use warnings;
  1         1  
  1         21  
16              
17 1     1   401 use Test::ConsistentVersion;
  1         3685  
  1         28  
18              
19 1     1   5 use Moose;
  1         1  
  1         6  
20              
21             extends 'Dist::Zilla::Plugin::InlineFiles';
22             with 'Dist::Zilla::Role::PrereqSource';
23              
24              
25             sub register_prereqs {
26 1     1 1 42421 my $self = shift @_;
27              
28 1         25 $self->zilla->register_prereqs(
29             { phase => 'develop' },
30             'Test::ConsistentVersion' => 0,
31             );
32              
33 1         400 return;
34             }
35              
36 1     1   4156 no Moose;
  1         2  
  1         4  
37              
38             __PACKAGE__->meta->make_immutable;
39              
40             1;
41              
42             # ABSTRACT: Adds a release test to ensure that all modules have the same $VERSION
43              
44             =pod
45              
46             =encoding UTF-8
47              
48             =for :stopwords Dave Rolsky Chris Weyl
49              
50             =head1 NAME
51              
52             Dist::Zilla::Plugin::ConsistentVersionTest - Adds a release test to ensure that all modules have the same $VERSION
53              
54             =head1 VERSION
55              
56             This document describes version 0.03 of Dist::Zilla::Plugin::ConsistentVersionTest - released April 01, 2017 as part of Dist-Zilla-Plugin-ConsistentVersionTest.
57              
58             =head1 SYNOPSIS
59              
60             In your F<dist.ini>:
61              
62             [ConsistentVersionTest]
63              
64             =head1 DESCRIPTION
65              
66             This is an extension of L<Dist::Zilla::Plugin::InlineFiles>, providing the
67             following files
68              
69             xt/release/consistent-version.t
70              
71             =head1 METHODS
72              
73             =head2 register_prereqs
74              
75             Registers a 'develop' phase requirement for L<Test::ConsistentVersion> with the
76             L<Dist::Zilla> object.
77              
78             =head1 DONATIONS
79              
80             If you'd like to thank me (the author, Dave Rolsky) for the work I've done on
81             this module, please consider making a "donation" to me via PayPal. I spend a
82             lot of free time creating free software, and would appreciate any support
83             you'd care to offer.
84              
85             Please note that B<I am not suggesting that you must do this> in order for me
86             to continue working on this particular software. I will continue to do so,
87             inasmuch as I have in the past, for as long as it interests me.
88              
89             Similarly, a donation made in this way will probably not make me work on this
90             software much more, unless I get so many donations that I can consider working
91             on free software full time, which seems unlikely at best.
92              
93             To donate, log into PayPal and send money to autarch@urth.org or use the
94             button on this page: L<http://www.urth.org/~autarch/fs-donation.html>
95              
96             =head1 BUGS
97              
98             Please report any bugs or feature requests on the bugtracker website
99             L<https://github.com/RsrchBoy/Dist-Zilla-Plugin-ConsistentVersionTest/issues>
100              
101             When submitting a bug or request, please include a test-file or a
102             patch to an existing test-file that illustrates the bug or desired
103             feature.
104              
105             =head1 AUTHOR
106              
107             Dave Rolsky <autarch@urth.org>
108              
109             =head1 CONTRIBUTOR
110              
111             =for stopwords Chris Weyl
112              
113             Chris Weyl <rsrchboy@cpan.org>
114              
115             =head1 COPYRIGHT AND LICENSE
116              
117             This software is copyright (c) 2010 by Dave Rolsky.
118              
119             This is free software; you can redistribute it and/or modify it under
120             the same terms as the Perl 5 programming language system itself.
121              
122             =cut
123              
124             __DATA__
125             ___[ xt/release/consistent-version.t ]___
126             use strict;
127             use warnings;
128              
129             use Test::More;
130              
131             eval "use Test::ConsistentVersion";
132             plan skip_all => "Test::ConsistentVersion required for this test"
133             if $@;
134              
135             Test::ConsistentVersion::check_consistent_versions();