line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Dist::Zilla::PluginBundle::IDOPEREL; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# ABSTRACT: IDOPEREL's plugin bundle for Dist::Zilla. |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
54951
|
use Moose; |
|
1
|
|
|
|
|
306618
|
|
|
1
|
|
|
|
|
5
|
|
6
|
1
|
|
|
1
|
|
5172
|
use namespace::autoclean; |
|
1
|
|
|
|
|
5509
|
|
|
1
|
|
|
|
|
4
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
with 'Dist::Zilla::Role::PluginBundle::Easy', |
9
|
|
|
|
|
|
|
'Dist::Zilla::Role::PluginBundle::PluginRemover', |
10
|
|
|
|
|
|
|
'Dist::Zilla::Role::PluginBundle::Config::Slicer'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
our $VERSION = "1.001000"; |
13
|
|
|
|
|
|
|
$VERSION = eval $VERSION; |
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
1
|
|
559
|
use Dist::Zilla::PluginBundle::Filter; |
|
1
|
|
|
|
|
36656
|
|
|
1
|
|
|
|
|
52
|
|
16
|
1
|
|
|
1
|
|
682
|
use Dist::Zilla::PluginBundle::Basic; |
|
1
|
|
|
|
|
76500
|
|
|
1
|
|
|
|
|
38
|
|
17
|
1
|
|
|
1
|
|
677
|
use Dist::Zilla::PluginBundle::Git; |
|
1
|
|
|
|
|
516806
|
|
|
1
|
|
|
|
|
38
|
|
18
|
1
|
|
|
1
|
|
663
|
use Dist::Zilla::Plugin::VersionFromModule; |
|
1
|
|
|
|
|
62975
|
|
|
1
|
|
|
|
|
31
|
|
19
|
1
|
|
|
1
|
|
559
|
use Dist::Zilla::Plugin::MetaJSON; |
|
1
|
|
|
|
|
40034
|
|
|
1
|
|
|
|
|
37
|
|
20
|
1
|
|
|
1
|
|
657
|
use Dist::Zilla::Plugin::MinimumPerl; |
|
1
|
|
|
|
|
361359
|
|
|
1
|
|
|
|
|
38
|
|
21
|
1
|
|
|
1
|
|
686
|
use Dist::Zilla::Plugin::AutoPrereqs; |
|
1
|
|
|
|
|
100163
|
|
|
1
|
|
|
|
|
38
|
|
22
|
1
|
|
|
1
|
|
665
|
use Dist::Zilla::Plugin::Prereqs; |
|
1
|
|
|
|
|
28095
|
|
|
1
|
|
|
|
|
38
|
|
23
|
1
|
|
|
1
|
|
752
|
use Dist::Zilla::Plugin::NextRelease; |
|
1
|
|
|
|
|
72150
|
|
|
1
|
|
|
|
|
37
|
|
24
|
1
|
|
|
1
|
|
736
|
use Dist::Zilla::Plugin::GitHub::Meta; |
|
1
|
|
|
|
|
106169
|
|
|
1
|
|
|
|
|
39
|
|
25
|
1
|
|
|
1
|
|
632
|
use Dist::Zilla::Plugin::TestRelease; |
|
1
|
|
|
|
|
20655
|
|
|
1
|
|
|
|
|
38
|
|
26
|
1
|
|
|
1
|
|
650
|
use Dist::Zilla::Plugin::ReadmeAnyFromPod; |
|
1
|
|
|
|
|
75344
|
|
|
1
|
|
|
|
|
38
|
|
27
|
1
|
|
|
1
|
|
645
|
use Dist::Zilla::Plugin::CopyFilesFromBuild; |
|
1
|
|
|
|
|
37892
|
|
|
1
|
|
|
|
|
36
|
|
28
|
1
|
|
|
1
|
|
628
|
use Dist::Zilla::Plugin::InstallGuide; |
|
1
|
|
|
|
|
32635
|
|
|
1
|
|
|
|
|
44
|
|
29
|
1
|
|
|
1
|
|
629
|
use Dist::Zilla::Plugin::CheckChangesHasContent; |
|
1
|
|
|
|
|
509956
|
|
|
1
|
|
|
|
|
34
|
|
30
|
1
|
|
|
1
|
|
659
|
use Dist::Zilla::Plugin::Test::DistManifest; |
|
1
|
|
|
|
|
86430
|
|
|
1
|
|
|
|
|
36
|
|
31
|
1
|
|
|
1
|
|
636
|
use Dist::Zilla::Plugin::Signature; |
|
1
|
|
|
|
|
27728
|
|
|
1
|
|
|
|
|
34
|
|
32
|
1
|
|
|
1
|
|
613
|
use Dist::Zilla::Plugin::Encoding; |
|
1
|
|
|
|
|
34090
|
|
|
1
|
|
|
|
|
201
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 NAME |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Dist::Zilla::PluginBundle::IDOPEREL - IDOPEREL's plugin bundle for Dist::Zilla. |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 SYNOPSIS |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
In your dist.ini file: |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
[@IDOPEREL] |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 DESCRIPTION |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
This module is a bundle of plugins for L<Dist::Zilla> that is regularly |
47
|
|
|
|
|
|
|
used by me (Ido Perlmuter). If you find it suits your needs, feel free |
48
|
|
|
|
|
|
|
to install and use it. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
This bundle provides the following plugins and bundles: |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
[@Filter] |
53
|
|
|
|
|
|
|
-bundle = @Basic |
54
|
|
|
|
|
|
|
-remove = Readme |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
[@Git] |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
[VersionFromModule] |
59
|
|
|
|
|
|
|
[AutoPrereqs] |
60
|
|
|
|
|
|
|
[CheckChangesHasContent] |
61
|
|
|
|
|
|
|
[Test::DistManifest] |
62
|
|
|
|
|
|
|
[GitHub::Meta] |
63
|
|
|
|
|
|
|
[InstallGuide] |
64
|
|
|
|
|
|
|
[MetaJSON] |
65
|
|
|
|
|
|
|
[MinimumPerl] |
66
|
|
|
|
|
|
|
[NextRelease] |
67
|
|
|
|
|
|
|
[ReadmeFromPod] |
68
|
|
|
|
|
|
|
[TestRelease] |
69
|
|
|
|
|
|
|
[Signature] |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
[ReadmeAnyFromPod] |
72
|
|
|
|
|
|
|
type = markdown |
73
|
|
|
|
|
|
|
filename = README.md |
74
|
|
|
|
|
|
|
location = build |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
[CopyFilesFromBuild] |
77
|
|
|
|
|
|
|
copy = README.md |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
[Encoding] |
80
|
|
|
|
|
|
|
encoding = bytes |
81
|
|
|
|
|
|
|
match = \.(jpg|png|gif|gz|zip)$ |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=head1 INTERNAL METHODS |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head2 configure |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=cut |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
sub configure { |
90
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
91
|
|
|
|
|
|
|
|
92
|
0
|
|
|
|
|
|
$self->add_bundle(Filter => { |
93
|
|
|
|
|
|
|
-bundle => '@Basic', |
94
|
|
|
|
|
|
|
-remove => [qw/Readme/], |
95
|
|
|
|
|
|
|
}); |
96
|
|
|
|
|
|
|
|
97
|
0
|
|
|
|
|
|
$self->add_bundle('Git'); |
98
|
|
|
|
|
|
|
|
99
|
0
|
|
|
|
|
|
my @plugins = ('VersionFromModule'); |
100
|
0
|
0
|
|
|
|
|
if ($self->payload->{auto_prereqs_skip}) { |
101
|
0
|
|
|
|
|
|
push(@plugins, ['AutoPrereqs' => { skip => $self->payload->{auto_prereqs_skip} }]); |
102
|
|
|
|
|
|
|
} else { |
103
|
0
|
|
|
|
|
|
push(@plugins, 'AutoPrereqs'); |
104
|
|
|
|
|
|
|
} |
105
|
|
|
|
|
|
|
|
106
|
0
|
|
|
|
|
|
push(@plugins, |
107
|
|
|
|
|
|
|
'CheckChangesHasContent', |
108
|
|
|
|
|
|
|
'Test::DistManifest', |
109
|
|
|
|
|
|
|
'GitHub::Meta', |
110
|
|
|
|
|
|
|
'InstallGuide', |
111
|
|
|
|
|
|
|
'MetaJSON', |
112
|
|
|
|
|
|
|
'MinimumPerl', |
113
|
|
|
|
|
|
|
'NextRelease', |
114
|
|
|
|
|
|
|
'TestRelease', |
115
|
|
|
|
|
|
|
'Signature', |
116
|
|
|
|
|
|
|
[ 'ReadmeAnyFromPod' => { type => 'markdown', location => 'build', filename => 'README.md' } ], |
117
|
|
|
|
|
|
|
[ 'CopyFilesFromBuild' => { copy => 'README.md' } ], |
118
|
|
|
|
|
|
|
[ 'Encoding' => { encoding => 'bytes', match => '\.(jpg|png|gif|gz|zip)$' } ] |
119
|
|
|
|
|
|
|
); |
120
|
|
|
|
|
|
|
|
121
|
0
|
|
|
|
|
|
$self->add_plugins(@plugins); |
122
|
|
|
|
|
|
|
} |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
=head1 AUTHOR |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
Ido Perlmuter, C<< <ido at ido50.net> >> |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
=head1 BUGS |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
Please report any bugs or feature requests to C<bug-dist-zilla-pluginbundle-idoperel at rt.cpan.org>, or through |
133
|
|
|
|
|
|
|
the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Dist-Zilla-PluginBundle-IDOPEREL>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
=head1 SUPPORT |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
You can find documentation for this module with the perldoc command. |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
perldoc Dist::Zilla::PluginBundle::IDOPEREL |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
You can also look for information at: |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
=over 4 |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
=item * RT: CPAN's request tracker |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Dist-Zilla-PluginBundle-IDOPEREL> |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
=item * AnnoCPAN: Annotated CPAN documentation |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
L<http://annocpan.org/dist/Dist-Zilla-PluginBundle-IDOPEREL> |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
=item * CPAN Ratings |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
L<http://cpanratings.perl.org/d/Dist-Zilla-PluginBundle-IDOPEREL> |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
=item * Search CPAN |
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
L<http://search.cpan.org/dist/Dist-Zilla-PluginBundle-IDOPEREL/> |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
=back |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
Copyright 2010-2016 Ido Perlmuter. |
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it |
168
|
|
|
|
|
|
|
under the terms of either: the GNU General Public License as published |
169
|
|
|
|
|
|
|
by the Free Software Foundation; or the Artistic License. |
170
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
See http://dev.perl.org/licenses/ for more information. |
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
=cut |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
1; |