NAME

CPAN::Testers::Schema::Result::PerlVersion - Metadata about Perl versions

VERSION

version 0.025

SYNOPSIS

    my $perl = $schema->resultset( 'PerlVersion' )->find( '5.26.0' );
    say "Stable" unless $perl->devel;

    $schema->resultset( 'PerlVersion' )->find_or_create({
        version => '5.30.0',    # Version reported by Perl
        perl => '5.30.0',       # Parsed Perl version string
        patch => 0,             # Has patches applied
        devel => 0,             # Is development version (odd minor version)
    });

    # Fill in metadata automatically
    $schema->resultset( 'PerlVersion' )->find_or_create({
        version => '5.31.0 patch 1231',
        # devel will be set to 1
        # patch will be set to 1
        # perl will be set to 5.31.0
    });

DESCRIPTION

This table holds metadata about known Perl versions. Through this table we can quickly list which Perl versions are stable/development.

ATTRIBUTES

version

The Perl version reported by the tester. This is the primary key.

perl

The parsed version of Perl in REVISION.VERSION.SUBVERSION format.

If not specified when creating a new row, the Perl version will be parsed and this field updated accordingly.

patch

If true (1), this Perl has patches applied. Defaults to false (0).

If not specified when creating a new row, the Perl version will be parsed and this field updated accordingly.

devel

If true (1), this Perl is a development Perl version. Development Perl versions have an odd VERSION field (the second number) like 5.27.0, 5.29.0, 5.31.0, etc... Release candidates (like 5.28.0 RC0) are also considered development versions.

If not specified when creating a new row, the Perl version will be parsed and this field updated accordingly.

METHODS

new

The constructor will automatically fill in any missing information based on the supplied version field.

SEE ALSO

DBIx::Class::Row, CPAN::Testers::Schema

AUTHORS

  • Oriol Soriano <oriolsoriano@gmail.com>

  • Doug Bell <preaction@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2018 by Oriol Soriano, Doug Bell.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.