line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catmandu::Fix::Datahub; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
1133
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
37
|
|
4
|
1
|
|
|
1
|
|
38
|
use 5.008_005; |
|
1
|
|
|
|
|
3
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.03'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
1; |
8
|
|
|
|
|
|
|
__END__ |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=encoding utf-8 |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 NAME |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=for html <a href="https://travis-ci.org/thedatahub/Catmandu-Fix-Datahub"><img src="https://travis-ci.org/thedatahub/Catmandu-Fix-Datahub.svg?branch=master"></a> |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
Catmandu::Fix::Datahub - Utility functions and generic fixes developed for the Datahub project |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 SYNOPSIS |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
L<Catmandu::Fix::Datahub::Util>: |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
use Catmandu::Fix::Datahub::Util; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
L<Catmandu::Fix::Bind::each>: |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
do each(path: demo, var: d) |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
copy_field(d.key, var.$append) |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
end |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 DESCRIPTION |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head2 L<Catmandu::Fix::Datahub::Util> |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Utility functions for use in Catmandu fixes. |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=over 4 |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=item C<declare_source($fixer, $var, $declared_var)> |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=item C<walk($fixer, $path, $key, $h)> |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=back |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head2 L<Catmandu::Fix::Bind::each> |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
A bind to iterate over a hash. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 AUTHOR |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Pieter De Praetere E<lt>pieter@packed.beE<gt> |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 COPYRIGHT |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Copyright 2017- PACKED vzw |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 LICENSE |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
61
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 SEE ALSO |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
L<Catmandu> |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=cut |