| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
# ABSTRACT: fake plugin to test release |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
use Moose; |
|
4
|
7
|
|
|
7
|
|
5448
|
with 'Dist::Zilla::Role::Releaser'; |
|
|
7
|
|
|
|
|
21
|
|
|
|
7
|
|
|
|
|
61
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
use Dist::Zilla::Pragmas; |
|
7
|
7
|
|
|
7
|
|
46967
|
|
|
|
7
|
|
|
|
|
16
|
|
|
|
7
|
|
|
|
|
60
|
|
|
8
|
|
|
|
|
|
|
use namespace::autoclean; |
|
9
|
7
|
|
|
7
|
|
54
|
|
|
|
7
|
|
|
|
|
18
|
|
|
|
7
|
|
|
|
|
74
|
|
|
10
|
|
|
|
|
|
|
has user => ( |
|
11
|
|
|
|
|
|
|
is => 'ro', |
|
12
|
|
|
|
|
|
|
isa => 'Str', |
|
13
|
|
|
|
|
|
|
required => 1, |
|
14
|
|
|
|
|
|
|
default => 'AUTHORID', |
|
15
|
|
|
|
|
|
|
); |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
|
18
|
1
|
|
|
1
|
0
|
32
|
my $self = shift; |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
for my $env ( |
|
21
|
13
|
|
|
13
|
0
|
498
|
'DIST_ZILLA_FAKERELEASE_FAIL', # old |
|
22
|
|
|
|
|
|
|
'DZIL_FAKERELEASE_FAIL', # new |
|
23
|
13
|
|
|
|
|
131
|
) { |
|
24
|
|
|
|
|
|
|
$self->log_fatal("$env set, aborting") if $ENV{$env}; |
|
25
|
|
|
|
|
|
|
} |
|
26
|
|
|
|
|
|
|
|
|
27
|
26
|
100
|
|
|
|
247
|
$self->log('Fake release happening (nothing was really done)'); |
|
28
|
|
|
|
|
|
|
} |
|
29
|
|
|
|
|
|
|
|
|
30
|
11
|
|
|
|
|
195
|
__PACKAGE__->meta->make_immutable; |
|
31
|
|
|
|
|
|
|
1; |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
#pod =head1 SYNOPSIS |
|
34
|
|
|
|
|
|
|
#pod |
|
35
|
|
|
|
|
|
|
#pod [FakeRelease] |
|
36
|
|
|
|
|
|
|
#pod user = CPANAUTHORID ; # optional. |
|
37
|
|
|
|
|
|
|
#pod |
|
38
|
|
|
|
|
|
|
#pod =head1 DESCRIPTION |
|
39
|
|
|
|
|
|
|
#pod |
|
40
|
|
|
|
|
|
|
#pod This plugin is a L<Releaser|Dist::Zilla::Role::Releaser> that does nothing. It |
|
41
|
|
|
|
|
|
|
#pod is directed to plugin authors, who may need a dumb release plugin to test their |
|
42
|
|
|
|
|
|
|
#pod shiny plugin implementing L<BeforeRelease|Dist::Zilla::Role::BeforeRelease> |
|
43
|
|
|
|
|
|
|
#pod and L<AfterRelease|Dist::Zilla::Role::AfterRelease>. |
|
44
|
|
|
|
|
|
|
#pod |
|
45
|
|
|
|
|
|
|
#pod When this plugin does the release, it will just log a message and finish. |
|
46
|
|
|
|
|
|
|
#pod |
|
47
|
|
|
|
|
|
|
#pod If you set the environment variable C<DZIL_FAKERELEASE_FAIL> to a true value, |
|
48
|
|
|
|
|
|
|
#pod the plugin will die instead of doing nothing. This can be useful for |
|
49
|
|
|
|
|
|
|
#pod authors wanting to test reliably that release failed. |
|
50
|
|
|
|
|
|
|
#pod |
|
51
|
|
|
|
|
|
|
#pod You can optionally provide the 'user' parameter, which defaults to 'AUTHORID', |
|
52
|
|
|
|
|
|
|
#pod which will allow things that depend on this metadata |
|
53
|
|
|
|
|
|
|
#pod ( Sometimes provided by L<UploadToCPAN|Dist::Zilla::Plugin::UploadToCPAN> ) to still work. |
|
54
|
|
|
|
|
|
|
#pod ( For example: L<Dist::Zilla::Plugin::Twitter> ) |
|
55
|
|
|
|
|
|
|
#pod |
|
56
|
|
|
|
|
|
|
#pod =head1 SEE ALSO |
|
57
|
|
|
|
|
|
|
#pod |
|
58
|
|
|
|
|
|
|
#pod Core Dist::Zilla plugins: |
|
59
|
|
|
|
|
|
|
#pod L<ConfirmRelease|Dist::Zilla::Plugin::ConfirmRelease>, |
|
60
|
|
|
|
|
|
|
#pod L<UploadToCPAN|Dist::Zilla::Plugin::UploadToCPAN>. |
|
61
|
|
|
|
|
|
|
#pod |
|
62
|
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=pod |
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=encoding UTF-8 |
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 NAME |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
Dist::Zilla::Plugin::FakeRelease - fake plugin to test release |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 VERSION |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
version 6.028 |
|
75
|
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
[FakeRelease] |
|
79
|
|
|
|
|
|
|
user = CPANAUTHORID ; # optional. |
|
80
|
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
82
|
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
This plugin is a L<Releaser|Dist::Zilla::Role::Releaser> that does nothing. It |
|
84
|
|
|
|
|
|
|
is directed to plugin authors, who may need a dumb release plugin to test their |
|
85
|
|
|
|
|
|
|
shiny plugin implementing L<BeforeRelease|Dist::Zilla::Role::BeforeRelease> |
|
86
|
|
|
|
|
|
|
and L<AfterRelease|Dist::Zilla::Role::AfterRelease>. |
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
When this plugin does the release, it will just log a message and finish. |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
If you set the environment variable C<DZIL_FAKERELEASE_FAIL> to a true value, |
|
91
|
|
|
|
|
|
|
the plugin will die instead of doing nothing. This can be useful for |
|
92
|
|
|
|
|
|
|
authors wanting to test reliably that release failed. |
|
93
|
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
You can optionally provide the 'user' parameter, which defaults to 'AUTHORID', |
|
95
|
|
|
|
|
|
|
which will allow things that depend on this metadata |
|
96
|
|
|
|
|
|
|
( Sometimes provided by L<UploadToCPAN|Dist::Zilla::Plugin::UploadToCPAN> ) to still work. |
|
97
|
|
|
|
|
|
|
( For example: L<Dist::Zilla::Plugin::Twitter> ) |
|
98
|
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=head1 PERL VERSION |
|
100
|
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
This module should work on any version of perl still receiving updates from |
|
102
|
|
|
|
|
|
|
the Perl 5 Porters. This means it should work on any version of perl released |
|
103
|
|
|
|
|
|
|
in the last two to three years. (That is, if the most recently released |
|
104
|
|
|
|
|
|
|
version is v5.40, then this module should work on both v5.40 and v5.38.) |
|
105
|
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
Although it may work on older versions of perl, no guarantee is made that the |
|
107
|
|
|
|
|
|
|
minimum required version will not be increased. The version may be increased |
|
108
|
|
|
|
|
|
|
for any reason, and there is no promise that patches will be accepted to lower |
|
109
|
|
|
|
|
|
|
the minimum required perl. |
|
110
|
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
112
|
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
Core Dist::Zilla plugins: |
|
114
|
|
|
|
|
|
|
L<ConfirmRelease|Dist::Zilla::Plugin::ConfirmRelease>, |
|
115
|
|
|
|
|
|
|
L<UploadToCPAN|Dist::Zilla::Plugin::UploadToCPAN>. |
|
116
|
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
=head1 AUTHOR |
|
118
|
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
Ricardo SIGNES 😏 <cpan@semiotic.systems> |
|
120
|
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
122
|
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
This software is copyright (c) 2022 by Ricardo SIGNES. |
|
124
|
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
|
126
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
|
127
|
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=cut |