| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Dist::Zilla::Plugin::Meta::Maintainers; |
|
2
|
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
2077639
|
use strict; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
26
|
|
|
4
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
19
|
|
|
5
|
1
|
|
|
1
|
|
4
|
use namespace::autoclean; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
5
|
|
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.01'; |
|
8
|
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
60
|
use Moose; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
5
|
|
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
has maintainer => ( |
|
12
|
|
|
|
|
|
|
is => 'ro', |
|
13
|
|
|
|
|
|
|
isa => 'ArrayRef[Str]', |
|
14
|
|
|
|
|
|
|
default => sub { [] }, |
|
15
|
|
|
|
|
|
|
); |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
with 'Dist::Zilla::Role::MetaProvider'; |
|
18
|
|
|
|
|
|
|
|
|
19
|
1
|
|
|
1
|
0
|
138
|
sub mvp_multivalue_args {'maintainer'} |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub metadata { |
|
22
|
1
|
|
|
1
|
0
|
111382
|
my $self = shift; |
|
23
|
1
|
50
|
|
|
|
1
|
if ( @{ $self->maintainer } ) { |
|
|
1
|
|
|
|
|
39
|
|
|
24
|
1
|
|
|
|
|
30
|
return { x_maintainers => $self->maintainer }; |
|
25
|
|
|
|
|
|
|
} |
|
26
|
|
|
|
|
|
|
else { |
|
27
|
0
|
|
|
|
|
|
return {}; |
|
28
|
|
|
|
|
|
|
} |
|
29
|
|
|
|
|
|
|
} |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
# ABSTRACT: Generate an x_maintainers section in distribution metadata |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__END__ |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=pod |
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=encoding UTF-8 |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 NAME |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Dist::Zilla::Plugin::Meta::Maintainers - Generate an x_maintainers section in distribution metadata |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 VERSION |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
version 0.01 |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
[Meta::Maintainers] |
|
54
|
|
|
|
|
|
|
maintainer = Dave Rolsky <autarch@urth.org> |
|
55
|
|
|
|
|
|
|
maintainer = Jane Schmane <jschmane@example.com> |
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
58
|
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
This plugin adds an C<x_maintainers> key in the distribution's metadata. This |
|
60
|
|
|
|
|
|
|
will end up in the F<META.json> and F<META.yml> files, and may also be useful |
|
61
|
|
|
|
|
|
|
for things like L<Pod::Weaver> plugins. |
|
62
|
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 SUPPORT |
|
64
|
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Bugs may be submitted at L<http://rt.cpan.org/Public/Dist/Display.html?Name=Dist-Zilla-Plugin-Meta-Maintainers> or via email to L<bug-dist-zilla-plugin-meta-maintainers@rt.cpan.org|mailto:bug-dist-zilla-plugin-meta-maintainers@rt.cpan.org>. |
|
66
|
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
I am also usually active on IRC as 'autarch' on C<irc://irc.perl.org>. |
|
68
|
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 SOURCE |
|
70
|
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
The source code repository for Dist-Zilla-Plugin-Meta-Maintainers can be found at L<https://github.com/houseabsolute/Dist-Zilla-Plugin-Meta-Maintainers>. |
|
72
|
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head1 DONATIONS |
|
74
|
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
If you'd like to thank me for the work I've done on this module, please |
|
76
|
|
|
|
|
|
|
consider making a "donation" to me via PayPal. I spend a lot of free time |
|
77
|
|
|
|
|
|
|
creating free software, and would appreciate any support you'd care to offer. |
|
78
|
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
Please note that B<I am not suggesting that you must do this> in order for me |
|
80
|
|
|
|
|
|
|
to continue working on this particular software. I will continue to do so, |
|
81
|
|
|
|
|
|
|
inasmuch as I have in the past, for as long as it interests me. |
|
82
|
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
Similarly, a donation made in this way will probably not make me work on this |
|
84
|
|
|
|
|
|
|
software much more, unless I get so many donations that I can consider working |
|
85
|
|
|
|
|
|
|
on free software full time (let's all have a chuckle at that together). |
|
86
|
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
To donate, log into PayPal and send money to autarch@urth.org, or use the |
|
88
|
|
|
|
|
|
|
button at L<http://www.urth.org/~autarch/fs-donation.html>. |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head1 AUTHOR |
|
91
|
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
Dave Rolsky <autarch@urth.org> |
|
93
|
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
95
|
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
This software is Copyright (c) 2017 by Dave Rolsky. |
|
97
|
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
This is free software, licensed under: |
|
99
|
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
The Artistic License 2.0 (GPL Compatible) |
|
101
|
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
The full text of the license can be found in the |
|
103
|
|
|
|
|
|
|
F<LICENSE> file included with this distribution. |
|
104
|
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=cut |