line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Resque::Encoder; |
2
|
|
|
|
|
|
|
# ABSTRACT: Moose role for encoding Resque structures |
3
|
|
|
|
|
|
|
$Resque::Encoder::VERSION = '0.42'; |
4
|
9
|
|
|
9
|
|
10513
|
use Moose::Role; |
|
9
|
|
|
|
|
44683
|
|
|
9
|
|
|
|
|
33
|
|
5
|
9
|
|
|
9
|
|
56226
|
use JSON; |
|
9
|
|
|
|
|
97395
|
|
|
9
|
|
|
|
|
50
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
has encoder => ( is => 'ro', default => sub { JSON->new->utf8 } ); |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
1; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
__END__ |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=pod |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=encoding UTF-8 |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 NAME |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
Resque::Encoder - Moose role for encoding Resque structures |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 VERSION |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
version 0.42 |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head2 encoder |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
JSON encoder by default. |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 AUTHOR |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
Diego Kuperman <diego@freekeylabs.com> |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
This software is copyright (c) 2021 by Diego Kuperman. |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
40
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=cut |