diff options
author | Steve Hay <steve.m.hay@googlemail.com> | 2013-09-19 16:47:45 +0100 |
---|---|---|
committer | Steve Hay <steve.m.hay@googlemail.com> | 2013-09-19 16:47:45 +0100 |
commit | 3fdff478504d7ab357a92849fcb38456ee1e4fb4 (patch) | |
tree | aa5217de4163e46814a573f6fda78fcdcbb7eb06 /cpan/CPAN-Meta/lib | |
parent | 81b5a3e5ef4532e1029d8b20773bd055c5906569 (diff) | |
download | perl-3fdff478504d7ab357a92849fcb38456ee1e4fb4.tar.gz |
Upgrade CPAN::Meta from version 2.132510 to 2.132620
Diffstat (limited to 'cpan/CPAN-Meta/lib')
-rw-r--r-- | cpan/CPAN-Meta/lib/CPAN/Meta.pm | 4 | ||||
-rw-r--r-- | cpan/CPAN-Meta/lib/CPAN/Meta/Converter.pm | 4 | ||||
-rw-r--r-- | cpan/CPAN-Meta/lib/CPAN/Meta/Feature.pm | 4 | ||||
-rw-r--r-- | cpan/CPAN-Meta/lib/CPAN/Meta/History.pm | 4 | ||||
-rw-r--r-- | cpan/CPAN-Meta/lib/CPAN/Meta/Prereqs.pm | 4 | ||||
-rw-r--r-- | cpan/CPAN-Meta/lib/CPAN/Meta/Spec.pm | 4 | ||||
-rw-r--r-- | cpan/CPAN-Meta/lib/CPAN/Meta/Validator.pm | 37 |
7 files changed, 20 insertions, 41 deletions
diff --git a/cpan/CPAN-Meta/lib/CPAN/Meta.pm b/cpan/CPAN-Meta/lib/CPAN/Meta.pm index cdaf829378..28ceaa770c 100644 --- a/cpan/CPAN-Meta/lib/CPAN/Meta.pm +++ b/cpan/CPAN-Meta/lib/CPAN/Meta.pm @@ -2,7 +2,7 @@ use 5.006; use strict; use warnings; package CPAN::Meta; -our $VERSION = '2.132510'; # VERSION +our $VERSION = '2.132620'; # VERSION use Carp qw(carp croak); @@ -348,7 +348,7 @@ CPAN::Meta - the distribution metadata for a CPAN dist =head1 VERSION -version 2.132510 +version 2.132620 =head1 SYNOPSIS diff --git a/cpan/CPAN-Meta/lib/CPAN/Meta/Converter.pm b/cpan/CPAN-Meta/lib/CPAN/Meta/Converter.pm index 413d4ebb4e..66acc1a2d2 100644 --- a/cpan/CPAN-Meta/lib/CPAN/Meta/Converter.pm +++ b/cpan/CPAN-Meta/lib/CPAN/Meta/Converter.pm @@ -2,7 +2,7 @@ use 5.006; use strict; use warnings; package CPAN::Meta::Converter; -our $VERSION = '2.132510'; # VERSION +our $VERSION = '2.132620'; # VERSION use CPAN::Meta::Validator; @@ -1280,7 +1280,7 @@ CPAN::Meta::Converter - Convert CPAN distribution metadata structures =head1 VERSION -version 2.132510 +version 2.132620 =head1 SYNOPSIS diff --git a/cpan/CPAN-Meta/lib/CPAN/Meta/Feature.pm b/cpan/CPAN-Meta/lib/CPAN/Meta/Feature.pm index 16737a2815..4b6a408789 100644 --- a/cpan/CPAN-Meta/lib/CPAN/Meta/Feature.pm +++ b/cpan/CPAN-Meta/lib/CPAN/Meta/Feature.pm @@ -2,7 +2,7 @@ use 5.006; use strict; use warnings; package CPAN::Meta::Feature; -our $VERSION = '2.132510'; # VERSION +our $VERSION = '2.132620'; # VERSION use CPAN::Meta::Prereqs; @@ -44,7 +44,7 @@ CPAN::Meta::Feature - an optional feature provided by a CPAN distribution =head1 VERSION -version 2.132510 +version 2.132620 =head1 DESCRIPTION diff --git a/cpan/CPAN-Meta/lib/CPAN/Meta/History.pm b/cpan/CPAN-Meta/lib/CPAN/Meta/History.pm index 1c31f14227..a20c66dc0e 100644 --- a/cpan/CPAN-Meta/lib/CPAN/Meta/History.pm +++ b/cpan/CPAN-Meta/lib/CPAN/Meta/History.pm @@ -3,7 +3,7 @@ use 5.006; use strict; use warnings; package CPAN::Meta::History; -our $VERSION = '2.132510'; # VERSION +our $VERSION = '2.132620'; # VERSION 1; @@ -21,7 +21,7 @@ CPAN::Meta::History - history of CPAN Meta Spec changes =head1 VERSION -version 2.132510 +version 2.132620 =head1 DESCRIPTION diff --git a/cpan/CPAN-Meta/lib/CPAN/Meta/Prereqs.pm b/cpan/CPAN-Meta/lib/CPAN/Meta/Prereqs.pm index 2a4fdf827d..daf13ba319 100644 --- a/cpan/CPAN-Meta/lib/CPAN/Meta/Prereqs.pm +++ b/cpan/CPAN-Meta/lib/CPAN/Meta/Prereqs.pm @@ -2,7 +2,7 @@ use 5.006; use strict; use warnings; package CPAN::Meta::Prereqs; -our $VERSION = '2.132510'; # VERSION +our $VERSION = '2.132620'; # VERSION use Carp qw(confess); @@ -151,7 +151,7 @@ CPAN::Meta::Prereqs - a set of distribution prerequisites by phase and type =head1 VERSION -version 2.132510 +version 2.132620 =head1 DESCRIPTION diff --git a/cpan/CPAN-Meta/lib/CPAN/Meta/Spec.pm b/cpan/CPAN-Meta/lib/CPAN/Meta/Spec.pm index a0e3a08873..7de307498d 100644 --- a/cpan/CPAN-Meta/lib/CPAN/Meta/Spec.pm +++ b/cpan/CPAN-Meta/lib/CPAN/Meta/Spec.pm @@ -7,7 +7,7 @@ use 5.006; use strict; use warnings; package CPAN::Meta::Spec; -our $VERSION = '2.132510'; # VERSION +our $VERSION = '2.132620'; # VERSION 1; @@ -28,7 +28,7 @@ CPAN::Meta::Spec - specification for CPAN distribution metadata =head1 VERSION -version 2.132510 +version 2.132620 =head1 SYNOPSIS diff --git a/cpan/CPAN-Meta/lib/CPAN/Meta/Validator.pm b/cpan/CPAN-Meta/lib/CPAN/Meta/Validator.pm index 1c8ce0483e..43c8228b90 100644 --- a/cpan/CPAN-Meta/lib/CPAN/Meta/Validator.pm +++ b/cpan/CPAN-Meta/lib/CPAN/Meta/Validator.pm @@ -2,7 +2,7 @@ use 5.006; use strict; use warnings; package CPAN::Meta::Validator; -our $VERSION = '2.132510'; # VERSION +our $VERSION = '2.132620'; # VERSION #--------------------------------------------------------------------------# @@ -78,10 +78,10 @@ my %definitions = ( '2' => { # REQUIRED 'abstract' => { mandatory => 1, value => \&string }, - 'author' => { mandatory => 1, lazylist => { value => \&string } }, + 'author' => { mandatory => 1, list => { value => \&string } }, 'dynamic_config' => { mandatory => 1, value => \&boolean }, 'generated_by' => { mandatory => 1, value => \&string }, - 'license' => { mandatory => 1, lazylist => { value => \&license } }, + 'license' => { mandatory => 1, list => { value => \&license } }, 'meta-spec' => { mandatory => 1, 'map' => { @@ -96,7 +96,7 @@ my %definitions = ( # OPTIONAL 'description' => { value => \&string }, - 'keywords' => { lazylist => { value => \&string } }, + 'keywords' => { list => { value => \&string } }, 'no_index' => $no_index_2, 'optional_features' => { 'map' => { @@ -125,7 +125,7 @@ my %definitions = ( }, 'resources' => { 'map' => { - license => { lazylist => { value => \&url } }, + license => { list => { value => \&url } }, homepage => { value => \&url }, bugtracker => { 'map' => { @@ -452,7 +452,7 @@ sub errors { my $spec_error = "Missing validation action in specification. " - . "Must be one of 'map', 'list', 'lazylist', or 'value'"; + . "Must be one of 'map', 'list', or 'value'"; sub check_map { my ($self,$spec,$data) = @_; @@ -484,8 +484,6 @@ sub check_map { $self->check_map($spec->{$key}{'map'},$data->{$key}); } elsif($spec->{$key}{'list'}) { $self->check_list($spec->{$key}{'list'},$data->{$key}); - } elsif($spec->{$key}{'lazylist'}) { - $self->check_lazylist($spec->{$key}{'lazylist'},$data->{$key}); } else { $self->_error( "$spec_error for '$key'" ); } @@ -498,8 +496,6 @@ sub check_map { $self->check_map($spec->{':key'}{'map'},$data->{$key}); } elsif($spec->{':key'}{'list'}) { $self->check_list($spec->{':key'}{'list'},$data->{$key}); - } elsif($spec->{':key'}{'lazylist'}) { - $self->check_lazylist($spec->{':key'}{'lazylist'},$data->{$key}); } else { $self->_error( "$spec_error for ':key'" ); } @@ -512,17 +508,6 @@ sub check_map { } } -# if it's a string, make it into a list and check the list -sub check_lazylist { - my ($self,$spec,$data) = @_; - - if ( defined $data && ! ref($data) ) { - $data = [ $data ]; - } - - $self->check_list($spec,$data); -} - sub check_list { my ($self,$spec,$data) = @_; @@ -545,8 +530,6 @@ sub check_list { $self->check_map($spec->{'map'},$value); } elsif(defined $spec->{'list'}) { $self->check_list($spec->{'list'},$value); - } elsif(defined $spec->{'lazylist'}) { - $self->check_lazylist($spec->{'lazylist'},$value); } elsif ($spec->{':key'}) { $self->check_map($spec,$value); } else { @@ -840,7 +823,7 @@ CPAN::Meta::Validator - validate CPAN distribution metadata structures =head1 VERSION -version 2.132510 +version 2.132620 =head1 SYNOPSIS @@ -904,10 +887,6 @@ the appropriate specification definition. =item * -check_lazylist($spec,$data) - -Checks whether a list conforms, but converts strings to a single-element list - =back =head2 Validator Methods @@ -1016,7 +995,7 @@ Validates that a given key is in an acceptable module name format, e.g. =end :internals -=for Pod::Coverage anything boolean check_lazylist check_list custom_1 custom_2 exversion file +=for Pod::Coverage anything boolean check_list custom_1 custom_2 exversion file identifier license module phase relation release_status string string_or_undef url urlspec version header check_map |