Acme-CPANAuthors-BackPAN-OneHundred
view release on metacpan or search on metacpan
examples/update100.pl view on Meta::CPAN
#!/usr/bin/perl
use warnings;
use strict;
$|++;
my $VERSION = '1.05';
#----------------------------------------------------------------------------
=head1 NAME
update100.pl - preps the OneHundred module for release, if required.
=head1 SYNOPSIS
perl update100.pl
=head1 DESCRIPTION
Downloads the latest copy of the backpan100.csv file from CPAN Testers
Statistics site. Compares with the previous download, and if there is a change,
takes the module template and inserts the appropriate data ready for the next
release.
=cut
# -------------------------------------
# Library Modules
use CPAN::Changes;
#use Data::Dumper;
use DateTime;
use File::Basename;
use Getopt::Long;
use IO::File;
use Template;
use WWW::Mechanize;
# -------------------------------------
# Variables
my (%options,%old,%new,%tvars,%pause,%changes);
my $changed = 0;
my $max = 4;
my @files = qw(
lib/Acme/CPANAuthors/BackPAN/OneHundred.pm
LICENSE
META.json
META.yml
README
t/10cpanauthor.t
);
my %config = ( # default config info
RELATIVE => 1,
ABSOLUTE => 1,
INTERPOLATE => 0,
POST_CHOMP => 1,
TRIM => 0,
INCLUDE_PATH => 'templates',
OUTPUT_PATH => '..'
);
my %groups = (
'insert' => 'New Authors',
'update' => 'Updated Counts',
'delete' => 'See You Again?',
);
# -------------------------------------
# Program
( run in 3.214 seconds using v1.01-cache-2.11-cpan-13bb782fe5a )