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