| 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 | 2 | our $AUTHORITY = 'cpan:RSRCHBOY'; | |
| 11 | # git description: 091ea5c | ||
| 12 | 2 | $Dist::Zilla::Plugin::ConsistentVersionTest::VERSION = '0.03'; | |
| 13 | |||
| 14 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | |||
| 17 | 2 | ▶ | use Test::ConsistentVersion; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | |||
| 19 | 2 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | |||
| 21 | 2 | extends 'Dist::Zilla::Plugin::InlineFiles'; | |
| 22 | 2 | with 'Dist::Zilla::Role::PrereqSource'; | |
| 23 | |||
| 24 | |||
| 25 | 1 | ▶ | sub register_prereqs { |
|
Subroutine
register_prereqs: called CC=1 SCAR=0.0
Pod
documented
| |||
| 26 | 1 | my $self = shift @_; | |
| 27 | |||
| 28 | 1 | $self->zilla->register_prereqs( | |
| 29 | { phase => 'develop' }, | ||
| 30 | 'Test::ConsistentVersion' => 0, | ||
| 31 | ); | ||
| 32 | |||
| 33 | 1 | return; | |
| 34 | } | ||
| 35 | |||
| 36 | 2 | ▶ | no Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 37 | |||
| 38 | 2 | __PACKAGE__->meta->make_immutable; | |
| 39 | |||
| 40 | 2 | 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__ | ||