line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package DataFlow::Proc::YAML; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
40909
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
41
|
|
4
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
43
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: A YAML converting processor |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '1.112100'; # VERSION |
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
132211
|
use Moose; |
|
1
|
|
|
|
|
589278
|
|
|
1
|
|
|
|
|
8
|
|
11
|
|
|
|
|
|
|
extends 'DataFlow::Proc::Converter'; |
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
1
|
|
9464
|
use namespace::autoclean; |
|
1
|
|
|
|
|
1610
|
|
|
1
|
|
|
|
|
6
|
|
14
|
1
|
|
|
1
|
|
970
|
use YAML::Any; |
|
1
|
|
|
|
|
986
|
|
|
1
|
|
|
|
|
6
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub _policy { |
17
|
0
|
0
|
|
0
|
|
|
return shift->direction eq 'CONVERT_TO' ? 'ArrayRef' : 'Scalar'; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub _build_subs { |
21
|
0
|
|
|
0
|
|
|
my $self = shift; |
22
|
|
|
|
|
|
|
return { |
23
|
|
|
|
|
|
|
'CONVERT_TO' => sub { |
24
|
0
|
|
|
0
|
|
|
return Dump($_); |
25
|
|
|
|
|
|
|
}, |
26
|
|
|
|
|
|
|
'CONVERT_FROM' => sub { |
27
|
0
|
|
|
0
|
|
|
return Load($_); |
28
|
|
|
|
|
|
|
}, |
29
|
0
|
|
|
|
|
|
}; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
__END__ |
37
|
|
|
|
|
|
|
=pod |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=encoding utf-8 |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 NAME |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
DataFlow::Proc::YAML - A YAML converting processor |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 VERSION |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
version 1.112100 |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=for :stopwords cpan testmatrix url annocpan anno bugtracker rt cpants kwalitee diff irc mailto metadata placeholders |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 SUPPORT |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head2 Perldoc |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
You can find documentation for this module with the perldoc command. |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
perldoc DataFlow::Proc::YAML |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head2 Websites |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
The following websites have more information about this module, and may be of help to you. As always, |
62
|
|
|
|
|
|
|
in addition to those websites please use your favorite search engine to discover more resources. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=over 4 |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=item * |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
Search CPAN |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
The default CPAN search engine, useful to view POD in HTML format. |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
L<http://search.cpan.org/dist/DataFlow-Proc-YAML> |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=item * |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
AnnoCPAN |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
The AnnoCPAN is a website that allows community annonations of Perl module documentation. |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
L<http://annocpan.org/dist/DataFlow-Proc-YAML> |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=item * |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
CPAN Ratings |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
The CPAN Ratings is a website that allows community ratings and reviews of Perl modules. |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
L<http://cpanratings.perl.org/d/DataFlow-Proc-YAML> |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=item * |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
CPAN Forum |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
The CPAN Forum is a web forum for discussing Perl modules. |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
L<http://cpanforum.com/dist/DataFlow-Proc-YAML> |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=item * |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
CPANTS |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
The CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution. |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
L<http://cpants.perl.org/dist/overview/DataFlow-Proc-YAML> |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=item * |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
CPAN Testers |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
The CPAN Testers is a network of smokers who run automated tests on uploaded CPAN distributions. |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
L<http://www.cpantesters.org/distro/D/DataFlow-Proc-YAML> |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=item * |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
CPAN Testers Matrix |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
The CPAN Testers Matrix is a website that provides a visual way to determine what Perls/platforms PASSed for a distribution. |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
L<http://matrix.cpantesters.org/?dist=DataFlow-Proc-YAML> |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=back |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
=head2 Email |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
You can email the author of this module at C<RUSSOZ at cpan.org> asking for help with any problems you have. |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=head2 Internet Relay Chat |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
You can get live help by using IRC ( Internet Relay Chat ). If you don't know what IRC is, |
131
|
|
|
|
|
|
|
please read this excellent guide: L<http://en.wikipedia.org/wiki/Internet_Relay_Chat>. Please |
132
|
|
|
|
|
|
|
be courteous and patient when talking to us, as we might be busy or sleeping! You can join |
133
|
|
|
|
|
|
|
those networks/channels and get help: |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
=over 4 |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
=item * |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
irc.perl.org |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
You can connect to the server at 'irc.perl.org' and join this channel: #sao-paulo.pm then talk to this person for help: russoz. |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
=back |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
=head2 Bugs / Feature Requests |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
Please report any bugs or feature requests by email to C<bug-dataflow-proc-yaml at rt.cpan.org>, or through |
148
|
|
|
|
|
|
|
the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=DataFlow-Proc-YAML>. You will be automatically notified of any |
149
|
|
|
|
|
|
|
progress on the request by the system. |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
=head2 Source Code |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
The code is open to the world, and available for you to hack on. Please feel free to browse it and play |
154
|
|
|
|
|
|
|
with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull |
155
|
|
|
|
|
|
|
from your repository :) |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
L<https://github.com/russoz/DataFlow-Proc-YAML> |
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
git clone https://github.com/russoz/DataFlow-Proc-YAML |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
=head1 AUTHOR |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
Alexei Znamensky <russoz@cpan.org> |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
This software is copyright (c) 2011 by Alexei Znamensky. |
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
170
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
=head1 BUGS AND LIMITATIONS |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
No bugs have been reported. |
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
Please report any bugs or feature requests through the web interface at |
177
|
|
|
|
|
|
|
L<http://rt.cpan.org>. |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
=head1 DISCLAIMER OF WARRANTY |
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY |
182
|
|
|
|
|
|
|
FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT |
183
|
|
|
|
|
|
|
WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER |
184
|
|
|
|
|
|
|
PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, |
185
|
|
|
|
|
|
|
EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE |
186
|
|
|
|
|
|
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
187
|
|
|
|
|
|
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE |
188
|
|
|
|
|
|
|
SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME |
189
|
|
|
|
|
|
|
THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION. |
190
|
|
|
|
|
|
|
|
191
|
|
|
|
|
|
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
192
|
|
|
|
|
|
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR |
193
|
|
|
|
|
|
|
REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE |
194
|
|
|
|
|
|
|
TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR |
195
|
|
|
|
|
|
|
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE |
196
|
|
|
|
|
|
|
SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING |
197
|
|
|
|
|
|
|
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A |
198
|
|
|
|
|
|
|
FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF |
199
|
|
|
|
|
|
|
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH |
200
|
|
|
|
|
|
|
DAMAGES. |
201
|
|
|
|
|
|
|
|
202
|
|
|
|
|
|
|
=cut |
203
|
|
|
|
|
|
|
|