| line |
true |
false |
branch |
|
48
|
0 |
20 |
ref $urls eq 'ARRAY' ? : |
|
49
|
20 |
0 |
unless $paths |
|
50
|
20 |
0 |
unless $path =~ m[^https?://] |
|
53
|
0 |
0 |
if $asset = $self->_already_downloaded($abs) |
|
57
|
0 |
20 |
ref $urls eq 'ARRAY' ? : |
|
58
|
0 |
20 |
if $url =~ m[^https?://] and $asset = $self->_download('Mojo::URL'->new($url)) |
|
61
|
20 |
0 |
unless $paths |
|
62
|
0 |
20 |
if ($path =~ m[^https?://]) { } |
|
65
|
0 |
0 |
if $asset = $self->_download($abs) |
|
69
|
2 |
18 |
unless $asset = $self->file($url) |
|
80
|
0 |
0 |
unless my $db_attr = $self->_db_get($attrs) |
|
84
|
0 |
0 |
unless $asset |
|
85
|
0 |
0 |
unless $db_attr->{'checksum'} eq $attrs->{'checksum'} |
|
97
|
2 |
8 |
unless (open $DB, '>', $path) |
|
105
|
0 |
0 |
unless $key =~ /^[\w-]+$/ |
|
108
|
0 |
0 |
unless defined $db->{$url}{$key}{$attr} |
|
123
|
0 |
0 |
if not -d $dir and -w $dir->dirname |
|
126
|
0 |
0 |
unless -w $dir |
|
141
|
18 |
0 |
$asset->can('asset') ? : |
|
155
|
0 |
0 |
if -e $file and $file =~ /\.(\w+)$/ |
|
159
|
0 |
0 |
unless $file->basename =~ /^$basename(\w+)$/ |
|
175
|
0 |
0 |
$attrs->{'minified'} ? : |
|
181
|
0 |
0 |
unless my $data = $$db{$attrs->{'url'}} |
|
182
|
0 |
0 |
unless $data = $$data{$attrs->{'key'}} |
|
187
|
0 |
0 |
if $ENV{'MOJO_ASSETPACK_LAZY'} |
|
198
|
0 |
0 |
if ($attrs{'url'}->host eq 'local') |
|
204
|
0 |
0 |
if $attrs{'url'}->host ne 'local' and $asset = $self->_already_downloaded($url) |
|
209
|
0 |
0 |
if (my $err = $tx->error) |
|
215
|
0 |
0 |
if ($ct ne 'text/plain') |
|
220
|
0 |
0 |
$tx->req->url->path->[-1] =~ /\.(\w+)$/ ? : |
|
222
|
0 |
0 |
if ($attrs{'url'}->host ne 'local') |
|
225
|
0 |
0 |
unless -d $path->dirname |
|
230
|
0 |
0 |
if $path |
|
245
|
0 |
0 |
if $query |