MyCPAN::Indexer::BackPANstats - Collect various stats about BackPAN activity
use MyCPAN::Indexer;
This module implements the indexer_class and reporter_class components to allow backpan_indexer.pl to collect stats on BackPAN.
backpan_indexer.pl
It runs through the indexing and prints a report at the end of the run.
A stand in for run_components later on.
Like setup_run_info in MyCPAN::Indexer, but it remembers fewer things. The test census really just cares about statements in the test files, so the details about the run aren't as interesting.
setup_run_info
MyCPAN::Indexer
Given a distribution, unpack it, look at it, and report the findings. It does everything except the looking right now, so it merely croaks. Most of this needs to move out of run and into this method.
We don't care about 0 byte dists, so we always return true so setup_dist_info doesn't bail out.
get_reporter sets the reporter key in the $Notes hash reference. The value is a code reference that takes the information collected about a distribution and counts the modules used in the test files.
get_reporter
reporter
$Notes
See MyCPAN::Indexer::Tutorial for details about what get_reporter expects and should do.
$VAR1 = { 'dist_date' => 1207928766, 'dist_basename' => 'cpan-script-1.54.tar.gz', 'maturity' => 'released', 'dist_file' => '/Volumes/iPod/BackPAN/authors/id/B/BD/BDFOY/cpan-script-1.54.tar.gz', 'dist_size' => 6281, 'dist_author' => 'BDFOY', 'dist_name' => 'cpan-script', 'dist_md5' => '8053fa43edcdce9a90f78f878cbf6caf', 'dist_version' => '1.54' };
This code is in Github:
git://github.com/briandfoy/mycpan-indexer.git
brian d foy, <bdfoy@cpan.org>
<bdfoy@cpan.org>
Copyright (c) 2010-2013, brian d foy, All Rights Reserved.
You may redistribute this under the same terms as Perl itself.
To install MyCPAN::Indexer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MyCPAN::Indexer
CPAN shell
perl -MCPAN -e shell install MyCPAN::Indexer
For more information on module installation, please visit the detailed CPAN module installation guide.