File Coverage

blib/lib/Acme/CPANModules/LocalCPANIndex.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Acme::CPANModules::LocalCPANIndex;
2              
3 1     1   424040 use strict;
  1         3  
  1         157  
4              
5             our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
6             our $DATE = '2023-10-29'; # DATE
7             our $DIST = 'Acme-CPANModules-LocalCPANIndex'; # DIST
8             our $VERSION = '0.002'; # VERSION
9              
10             our $LIST = {
11             summary => 'List of modules/tools to create an index against local CPAN mirror',
12             description => <<'_',
13              
14             Since CPAN repository index is just a couple of text files (currently: list of
15             authors in `authors/01mailrc.txt.gz` and list of packages in
16             `modules/02packages.details.txt.gz`), to perform more complex or detailed
17             queries additional index is often desired. The following modules accomplish
18             that.
19              
20             _
21             entries => [
22             {
23             module=>'App::lcpan',
24             description => <<'_',
25              
26             In addition to downloading a CPAN mini mirror (using ), this
27             utility also indexes the package list and distribution metadata into a SQLite
28             database so you can perform various queries, like list of
29             modules/distributions/scripts of a CPAN author, or related modules using
30             cross-mention information on modules' PODs, or various rankings.
31              
32             _
33             },
34             {
35             module=>'CPAN::SQLite',
36             description => <<'_',
37              
38             This module parses the two CPAN text file indexes (`authors/01mailrc.txt.gz` and
39             `modules/02packages.details.txt.gz`) and puts the information into a SQLite
40             database. This lets you perform queries more quickly without reparsing the text
41             files each time. But it does not parse distribution metadata so you don't get
42             additional querying capability like dependencies.
43              
44             _
45             },
46             ],
47             };
48              
49             1;
50             # ABSTRACT: List of modules/tools to create an index against local CPAN mirror
51              
52             __END__