line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Email::MIME::Kit::Bulk::ManifestReader::JSON; |
2
|
|
|
|
|
|
|
BEGIN { |
3
|
10
|
|
|
10
|
|
288
|
$Email::MIME::Kit::Bulk::ManifestReader::JSON::AUTHORITY = 'cpan:YANICK'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
# ABSTRACT: Extension of E::M::K::ManifestReader::JSON for Email::MIME::Kit::Bulk |
6
|
|
|
|
|
|
|
$Email::MIME::Kit::Bulk::ManifestReader::JSON::VERSION = '0.0.2'; |
7
|
|
|
|
|
|
|
|
8
|
10
|
|
|
10
|
|
21
|
use Moose; |
|
10
|
|
|
|
|
11
|
|
|
10
|
|
|
|
|
71
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
extends 'Email::MIME::Kit::ManifestReader::JSON'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub read_manifest { |
13
|
5
|
|
|
5
|
0
|
361
|
my ($self) = @_; |
14
|
|
|
|
|
|
|
|
15
|
5
|
|
|
|
|
14
|
my $manifest = 'manifest.json'; |
16
|
5
|
50
|
|
|
|
135
|
if ($self->kit->has_language) { |
17
|
5
|
|
|
|
|
103
|
$manifest = 'manifest.' . $self->kit->language . '.json'; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
5
|
|
|
|
|
109
|
my $json_ref = $self->kit->kit_reader->get_kit_entry($manifest); |
21
|
|
|
|
|
|
|
|
22
|
5
|
|
|
|
|
1182
|
my $content = JSON->new->decode($$json_ref); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
26
|
10
|
|
|
10
|
|
46300
|
no Moose; |
|
10
|
|
|
|
|
20
|
|
|
10
|
|
|
|
|
31
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=pod |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=encoding UTF-8 |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 NAME |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Email::MIME::Kit::Bulk::ManifestReader::JSON - Extension of E::M::K::ManifestReader::JSON for Email::MIME::Kit::Bulk |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 VERSION |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
version 0.0.2 |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 DESCRIPTION |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Extends L<Email::MIME::Kit::ManifestReader::JSON>. The manifest of the |
47
|
|
|
|
|
|
|
kit will be 'C<manifest.I<language>.json>', where I<language> is provided |
48
|
|
|
|
|
|
|
via 'C<targets.json>'. If no language is given, the manifest file defaults |
49
|
|
|
|
|
|
|
to 'C<manifest.json>'. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 AUTHORS |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=over 4 |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=item * |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Jesse Luehrs <doy@cpan.org> |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=item * |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
Yanick Champoux <yanick.champoux@iinteractive.com> |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=back |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
This software is copyright (c) 2015 by Infinity Interactive <contact@iinteractive.com>. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
70
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=cut |