line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Riji::Models; |
2
|
5
|
|
|
5
|
|
7783
|
use strict; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
207
|
|
3
|
5
|
|
|
5
|
|
32
|
use warnings; |
|
5
|
|
|
|
|
19
|
|
|
5
|
|
|
|
|
192
|
|
4
|
|
|
|
|
|
|
|
5
|
5
|
|
|
5
|
|
42
|
use URI; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
163
|
|
6
|
|
|
|
|
|
|
|
7
|
5
|
|
|
5
|
|
2976
|
use Object::Container -base; |
|
5
|
|
|
|
|
74538
|
|
|
5
|
|
|
|
|
27
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub register_blog { |
10
|
|
|
|
|
|
|
register Blog => sub { |
11
|
1
|
|
|
1
|
|
478
|
my $self = shift; |
12
|
1
|
|
|
|
|
27
|
my $conf = $self->get('config'); |
13
|
|
|
|
|
|
|
my $site_url = sub { |
14
|
1
|
50
|
|
|
|
62
|
return URI->new($conf->{site_url}) if $conf->{site_url}; |
15
|
|
|
|
|
|
|
|
16
|
0
|
|
|
|
|
0
|
require Riji; |
17
|
0
|
0
|
|
|
|
0
|
Riji->context ? Riji->context->req->base : URI->new('http://unknown.example.com/'); |
18
|
1
|
|
|
|
|
181
|
}->(); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
$self->ensure_class_loaded('Riji::Model::Blog')->new( |
21
|
|
|
|
|
|
|
base_dir => $self->get('base_dir'), |
22
|
|
|
|
|
|
|
site_url => $site_url, |
23
|
|
|
|
|
|
|
author => $conf->{author}, |
24
|
|
|
|
|
|
|
title => $conf->{title}, |
25
|
1
|
50
|
|
|
|
9923
|
($conf->{branch} ? (branch => $conf->{branch}) : ()), |
26
|
|
|
|
|
|
|
); |
27
|
5
|
|
|
5
|
0
|
31
|
}; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
register_blog; |
30
|
|
|
|
|
|
|
|
31
|
5
|
|
|
5
|
|
1737
|
no Object::Container; |
|
5
|
|
|
|
|
19
|
|
|
5
|
|
|
|
|
34
|
|
32
|
|
|
|
|
|
|
1; |