| 1 | 4 | ▶ | use 5.008; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | package Dist::Zilla::Plugin::Test::Synopsis; | ||
| 6 | # ABSTRACT: Author tests for synopses | ||
| 7 | 4 | our $VERSION = '2.000007'; # VERSION | |
| 8 | 4 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 4 | extends 'Dist::Zilla::Plugin::InlineFiles'; | |
| 10 | 4 | with 'Dist::Zilla::Role::PrereqSource'; | |
| 11 | |||
| 12 | |||
| 13 | |||
| 14 | # Register the test prereqs as "develop requires" | ||
| 15 | # so they will be listed in "dzil listdeps --author" | ||
| 16 | 2 | ▶ | sub register_prereqs { |
|
Subroutine
register_prereqs: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 17 | 2 | my ($self) = @_; | |
| 18 | |||
| 19 | 2 | $self->zilla->register_prereqs( | |
| 20 | { | ||
| 21 | type => 'requires', | ||
| 22 | phase => 'develop', | ||
| 23 | }, | ||
| 24 | 'Test::Synopsis' => '0', | ||
| 25 | ); | ||
| 26 | } | ||
| 27 | |||
| 28 | |||
| 29 | 4 | __PACKAGE__->meta->make_immutable; | |
| 30 | 4 | ▶ | no Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 31 | 4 | 1; | |
| 32 | |||
| 33 | =pod | ||
| 34 | |||
| 35 | =encoding UTF-8 | ||
| 36 | |||
| 37 | =head1 NAME | ||
| 38 | |||
| 39 | Dist::Zilla::Plugin::Test::Synopsis - Author tests for synopses | ||
| 40 | |||
| 41 | =head1 VERSION | ||
| 42 | |||
| 43 | version 2.000007 | ||
| 44 | |||
| 45 | =for test_synopsis BEGIN { die "SKIP: synopsis isn't perl code" } | ||
| 46 | |||
| 47 | =head1 SYNOPSIS | ||
| 48 | |||
| 49 | In C<dist.ini>: | ||
| 50 | |||
| 51 | [Test::Synopsis] | ||
| 52 | |||
| 53 | =head1 DESCRIPTION | ||
| 54 | |||
| 55 | This is an extension of L<Dist::Zilla::Plugin::InlineFiles>, providing the | ||
| 56 | following file: | ||
| 57 | |||
| 58 | xt/author/synopsis.t - a standard Test::Synopsis test | ||
| 59 | |||
| 60 | =head1 AVAILABILITY | ||
| 61 | |||
| 62 | The project homepage is L<http://metacpan.org/release/Dist-Zilla-Plugin-Test-Synopsis/>. | ||
| 63 | |||
| 64 | The latest version of this module is available from the Comprehensive Perl | ||
| 65 | Archive Network (CPAN). Visit L<http://www.perl.com/CPAN/> to find a CPAN | ||
| 66 | site near you, or see L<https://metacpan.org/module/Dist::Zilla::Plugin::Test::Synopsis/>. | ||
| 67 | |||
| 68 | =head1 SOURCE | ||
| 69 | |||
| 70 | The development version is on github at L<http://github.com/doherty/Dist-Zilla-Plugin-Test-Synopsis> | ||
| 71 | and may be cloned from L<git://github.com/doherty/Dist-Zilla-Plugin-Test-Synopsis.git> | ||
| 72 | |||
| 73 | =head1 BUGS AND LIMITATIONS | ||
| 74 | |||
| 75 | You can make new bug reports, and view existing ones, through the | ||
| 76 | web interface at L<https://github.com/doherty/Dist-Zilla-Plugin-Test-Synopsis/issues>. | ||
| 77 | |||
| 78 | =head1 AUTHORS | ||
| 79 | |||
| 80 | =over 4 | ||
| 81 | |||
| 82 | =item * | ||
| 83 | |||
| 84 | Marcel Grünauer <marcel@cpan.org> | ||
| 85 | |||
| 86 | =item * | ||
| 87 | |||
| 88 | Mike Doherty <doherty@cpan.org> | ||
| 89 | |||
| 90 | =item * | ||
| 91 | |||
| 92 | Olivier Mengué <dolmen@cpan.org> | ||
| 93 | |||
| 94 | =back | ||
| 95 | |||
| 96 | =head1 COPYRIGHT AND LICENSE | ||
| 97 | |||
| 98 | This software is copyright (c) 2010 by Mike Doherty. | ||
| 99 | |||
| 100 | This is free software; you can redistribute it and/or modify it under | ||
| 101 | the same terms as the Perl 5 programming language system itself. | ||
| 102 | |||
| 103 | =cut | ||
| 104 | |||
| 105 | __DATA__ | ||