Group
Extension

Matches 1

PGXN-Meta-Validator ( D/DW/DWHEELER/PGXN-Meta-Validator-v0.16.0.tar.gz, DWHEELER, 2013; MetaCPAN )
PGXN-Meta-Validator/lib/PGXN/Meta/Validator.pm ( view source; MetaCPAN )
se JSON;
use Carp qw(croak);
our $VERSION = v0.16.0;

=head1 Name

PGXN::Meta::Validator - Validate PGXN distribution metadata structures

=head1 Synopsis

  my $struct = decode_json_file('META.json')
lass;
}

=head3 C<load_file>

  my $meta = PGXN::Meta::Validator->load_file('META.json');

Reads in the specified JSON file and passes the resulting data structure to
C<new()>, returning the resulting
nts are not valid
JSON.

=cut

sub load_file {
    my ($class, $file) = @_;

    croak "load_file() requires a valid, readable filename"
        unless -r $file;

    $class->new(JSON->new->decode(do 

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.