line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# ABSTRACT: something that builds archives |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
use Moose::Role; |
4
|
2
|
|
|
2
|
|
10783
|
with 'Dist::Zilla::Role::Plugin'; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
35
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
use Dist::Zilla::Pragmas; |
7
|
2
|
|
|
2
|
|
10699
|
|
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
15
|
|
8
|
|
|
|
|
|
|
requires 'build_archive'; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
#pod =head1 DESCRIPTION |
11
|
|
|
|
|
|
|
#pod |
12
|
|
|
|
|
|
|
#pod Plugins implementing this role have their C<build_archive> method called |
13
|
|
|
|
|
|
|
#pod when it is time to build the archive. |
14
|
|
|
|
|
|
|
#pod |
15
|
|
|
|
|
|
|
#pod =method build_archive |
16
|
|
|
|
|
|
|
#pod |
17
|
|
|
|
|
|
|
#pod This method takes three arguments, and returns a L<Path::Tiny> instance |
18
|
|
|
|
|
|
|
#pod containing the path to the archive. |
19
|
|
|
|
|
|
|
#pod |
20
|
|
|
|
|
|
|
#pod =over 4 |
21
|
|
|
|
|
|
|
#pod |
22
|
|
|
|
|
|
|
#pod =item archive_basename |
23
|
|
|
|
|
|
|
#pod |
24
|
|
|
|
|
|
|
#pod This is the name of the archive (including C<-TRIAL> if appropriate) without |
25
|
|
|
|
|
|
|
#pod the format extension (that is the C<.tar.gz> part). The plugin implementing |
26
|
|
|
|
|
|
|
#pod this role should add the appropriate full path including extension as the |
27
|
|
|
|
|
|
|
#pod returned L<Path::Tiny> instance. Not including the extension allows the |
28
|
|
|
|
|
|
|
#pod plugin to choose its own format. |
29
|
|
|
|
|
|
|
#pod |
30
|
|
|
|
|
|
|
#pod =item built_in |
31
|
|
|
|
|
|
|
#pod |
32
|
|
|
|
|
|
|
#pod This is a L<Path::Tiny> where the distribution has been built. |
33
|
|
|
|
|
|
|
#pod |
34
|
|
|
|
|
|
|
#pod =item dist_basename |
35
|
|
|
|
|
|
|
#pod |
36
|
|
|
|
|
|
|
#pod This method will return the dist's basename (e.g. C<Dist-Name-1.01> as a |
37
|
|
|
|
|
|
|
#pod L<Path::Tiny>. The basename is used as the top-level directory in the |
38
|
|
|
|
|
|
|
#pod tarball. It does not include C<-TRIAL>, even if building a trial dist. |
39
|
|
|
|
|
|
|
#pod |
40
|
|
|
|
|
|
|
#pod =back |
41
|
|
|
|
|
|
|
#pod |
42
|
|
|
|
|
|
|
#pod =cut |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
no Moose::Role; |
45
|
2
|
|
|
2
|
|
17
|
1; |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
19
|
|
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=pod |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=encoding UTF-8 |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 NAME |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Dist::Zilla::Role::ArchiveBuilder - something that builds archives |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 VERSION |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
version 6.028 |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 DESCRIPTION |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
Plugins implementing this role have their C<build_archive> method called |
63
|
|
|
|
|
|
|
when it is time to build the archive. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 PERL VERSION |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
This module should work on any version of perl still receiving updates from |
68
|
|
|
|
|
|
|
the Perl 5 Porters. This means it should work on any version of perl released |
69
|
|
|
|
|
|
|
in the last two to three years. (That is, if the most recently released |
70
|
|
|
|
|
|
|
version is v5.40, then this module should work on both v5.40 and v5.38.) |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
Although it may work on older versions of perl, no guarantee is made that the |
73
|
|
|
|
|
|
|
minimum required version will not be increased. The version may be increased |
74
|
|
|
|
|
|
|
for any reason, and there is no promise that patches will be accepted to lower |
75
|
|
|
|
|
|
|
the minimum required perl. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head1 METHODS |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head2 build_archive |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
This method takes three arguments, and returns a L<Path::Tiny> instance |
82
|
|
|
|
|
|
|
containing the path to the archive. |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=over 4 |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=item archive_basename |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
This is the name of the archive (including C<-TRIAL> if appropriate) without |
89
|
|
|
|
|
|
|
the format extension (that is the C<.tar.gz> part). The plugin implementing |
90
|
|
|
|
|
|
|
this role should add the appropriate full path including extension as the |
91
|
|
|
|
|
|
|
returned L<Path::Tiny> instance. Not including the extension allows the |
92
|
|
|
|
|
|
|
plugin to choose its own format. |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=item built_in |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
This is a L<Path::Tiny> where the distribution has been built. |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=item dist_basename |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
This method will return the dist's basename (e.g. C<Dist-Name-1.01> as a |
101
|
|
|
|
|
|
|
L<Path::Tiny>. The basename is used as the top-level directory in the |
102
|
|
|
|
|
|
|
tarball. It does not include C<-TRIAL>, even if building a trial dist. |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=back |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=head1 AUTHOR |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
Ricardo SIGNES 😏 <cpan@semiotic.systems> |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
This software is copyright (c) 2022 by Ricardo SIGNES. |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
115
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
=cut |