NAME

CPAN::Testers::Common::Article - Parse a CPAN Testers NNTP article

DESCRIPTION

Given an NNTP article from the cpan-testers or cpan-uploads feed, will parse and return the appropriate the data parts via accessors.

INTERFACE

The Constructor

  • new

    The constructor. Pass in a reference to the article.

Methods

  • parse_upload

    Parses an upload article.

  • parse_report

    Parses a report article.

  • passed

    Whether the report was a PASS

  • failed

    Whether the report was a FAIL

Accessors

All the following are accessors available through via the object, once an article has been parsed as a report or upload announcement.

  • postdate

    'YYYYMM' representation of the date article was posted.

  • date

    'YYYYMMDDhhmm' representation of the date article was posted.

  • epoch

    Number of seconds since the epoch of when article was posted

  • status

    For reports this will be the grade, for uploads this will be 'CPAN'.

  • from

    Who posted the article.

  • distribution

    The distribution name.

  • version

    The distribution version.

  • perl

    The perl interpreter version used for testing.

  • osname

    Operating system name.

  • osvers

    Operating system version.

  • archname

    Operating system architecture name. This is usually based on the osname and osvers, but they are not always the same.

  • subject

    Subject line of the original post.

  • author

    Author of uploaded distribution (Upload article only).

  • filename

    File name of uploaded distribution (Upload article only).

  • osnames_patterns

    A regular expression of known operating system coded strings.

  • osnames_fixes

    A hash reference to strings that may have been mangled, and their corrections.

BUGS, PATCHES & FIXES

There are no known bugs at the time of this release. However, if you spot a bug or are experiencing difficulties, that is not explained within the POD documentation, please send bug reports and patches to the RT Queue (see below).

Fixes are dependent upon their severity and my availability. Should a fix not be forthcoming, please feel free to (politely) remind me.

RT Queue - http://rt.cpan.org/Public/Dist/Display.html?Name=CPAN-Testers-Common-Article

SEE ALSO

CPAN::Testers::Data::Generator, CPAN::Testers::Data::Uploads

http://www.cpantesters.org/, http://stats.cpantesters.org/, http://wiki.cpantesters.org/

AUTHOR

  Original author:    Leon Brocard <acme@astray.com>   (C) 2002-2008
  Current maintainer: Barbie       <barbie@cpan.org>   (C) 2008-2019

LICENSE

This distribution is free software; you can redistribute it and/or modify it under the Artistic License v2.