line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Bintray::API; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
####################### |
4
|
|
|
|
|
|
|
# LOAD MODULES |
5
|
|
|
|
|
|
|
####################### |
6
|
1
|
|
|
1
|
|
964
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
55
|
|
7
|
1
|
|
|
1
|
|
6
|
use warnings FATAL => 'all'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
56
|
|
8
|
1
|
|
|
1
|
|
17
|
use Carp qw(croak carp); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
103
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
####################### |
11
|
|
|
|
|
|
|
# VERSION |
12
|
|
|
|
|
|
|
####################### |
13
|
|
|
|
|
|
|
our $VERSION = '0.02'; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
####################### |
16
|
|
|
|
|
|
|
# LOAD CPAN MODULES |
17
|
|
|
|
|
|
|
####################### |
18
|
1
|
|
|
1
|
|
924
|
use Object::Tiny qw(session); |
|
1
|
|
|
|
|
424
|
|
|
1
|
|
|
|
|
5
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
####################### |
21
|
|
|
|
|
|
|
# LOAD DIST MODULES |
22
|
|
|
|
|
|
|
####################### |
23
|
1
|
|
|
1
|
|
752
|
use Bintray::API::Search; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
10
|
|
24
|
1
|
|
|
1
|
|
26
|
use Bintray::API::Session; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
25
|
1
|
|
|
1
|
|
610
|
use Bintray::API::Subject; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
8
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
####################### |
28
|
|
|
|
|
|
|
# PUBLIC METHODS |
29
|
|
|
|
|
|
|
####################### |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
## ==================== |
32
|
|
|
|
|
|
|
## CONSTRUCTOR |
33
|
|
|
|
|
|
|
## ==================== |
34
|
|
|
|
|
|
|
sub new { |
35
|
0
|
|
|
0
|
0
|
|
my ( $class, @args ) = @_; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
# Set Session |
38
|
0
|
|
|
|
|
|
my %opts; |
39
|
0
|
|
|
|
|
|
$opts{session} = Bintray::API::Session->new(@args); |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
# Return Object (tiny) |
42
|
0
|
|
|
|
|
|
return $class->SUPER::new(%opts); |
43
|
|
|
|
|
|
|
} ## end sub new |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
## ==================== |
46
|
|
|
|
|
|
|
## Bintray OBJECTS |
47
|
|
|
|
|
|
|
## ==================== |
48
|
|
|
|
|
|
|
sub search { |
49
|
0
|
|
|
0
|
0
|
|
return Bintray::API::Search->new( |
50
|
|
|
|
|
|
|
session => shift->session, |
51
|
|
|
|
|
|
|
@_, |
52
|
|
|
|
|
|
|
); |
53
|
|
|
|
|
|
|
} ## end sub search |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
sub subject { |
57
|
0
|
|
|
0
|
0
|
|
return Bintray::API::Subject->new( |
58
|
|
|
|
|
|
|
session => shift->session, |
59
|
|
|
|
|
|
|
@_, |
60
|
|
|
|
|
|
|
); |
61
|
|
|
|
|
|
|
} ## end sub subject |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
####################### |
64
|
|
|
|
|
|
|
1; |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
__END__ |