line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
13
|
|
|
13
|
|
3638067
|
use utf8; |
|
13
|
|
|
|
|
59
|
|
|
13
|
|
|
|
|
141
|
|
2
|
|
|
|
|
|
|
package BackPAN::Index::Release; |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
# Created by DBIx::Class::Schema::Loader |
5
|
|
|
|
|
|
|
# DO NOT MODIFY THE FIRST PART OF THIS FILE |
6
|
|
|
|
|
|
|
|
7
|
13
|
|
|
13
|
|
528
|
use strict; |
|
13
|
|
|
|
|
26
|
|
|
13
|
|
|
|
|
453
|
|
8
|
13
|
|
|
13
|
|
129
|
use warnings; |
|
13
|
|
|
|
|
228
|
|
|
13
|
|
|
|
|
480
|
|
9
|
|
|
|
|
|
|
|
10
|
13
|
|
|
13
|
|
72
|
use base 'DBIx::Class::Core'; |
|
13
|
|
|
|
|
38
|
|
|
13
|
|
|
|
|
5388
|
|
11
|
|
|
|
|
|
|
__PACKAGE__->table("releases"); |
12
|
|
|
|
|
|
|
__PACKAGE__->add_columns( |
13
|
|
|
|
|
|
|
"path", |
14
|
|
|
|
|
|
|
{ data_type => "text", is_foreign_key => 1, is_nullable => 0 }, |
15
|
|
|
|
|
|
|
"dist", |
16
|
|
|
|
|
|
|
{ data_type => "text", is_foreign_key => 1, is_nullable => 0 }, |
17
|
|
|
|
|
|
|
"date", |
18
|
|
|
|
|
|
|
{ data_type => "integer", is_nullable => 0 }, |
19
|
|
|
|
|
|
|
"size", |
20
|
|
|
|
|
|
|
{ data_type => "text", is_nullable => 0 }, |
21
|
|
|
|
|
|
|
"version", |
22
|
|
|
|
|
|
|
{ data_type => "text", is_nullable => 0 }, |
23
|
|
|
|
|
|
|
"maturity", |
24
|
|
|
|
|
|
|
{ data_type => "text", is_nullable => 0 }, |
25
|
|
|
|
|
|
|
"distvname", |
26
|
|
|
|
|
|
|
{ data_type => "text", is_nullable => 0 }, |
27
|
|
|
|
|
|
|
"cpanid", |
28
|
|
|
|
|
|
|
{ data_type => "text", is_nullable => 0 }, |
29
|
|
|
|
|
|
|
); |
30
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key("path"); |
31
|
|
|
|
|
|
|
__PACKAGE__->belongs_to( |
32
|
|
|
|
|
|
|
"dist", |
33
|
|
|
|
|
|
|
"BackPAN::Index::Dist", |
34
|
|
|
|
|
|
|
{ name => "dist" }, |
35
|
|
|
|
|
|
|
{ is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" }, |
36
|
|
|
|
|
|
|
); |
37
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
38
|
|
|
|
|
|
|
"dists_first_releases", |
39
|
|
|
|
|
|
|
"BackPAN::Index::Dist", |
40
|
|
|
|
|
|
|
{ "foreign.first_release" => "self.path" }, |
41
|
|
|
|
|
|
|
{ cascade_copy => 0, cascade_delete => 0 }, |
42
|
|
|
|
|
|
|
); |
43
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
44
|
|
|
|
|
|
|
"dists_latest_releases", |
45
|
|
|
|
|
|
|
"BackPAN::Index::Dist", |
46
|
|
|
|
|
|
|
{ "foreign.latest_release" => "self.path" }, |
47
|
|
|
|
|
|
|
{ cascade_copy => 0, cascade_delete => 0 }, |
48
|
|
|
|
|
|
|
); |
49
|
|
|
|
|
|
|
__PACKAGE__->belongs_to( |
50
|
|
|
|
|
|
|
"path", |
51
|
|
|
|
|
|
|
"BackPAN::Index::File", |
52
|
|
|
|
|
|
|
{ path => "path" }, |
53
|
|
|
|
|
|
|
{ is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" }, |
54
|
|
|
|
|
|
|
); |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
# Created by DBIx::Class::Schema::Loader v0.07033 @ 2012-12-27 01:39:08 |
58
|
|
|
|
|
|
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MhFMcHAmoBJtN17iZgHLEw |
59
|
|
|
|
|
|
|
|
60
|
13
|
|
|
13
|
|
173607
|
use Mouse; |
|
13
|
|
|
|
|
28935
|
|
|
13
|
|
|
|
|
120
|
|
61
|
|
|
|
|
|
|
with 'BackPAN::Index::Role::AsHash'; |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
use overload |
64
|
8
|
|
|
8
|
|
327023
|
q[""] => sub { $_[0]->distvname }, |
65
|
13
|
|
|
13
|
|
5082
|
fallback => 1; |
|
13
|
|
|
|
|
25
|
|
|
13
|
|
|
|
|
145
|
|
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
sub data_methods { |
68
|
1
|
|
|
1
|
0
|
7
|
return qw(dist version cpanid date path maturity); |
69
|
|
|
|
|
|
|
} |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
sub filename { |
72
|
2
|
|
|
2
|
1
|
2561
|
my $self = shift; |
73
|
2
|
|
|
|
|
61
|
return $self->path->filename; |
74
|
|
|
|
|
|
|
} |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
# Compatibility with PBP |
77
|
|
|
|
|
|
|
sub prefix { |
78
|
2
|
|
|
2
|
0
|
5627
|
my $self = shift; |
79
|
2
|
|
|
|
|
102
|
return $self->path; |
80
|
|
|
|
|
|
|
} |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
1; |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
__END__ |