line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Dancer::Plugin::DataTransposeValidator; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
403204
|
use utf8; |
|
1
|
|
|
|
|
11
|
|
|
1
|
|
|
|
|
6
|
|
4
|
1
|
|
|
1
|
|
29
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
21
|
|
5
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
44
|
|
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
5
|
use Dancer ':syntax'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
8
|
1
|
|
|
1
|
|
1173
|
use Dancer::Plugin; |
|
1
|
|
|
|
|
1356
|
|
|
1
|
|
|
|
|
80
|
|
9
|
1
|
|
|
1
|
|
792
|
use aliased 'Dancer::Plugin::DataTransposeValidator::Validator'; |
|
1
|
|
|
|
|
772
|
|
|
1
|
|
|
|
|
5
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=encoding utf8 |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 NAME |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
Dancer::Plugin::DataTransposeValidator - Data::Transpose::Validator plugin for Dancer |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 VERSION |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
Version 0.008 |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=cut |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
our $VERSION = '0.008'; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
register validator => sub { |
26
|
9
|
|
|
9
|
|
147688
|
my ( $params, $rules_file, @additional_args ) = @_; |
27
|
|
|
|
|
|
|
|
28
|
9
|
100
|
|
|
|
52
|
Validator->new( |
29
|
|
|
|
|
|
|
additional_args => @additional_args ? [@additional_args] : [], |
30
|
|
|
|
|
|
|
appdir => setting('appdir'), |
31
|
|
|
|
|
|
|
params => $params, |
32
|
|
|
|
|
|
|
plugin_setting => plugin_setting, |
33
|
|
|
|
|
|
|
rules_file => $rules_file |
34
|
|
|
|
|
|
|
)->transpose; |
35
|
|
|
|
|
|
|
}; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
register_plugin; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
40
|
|
|
|
|
|
|
__END__ |