Acme-CPANAuthors-MetaSyntactic
view release on metacpan or search on metacpan
Holder, and derivatives of that collection of files created through
textual modification.
- "Standard Version" refers to such a Package if it has not been modified,
or has been modified in accordance with the wishes of the Copyright
Holder.
- "Copyright Holder" is whoever is named in the copyright or copyrights for
the package.
- "You" is you, if you're thinking about copying or distributing this Package.
- "Reasonable copying fee" is whatever you can justify on the basis of media
cost, duplication charges, time of people involved, and so on. (You will
not be required to justify it to the Copyright Holder, but only to the
computing community at large as a market that must bear the fee.)
- "Freely Available" means that no fee is charged for the item itself, though
there may be fees involved in handling the item. It also means that
recipients of the item may redistribute it under the same conditions they
received it.
1. You may make and give away verbatim copies of the source form of the
Standard Version of this Package without restriction, provided that you
duplicate all of the original copyright notices and associated disclaimers.
t/authors.t view on Meta::CPAN
use Test::More;
use File::Spec;
use File::Path qw(make_path);
use Acme::CPANAuthors::MetaSyntactic;
plan skip_all => 'these tests are for release candidate testing'
if !$ENV{RELEASE_TESTING};
eval "use CPAN::Common::Index::Mirror; 1"
or plan skip_all =>
"CPAN::Common::Index::Mirror required for testing authors list";
plan tests => 1;
# handle the CPAN::Common::Index::Mirror cache
my $cache_dir = File::Spec->catdir( File::Spec->tmpdir, "cpan-$<" );
make_path $cache_dir unless -e $cache_dir;
my $index = CPAN::Common::Index::Mirror->new( { cache => $cache_dir } );
my $cache = $index->cached_package;
if ( time - ( stat $cache )[9] > 24 * 60 * 60 ) {
diag "Refreshing index cache (@{[ ~~ localtime +( stat $cache )[9] ]})";
( run in 0.375 second using v1.01-cache-2.11-cpan-0a6323c29d9 )