line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Antispam::Toolkit::Types; |
2
|
|
|
|
|
|
|
BEGIN { |
3
|
1
|
|
|
1
|
|
17
|
$Antispam::Toolkit::Types::VERSION = '0.08'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
26
|
|
7
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
21
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
5
|
use base 'MooseX::Types::Combine'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
825
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
__PACKAGE__->provide_types_from( |
12
|
|
|
|
|
|
|
qw( |
13
|
|
|
|
|
|
|
Antispam::Toolkit::Types::Internal |
14
|
|
|
|
|
|
|
MooseX::Types::Common::Numeric |
15
|
|
|
|
|
|
|
MooseX::Types::Common::String |
16
|
|
|
|
|
|
|
MooseX::Types::Moose |
17
|
|
|
|
|
|
|
MooseX::Types::Path::Class |
18
|
|
|
|
|
|
|
) |
19
|
|
|
|
|
|
|
); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
1; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
# ABSTRACT: Types for use by Antispam modules |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=pod |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 NAME |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
Antispam::Toolkit::Types - Types for use by Antispam modules |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 VERSION |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
version 0.08 |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 DESCRIPTION |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
This module exports a number of types created via L<MooseX::Types>. In |
40
|
|
|
|
|
|
|
addition to internal types, it also exports types from |
41
|
|
|
|
|
|
|
L<MooseX::Types::Common::Numeric>, L<MooseX::Types::Common::String>, |
42
|
|
|
|
|
|
|
L<MooseX::Types::Moose>, and L<MooseX::Types::Path::Class>. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 TYPES |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
This module exports the following internally defined types: |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head2 DataFile |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
This is a subtype of the C<File> type provided by |
51
|
|
|
|
|
|
|
L<MooseX::Types::Path::Class>. The file must exist and not be empty. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head2 Details |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
This is an array reference of non-empty strings. It defines a coercion from a |
56
|
|
|
|
|
|
|
string to an array reference. It is used by the L<Antispam::Toolkit::Result> |
57
|
|
|
|
|
|
|
class. |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head2 NonNegativeNum |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
A non-negative number. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 BUGS |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
See L<Antispam::Toolkit> for bug reporting details. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 AUTHOR |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Dave Rolsky <autarch@urth.org> |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
This software is Copyright (c) 2011 by Dave Rolsky. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
This is free software, licensed under: |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
The Artistic License 2.0 (GPL Compatible) |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=cut |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
__END__ |
83
|
|
|
|
|
|
|
|