diff options
author | Chris 'BinGOs' Williams <chris@bingosnet.co.uk> | 2012-02-04 10:23:42 +0000 |
---|---|---|
committer | Chris 'BinGOs' Williams <chris@bingosnet.co.uk> | 2012-02-04 10:23:42 +0000 |
commit | 2d1dec402582751bc536b701e31d9d8207b963e7 (patch) | |
tree | 94df587effcb3685b30753c57d16445b7b98b90b /cpan | |
parent | 63c7889e7c55e420b8f3f064bf7e6ade7ebad8a4 (diff) | |
download | perl-2d1dec402582751bc536b701e31d9d8207b963e7.tar.gz |
Update CPAN-Meta to CPAN version 2.120351
[DELTA]
2.120351 2012-02-03 23:01:45 America/New_York
[OTHER]
- Fixed CPAN packaging errors
2.120350 2012-02-03 22:46:59 America/New_York
[BUGFIX]
- Work around a memory leak bug involving version objects
in boolean context.
Diffstat (limited to 'cpan')
-rw-r--r-- | cpan/CPAN-Meta/Changes | 15 | ||||
-rw-r--r-- | cpan/CPAN-Meta/lib/CPAN/Meta.pm | 4 | ||||
-rw-r--r-- | cpan/CPAN-Meta/lib/CPAN/Meta/Converter.pm | 27 | ||||
-rw-r--r-- | cpan/CPAN-Meta/lib/CPAN/Meta/Feature.pm | 4 | ||||
-rw-r--r-- | cpan/CPAN-Meta/lib/CPAN/Meta/History.pm | 6 | ||||
-rw-r--r-- | cpan/CPAN-Meta/lib/CPAN/Meta/Prereqs.pm | 4 | ||||
-rw-r--r-- | cpan/CPAN-Meta/lib/CPAN/Meta/Requirements.pm | 4 | ||||
-rw-r--r-- | cpan/CPAN-Meta/lib/CPAN/Meta/Spec.pm | 10 | ||||
-rw-r--r-- | cpan/CPAN-Meta/lib/CPAN/Meta/Validator.pm | 4 |
9 files changed, 48 insertions, 30 deletions
diff --git a/cpan/CPAN-Meta/Changes b/cpan/CPAN-Meta/Changes index eaf4098add..dd0f934d3e 100644 --- a/cpan/CPAN-Meta/Changes +++ b/cpan/CPAN-Meta/Changes @@ -1,7 +1,22 @@ Revision history for CPAN-Meta +2.120351 2012-02-03 23:01:45 America/New_York + + [OTHER] + + - Fixed CPAN packaging errors + +2.120350 2012-02-03 22:46:59 America/New_York + + [BUGFIX] + + - Work around a memory leak bug involving version objects + in boolean context. + 2.113640 2011-12-30 15:19:46 America/New_York + [OTHER] + - Version::Requirements has now been merged as CPAN::Meta::Requirements, rendering Version::Requirements itself redundant diff --git a/cpan/CPAN-Meta/lib/CPAN/Meta.pm b/cpan/CPAN-Meta/lib/CPAN/Meta.pm index eee0e6c04b..29a221b6a1 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.113640'; # VERSION +our $VERSION = '2.120351'; # VERSION use Carp qw(carp croak); @@ -346,7 +346,7 @@ CPAN::Meta - the distribution metadata for a CPAN dist =head1 VERSION -version 2.113640 +version 2.120351 =head1 SYNOPSIS diff --git a/cpan/CPAN-Meta/lib/CPAN/Meta/Converter.pm b/cpan/CPAN-Meta/lib/CPAN/Meta/Converter.pm index 09fe335fd7..37990f6ea1 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.113640'; # VERSION +our $VERSION = '2.120351'; # VERSION use CPAN::Meta::Validator; @@ -316,7 +316,10 @@ sub _clean_version { return 0 if ! length $element; return 0 if ( $element eq 'undef' || $element eq '<undef>' ); - if ( my $v = eval { version->new($element) } ) { + my $v = eval { version->new($element) }; + # XXX check defined $v and not just $v because version objects leak memory + # in boolean context -- dagolden, 2012-02-03 + if ( defined $v ) { return $v->is_qv ? $v->normal : $element; } else { @@ -326,7 +329,7 @@ sub _clean_version { sub _version_map { my ($element) = @_; - return undef unless defined $element; + return unless defined $element; if ( ref $element eq 'HASH' ) { my $new_map = {}; for my $k ( keys %$element ) { @@ -444,7 +447,7 @@ sub _extract_prereqs { sub _downgrade_optional_features { my (undef, undef, $meta) = @_; - return undef unless exists $meta->{optional_features}; + return unless exists $meta->{optional_features}; my $origin = $meta->{optional_features}; my $features = {}; for my $name ( keys %$origin ) { @@ -465,7 +468,7 @@ sub _downgrade_optional_features { sub _upgrade_optional_features { my (undef, undef, $meta) = @_; - return undef unless exists $meta->{optional_features}; + return unless exists $meta->{optional_features}; my $origin = $meta->{optional_features}; my $features = {}; for my $name ( keys %$origin ) { @@ -561,7 +564,7 @@ my $resource2_upgrade = { return unless $item; if ( $item =~ m{^mailto:(.*)$} ) { return { mailto => $1 } } elsif( _is_urlish($item) ) { return { web => $item } } - else { return undef } + else { return } }, repository => sub { return _is_urlish($_[0]) ? { url => $_[0] } : undef }, ':custom' => \&_prefix_custom, @@ -569,7 +572,7 @@ my $resource2_upgrade = { sub _upgrade_resources_2 { my (undef, undef, $meta, $version) = @_; - return undef unless exists $meta->{resources}; + return unless exists $meta->{resources}; return _convert($meta->{resources}, $resource2_upgrade); } @@ -607,7 +610,7 @@ my $resources2_cleanup = { sub _cleanup_resources_2 { my ($resources, $key, $meta, $to_version) = @_; - return undef unless $resources && ref $resources eq 'HASH'; + return unless $resources && ref $resources eq 'HASH'; return _convert($resources, $resources2_cleanup, $to_version); } @@ -621,7 +624,7 @@ my $resource1_spec = { sub _resources_1_3 { my (undef, undef, $meta, $version) = @_; - return undef unless exists $meta->{resources}; + return unless exists $meta->{resources}; return _convert($meta->{resources}, $resource1_spec); } @@ -634,7 +637,7 @@ sub _resources_1_2 { $resources->{license} = $meta->license_url if _is_urlish($meta->{license_url}); } - return undef unless keys %$resources; + return unless keys %$resources; return _convert($resources, $resource1_spec); } @@ -648,7 +651,7 @@ my $resource_downgrade_spec = { sub _downgrade_resources { my (undef, undef, $meta, $version) = @_; - return undef unless exists $meta->{resources}; + return unless exists $meta->{resources}; return _convert($meta->{resources}, $resource_downgrade_spec); } @@ -1260,7 +1263,7 @@ CPAN::Meta::Converter - Convert CPAN distribution metadata structures =head1 VERSION -version 2.113640 +version 2.120351 =head1 SYNOPSIS diff --git a/cpan/CPAN-Meta/lib/CPAN/Meta/Feature.pm b/cpan/CPAN-Meta/lib/CPAN/Meta/Feature.pm index 7914d9a6df..cc080f16c9 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.113640'; # VERSION +our $VERSION = '2.120351'; # VERSION use CPAN::Meta::Prereqs; @@ -42,7 +42,7 @@ CPAN::Meta::Feature - an optional feature provided by a CPAN distribution =head1 VERSION -version 2.113640 +version 2.120351 =head1 DESCRIPTION diff --git a/cpan/CPAN-Meta/lib/CPAN/Meta/History.pm b/cpan/CPAN-Meta/lib/CPAN/Meta/History.pm index cd3b9ddfd8..a47c19bd69 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.113640'; # VERSION +our $VERSION = '2.120351'; # VERSION 1; @@ -20,7 +20,7 @@ CPAN::Meta::History - history of CPAN Meta Spec changes =head1 VERSION -version 2.113640 +version 2.120351 =head1 DESCRIPTION @@ -242,7 +242,7 @@ Added 'resources' field with subkeys 'homepage', 'license', and =item * -Added 'optional_features' field as an alterate under 'recommends'. +Added 'optional_features' field as an alternate under 'recommends'. Includes 'description', 'requires', 'build_requires', 'conflicts', 'requires_packages', 'requires_os' and 'excluded_os' as valid subkeys diff --git a/cpan/CPAN-Meta/lib/CPAN/Meta/Prereqs.pm b/cpan/CPAN-Meta/lib/CPAN/Meta/Prereqs.pm index 1b97804f07..55b49832d0 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.113640'; # VERSION +our $VERSION = '2.120351'; # VERSION use Carp qw(confess); @@ -149,7 +149,7 @@ CPAN::Meta::Prereqs - a set of distribution prerequisites by phase and type =head1 VERSION -version 2.113640 +version 2.120351 =head1 DESCRIPTION diff --git a/cpan/CPAN-Meta/lib/CPAN/Meta/Requirements.pm b/cpan/CPAN-Meta/lib/CPAN/Meta/Requirements.pm index dd2861e5ca..8b922c79c4 100644 --- a/cpan/CPAN-Meta/lib/CPAN/Meta/Requirements.pm +++ b/cpan/CPAN-Meta/lib/CPAN/Meta/Requirements.pm @@ -1,7 +1,7 @@ use strict; use warnings; package CPAN::Meta::Requirements; -our $VERSION = '2.113640'; # VERSION +our $VERSION = '2.120351'; # VERSION # ABSTRACT: a set of version requirements for a CPAN dist @@ -384,7 +384,7 @@ CPAN::Meta::Requirements - a set of version requirements for a CPAN dist =head1 VERSION -version 2.113640 +version 2.120351 =head1 SYNOPSIS diff --git a/cpan/CPAN-Meta/lib/CPAN/Meta/Spec.pm b/cpan/CPAN-Meta/lib/CPAN/Meta/Spec.pm index d846c89e44..2ff17305c2 100644 --- a/cpan/CPAN-Meta/lib/CPAN/Meta/Spec.pm +++ b/cpan/CPAN-Meta/lib/CPAN/Meta/Spec.pm @@ -3,7 +3,7 @@ use 5.006; use strict; use warnings; package CPAN::Meta::Spec; -our $VERSION = '2.113640'; # VERSION +our $VERSION = '2.120351'; # VERSION 1; @@ -20,7 +20,7 @@ CPAN::Meta::Spec - specification for CPAN distribution metadata =head1 VERSION -version 2.113640 +version 2.120351 =head1 SYNOPSIS @@ -506,12 +506,12 @@ Valid subkeys are as follows: =item file A I<List> of relative paths to files. Paths B<must be> specified with -unix convetions. +unix conventions. =item directory A I<List> of relative paths to directories. Paths B<must be> specified -with unix convetions. +with unix conventions. [ Note: previous editions of the spec had C<dir> instead of C<directory> ] @@ -566,7 +566,7 @@ This entry is required and has the same structure as that of the C<L</prereqs>> key. It provides a list of package requirements that must be satisfied for the feature to be supported or enabled. -There is one crucial restriction: the preqreqs of an optional feature +There is one crucial restriction: the prereqs of an optional feature B<must not> include C<configure> phase prereqs. =back diff --git a/cpan/CPAN-Meta/lib/CPAN/Meta/Validator.pm b/cpan/CPAN-Meta/lib/CPAN/Meta/Validator.pm index 4b811e45bf..4c70ee1f79 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.113640'; # VERSION +our $VERSION = '2.120351'; # VERSION #--------------------------------------------------------------------------# @@ -838,7 +838,7 @@ CPAN::Meta::Validator - validate CPAN distribution metadata structures =head1 VERSION -version 2.113640 +version 2.120351 =head1 SYNOPSIS |