line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package BusyBird; |
2
|
1
|
|
|
1
|
|
518
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
34
|
|
3
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
21
|
|
4
|
1
|
|
|
1
|
|
338
|
use BusyBird::Main; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
29
|
|
5
|
1
|
|
|
1
|
|
445
|
use BusyBird::Main::PSGI qw(create_psgi_app); |
|
1
|
|
|
|
|
85
|
|
|
1
|
|
|
|
|
66
|
|
6
|
1
|
|
|
1
|
|
6
|
use Exporter qw(import); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
129
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.10'; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our @EXPORT = our @EXPORT_OK = qw(busybird timeline end); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
my $singleton_main; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub busybird { |
15
|
10
|
100
|
|
10
|
1
|
336
|
return defined($singleton_main) |
16
|
|
|
|
|
|
|
? $singleton_main : ($singleton_main = BusyBird::Main->new); |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub timeline { |
20
|
1
|
|
|
1
|
1
|
2
|
my ($timeline_name) = @_; |
21
|
1
|
|
|
|
|
2
|
return busybird()->timeline($timeline_name); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub end { |
25
|
1
|
|
|
1
|
1
|
286
|
return create_psgi_app(busybird()); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |