Hi all,

Didn't see Neil's post here, but did reply to him on QuestHub. For those
who didn't see it, if you're after a summary metric for a dist (with and
without a version), you can use
CPAN::Testers::WWW::Reports::Query::AJAX<http://metacpan.org/module/CPAN::Testers::WWW::Reports::Query::AJAX>on
CPAN. Leo has also written
CPAN::Testers::Reports::Query::JSON<https://metacpan.org/module/CPAN::Testers::Reports::Query::JSON>,
which gets the same data, but presents it in a slightly differnt format.

For anyone wanting to do a similar, or even different, mash-up with the
data, you might want to look at
CPAN::Testers::WWW::Reports::Query::Reports<https://metacpan.org/module/CPAN::Testers::WWW::Reports::Query::Reports>,
and create your own database*.* Don't try and download the SQLite file, as
this is no longer maintained, due to the number of errors it generates.

Thanks,
Barbie.


-- 
Birmingham.pm - http://birmingham.pm.org
CPAN Testers - http://cpantesters.org
YAPC Surveys - http://yapc-surveys.org
Perl Jam - http://perljam.info


On Sun, Aug 25, 2013 at 5:17 PM, Neil Bowers <n...@bowers.com> wrote:

> Hi again,
>
> The JSON from
> http://www.cpantesters.org/distro/<firstletter>/<distro>.json
> e.g. http://www.cpantesters.org/distro/m/marc-moose.json
>
>
> Is this statically generated, so I could sensibly do an If-Modified-Since
> request on it?
>
> First cut at a module at:
>
> https://github.com/neilbowers/CPAN-Testers-DistSummary
>
>
> Any and all comments on it appreciated -- I've just bashed it out.
> Basic usage:
>
> use CPAN::Testers::DistSummary;
>
> my $summary = CPAN::Testers::DistSummary->new(name => 'Module-Path');
> printf "version = %s  pass rate = %.2f\n",
>            $summary->version, $summary->pass_rate;
>
>
> You can get individual counts of passes, fails and unknowns as well.
> By default it will ignore developer releases, but you can request those
> with
>
> So for Module-Path, without and then with developer releases I get:
>
> version = 0.09     pass rate = 99.78
> version = 0.09_01  pass rate = 90.41
>
>
> Neil
>
>

Reply via email to