forked from barbie/cpan-testers-www-statistics
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added META.json, revised prerequisites, revised pingtest
- Loading branch information
Showing
8 changed files
with
159 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
{ | ||
"name": "CPAN-Testers-WWW-Statistics", | ||
"version": "0.87", | ||
"abstract": "Scripts to create the CPAN Testers Statistics website", | ||
"author": [ | ||
"Barbie (BARBIE) <barbie@cpan.org>" | ||
], | ||
|
||
"license": "artistic_2", | ||
"dynamic_config" : 0, | ||
"release_status" : "stable", | ||
"meta-spec": { | ||
"version": "2", | ||
"url": "http://search.cpan.org/dist/CPAN-Meta/lib/CPAN/Meta/Spec.pm" | ||
}, | ||
"generated_by": "Hand 1.0", | ||
"keywords" : [ | ||
"qa", | ||
"cpan", | ||
"testing" | ||
], | ||
|
||
"prereqs" : { | ||
"runtime" : { | ||
"requires" : { | ||
"CGI": "0", | ||
"Class::Accessor::Fast": "0", | ||
"Config::IniFiles": "0", | ||
"CPAN::Testers::Common::DBUtils": "0.03", | ||
"DBI": "0", | ||
"DBD::mysql": "0", | ||
"DBD::SQLite": "1.07", | ||
"Email::Simple": "0", | ||
"File::Basename": "0", | ||
"File::Copy": "0", | ||
"File::Path": "0", | ||
"File::Slurp": "0", | ||
"GD::Graph::lines": "0", | ||
"Getopt::ArgvFile": "0", | ||
"Getopt::Long": "0", | ||
"HTML::Entities": "0", | ||
"HTTP::Request": "0", | ||
"IO::File": "0", | ||
"JSON": "0", | ||
"LWP::UserAgent": "0", | ||
"Sort::Versions": "0", | ||
"Template": "0", | ||
"Time::Piece": "0" | ||
} | ||
}, | ||
"test" : { | ||
"requires": { | ||
"Archive::Extract": "0", | ||
"Archive::Zip": "0", | ||
"File::Spec": "0", | ||
"Test::Differences": "0", | ||
"Test::More": "0.70" | ||
}, | ||
"recommends": { | ||
"Test::CPAN::Meta": "0.13", | ||
"Test::JSON::Meta": "0.08", | ||
"Test::MockObject": "0", | ||
"Test::Pod": "1.00", | ||
"Test::Pod::Coverage": "0.08" | ||
} | ||
} | ||
}, | ||
|
||
"provides": { | ||
"CPAN::Testers::WWW::Statistics": { | ||
"file": "lib/CPAN/Testers/WWW/Statistics.pm", | ||
"version": "0.87" | ||
}, | ||
"CPAN::Testers::WWW::Statistics::Page": { | ||
"file": "lib/CPAN/Testers/WWW/Statistics/Page.pm", | ||
"version": "0.87" | ||
}, | ||
"CPAN::Testers::WWW::Statistics::Graphs": { | ||
"file": "lib/CPAN/Testers/WWW/Statistics/Graphs.pm", | ||
"version": "0.87" | ||
} | ||
}, | ||
"no_index": { | ||
"directory": ["t","examples"] | ||
}, | ||
|
||
"resources": { | ||
"license": "http://dev.perl.org/licenses/", | ||
"bugtracker": { "web": "http://rt.cpan.org/Public/Dist/Display.html?Name=CPAN-Testers-WWW-Statistics" }, | ||
"repository": { | ||
"url": "git://github.com/barbie/cpan-testers-www-statistics.git", | ||
"web": "http://github.com/barbie/cpan-testers-www-statistics", | ||
"type": "git" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
use Test::More; | ||
|
||
# Skip if doing a regular install | ||
plan skip_all => "Author tests not required for installation" | ||
unless ( $ENV{AUTOMATED_TESTING} ); | ||
|
||
eval "use Test::JSON::Meta 0.08"; | ||
plan skip_all => "Test::JSON::Meta 0.08 required for testing META.json files" if $@; | ||
|
||
plan no_plan; | ||
|
||
my $meta = meta_spec_ok(undef,undef,@_); | ||
|
||
use CPAN::Testers::WWW::Statistics; | ||
my $version = $CPAN::Testers::WWW::Statistics::VERSION; | ||
|
||
is($meta->{version},$version, | ||
'META.json distribution version matches'); | ||
|
||
if($meta->{provides}) { | ||
for my $mod (keys %{$meta->{provides}}) { | ||
is($meta->{provides}{$mod}{version},$version, | ||
"META.json entry [$mod] version matches"); | ||
} | ||
} |