line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
7
|
|
|
7
|
|
1548
|
use 5.006; # our |
|
7
|
|
|
|
|
19
|
|
2
|
7
|
|
|
7
|
|
26
|
use strict; |
|
7
|
|
|
|
|
34
|
|
|
7
|
|
|
|
|
165
|
|
3
|
7
|
|
|
7
|
|
23
|
use warnings; |
|
7
|
|
|
|
|
8
|
|
|
7
|
|
|
|
|
386
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package CPAN::Meta::Prereqs::Diff::Change; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.001004'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# ABSTRACT: A dependency which changes its requirements |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY |
12
|
|
|
|
|
|
|
|
13
|
7
|
|
|
7
|
|
509
|
use Moo qw( with has ); |
|
7
|
|
|
|
|
9340
|
|
|
7
|
|
|
|
|
31
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
has 'old_requirement' => ( is => ro =>, required => 1 ); |
22
|
|
|
|
|
|
|
has 'new_requirement' => ( is => ro =>, required => 1 ); |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
with 'CPAN::Meta::Prereqs::Diff::Role::Change'; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
3
|
1
|
|
sub is_addition { } |
41
|
|
|
|
3
|
1
|
|
sub is_removal { } |
42
|
3
|
|
|
3
|
1
|
14
|
sub is_change { return 1 } |
43
|
|
|
|
2
|
1
|
|
sub is_upgrade { } |
44
|
|
|
|
2
|
1
|
|
sub is_downgrade { } |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
sub describe { |
55
|
1
|
|
|
1
|
1
|
2
|
my ($self) = @_; |
56
|
1
|
|
|
|
|
13
|
return sprintf q[%s.%s: ~%s %s -> %s], $self->phase, $self->type, $self->module, $self->old_requirement, $self->new_requirement; |
57
|
|
|
|
|
|
|
} |
58
|
|
|
|
|
|
|
|
59
|
7
|
|
|
7
|
|
3020
|
no Moo; |
|
7
|
|
|
|
|
12
|
|
|
7
|
|
|
|
|
33
|
|
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
1; |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
__END__ |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=pod |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=encoding UTF-8 |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 NAME |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
CPAN::Meta::Prereqs::Diff::Change - A dependency which changes its requirements |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head1 VERSION |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
version 0.001004 |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head1 METHODS |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head2 C<is_addition> |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head2 C<is_removal> |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=head2 C<is_change> |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
returns true |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=head2 C<is_upgrade> |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=head2 C<is_downgrade> |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=head2 C<describe> |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
$object->describe(); |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
# runtime.requires: ~ExtUtils::MakeMaker < 5.0 -> > 5.1 |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=head2 C<old_requirement> |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=head2 C<new_requirement> |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=head1 AUTHOR |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
Kent Fredric <kentnl@cpan.org> |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
This software is copyright (c) 2017 by Kent Fredric <kentfredric@gmail.com>. |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
112
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=cut |