line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Email::MIME::Kit::ManifestReader::JSON 3.000007; |
2
|
|
|
|
|
|
|
# ABSTRACT: read manifest.json files |
3
|
|
|
|
|
|
|
|
4
|
6
|
|
|
6
|
|
3254
|
use v5.20.0; |
|
6
|
|
|
|
|
23
|
|
5
|
6
|
|
|
6
|
|
40
|
use Moose; |
|
6
|
|
|
|
|
15
|
|
|
6
|
|
|
|
|
67
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
with 'Email::MIME::Kit::Role::ManifestReader', |
8
|
|
|
|
|
|
|
'Email::MIME::Kit::Role::ManifestDesugarer'; |
9
|
|
|
|
|
|
|
|
10
|
6
|
|
|
6
|
|
52410
|
use JSON 2; |
|
6
|
|
|
|
|
51436
|
|
|
6
|
|
|
|
|
44
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub read_manifest { |
13
|
|
|
|
|
|
|
my ($self) = @_; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
my $json_ref = $self->kit->kit_reader->get_kit_entry('manifest.json'); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
my $content = JSON->new->utf8->decode($$json_ref); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
6
|
|
|
6
|
|
1319
|
no Moose; |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
59
|
|
21
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__END__ |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=pod |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=encoding UTF-8 |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 NAME |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
Email::MIME::Kit::ManifestReader::JSON - read manifest.json files |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 VERSION |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
version 3.000007 |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 PERL VERSION |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
This library should run on perls released even a long time ago. It should work |
41
|
|
|
|
|
|
|
on any version of perl released in the last five years. |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
Although it may work on older versions of perl, no guarantee is made that the |
44
|
|
|
|
|
|
|
minimum required version will not be increased. The version may be increased |
45
|
|
|
|
|
|
|
for any reason, and there is no promise that patches will be accepted to lower |
46
|
|
|
|
|
|
|
the minimum required perl. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 AUTHOR |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Ricardo Signes <rjbs@cpan.org> |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
This software is copyright (c) 2023 by Ricardo Signes. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
57
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=cut |