summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris 'BinGOs' Williams <chris@bingosnet.co.uk>2013-06-06 00:39:00 +0100
committerChris 'BinGOs' Williams <chris@bingosnet.co.uk>2013-06-06 00:48:46 +0100
commitcfda751763e4837fd5ccf7943416ed034bad5181 (patch)
treec94ce8cca6411845fdd353d37d67f089659b7b77
parentc106f444cf492294557fcc9edf1b42782dd07ade (diff)
downloadperl-cfda751763e4837fd5ccf7943416ed034bad5181.tar.gz
Update CPAN-Meta to CPAN version 2.131560
[DELTA] 2.131560 2013-06-05 15:26:36 America/New_York [DOCUMENTATION] - Replaced CPAN::Meta SYNOPSIS with code that actually works
-rw-r--r--META.json2
-rw-r--r--META.yml2
-rwxr-xr-xPorting/Maintainers.pl2
-rw-r--r--cpan/CPAN-Meta/Changes6
-rw-r--r--cpan/CPAN-Meta/lib/CPAN/Meta.pm40
-rw-r--r--cpan/CPAN-Meta/lib/CPAN/Meta/Converter.pm4
-rw-r--r--cpan/CPAN-Meta/lib/CPAN/Meta/Feature.pm4
-rw-r--r--cpan/CPAN-Meta/lib/CPAN/Meta/History.pm4
-rw-r--r--cpan/CPAN-Meta/lib/CPAN/Meta/Prereqs.pm4
-rw-r--r--cpan/CPAN-Meta/lib/CPAN/Meta/Spec.pm4
-rw-r--r--cpan/CPAN-Meta/lib/CPAN/Meta/Validator.pm4
11 files changed, 48 insertions, 28 deletions
diff --git a/META.json b/META.json
index e2a7bd6e62..a3b70e70dd 100644
--- a/META.json
+++ b/META.json
@@ -4,7 +4,7 @@
"perl5-porters@perl.org"
],
"dynamic_config" : 1,
- "generated_by" : "CPAN::Meta version 2.131490",
+ "generated_by" : "CPAN::Meta version 2.131560",
"license" : [
"perl_5"
],
diff --git a/META.yml b/META.yml
index f66896cb7f..5af9033b52 100644
--- a/META.yml
+++ b/META.yml
@@ -4,7 +4,7 @@ author:
- perl5-porters@perl.org
build_requires: {}
dynamic_config: 1
-generated_by: 'CPAN::Meta version 2.131490, CPAN::Meta::Converter version 2.131490'
+generated_by: 'CPAN::Meta version 2.131560, CPAN::Meta::Converter version 2.131560'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
diff --git a/Porting/Maintainers.pl b/Porting/Maintainers.pl
index e2ff652145..2f94757bbd 100755
--- a/Porting/Maintainers.pl
+++ b/Porting/Maintainers.pl
@@ -448,7 +448,7 @@ use File::Glob qw(:case);
'CPAN::Meta' => {
'MAINTAINER' => 'dagolden',
- 'DISTRIBUTION' => 'DAGOLDEN/CPAN-Meta-2.131490.tar.gz',
+ 'DISTRIBUTION' => 'DAGOLDEN/CPAN-Meta-2.131560.tar.gz',
'FILES' => q[cpan/CPAN-Meta],
'EXCLUDED' => [
qw(t/00-compile.t),
diff --git a/cpan/CPAN-Meta/Changes b/cpan/CPAN-Meta/Changes
index 82c15c7a75..3d3e819dac 100644
--- a/cpan/CPAN-Meta/Changes
+++ b/cpan/CPAN-Meta/Changes
@@ -1,5 +1,11 @@
Revision history for CPAN-Meta
+2.131560 2013-06-05 15:26:36 America/New_York
+
+ [DOCUMENTATION]
+
+ - Replaced CPAN::Meta SYNOPSIS with code that actually works
+
2.131490 2013-05-29 14:15:16 America/New_York
[BUGFIX]
diff --git a/cpan/CPAN-Meta/lib/CPAN/Meta.pm b/cpan/CPAN-Meta/lib/CPAN/Meta.pm
index b6d65db369..0d486cd954 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.131490'; # VERSION
+our $VERSION = '2.131560'; # VERSION
use Carp qw(carp croak);
@@ -348,25 +348,39 @@ CPAN::Meta - the distribution metadata for a CPAN dist
=head1 VERSION
-version 2.131490
+version 2.131560
=head1 SYNOPSIS
- my $meta = CPAN::Meta->load_file('META.json');
+ use v5.10;
+ use strict;
+ use warnings;
+ use CPAN::Meta;
+ use Module::Load;
- printf "testing requirements for %s version %s\n",
+ my $meta = CPAN::Meta->load_file('META.json');
+
+ printf "testing requirements for %s version %s\n",
$meta->name,
$meta->version;
- my $prereqs = $meta->requirements_for('configure');
-
- for my $module ($prereqs->required_modules) {
- my $version = get_local_version($module);
-
- die "missing required module $module" unless defined $version;
- die "version for $module not in range"
- unless $prereqs->accepts_module($module, $version);
- }
+ my $prereqs = $meta->effective_prereqs;
+
+ for my $phase ( qw/configure runtime build test/ ) {
+ say "Requirements for $phase:";
+ my $reqs = $prereqs->requirements_for($phase, "requires");
+ for my $module ( sort $reqs->required_modules ) {
+ my $status;
+ if ( eval { load $module unless $module eq 'perl'; 1 } ) {
+ my $version = $module eq 'perl' ? $] : $module->VERSION;
+ $status = $reqs->accepts_module($module, $version)
+ ? "$version ok" : "$version not ok";
+ } else {
+ $status = "missing"
+ };
+ say " $module ($status)";
+ }
+ }
=head1 DESCRIPTION
diff --git a/cpan/CPAN-Meta/lib/CPAN/Meta/Converter.pm b/cpan/CPAN-Meta/lib/CPAN/Meta/Converter.pm
index 9e4d4a1260..2004192cb1 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.131490'; # VERSION
+our $VERSION = '2.131560'; # VERSION
use CPAN::Meta::Validator;
@@ -1280,7 +1280,7 @@ CPAN::Meta::Converter - Convert CPAN distribution metadata structures
=head1 VERSION
-version 2.131490
+version 2.131560
=head1 SYNOPSIS
diff --git a/cpan/CPAN-Meta/lib/CPAN/Meta/Feature.pm b/cpan/CPAN-Meta/lib/CPAN/Meta/Feature.pm
index e87e4f6c6f..6122d34ff4 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.131490'; # VERSION
+our $VERSION = '2.131560'; # VERSION
use CPAN::Meta::Prereqs;
@@ -44,7 +44,7 @@ CPAN::Meta::Feature - an optional feature provided by a CPAN distribution
=head1 VERSION
-version 2.131490
+version 2.131560
=head1 DESCRIPTION
diff --git a/cpan/CPAN-Meta/lib/CPAN/Meta/History.pm b/cpan/CPAN-Meta/lib/CPAN/Meta/History.pm
index 8000e83607..6f54db43d5 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.131490'; # VERSION
+our $VERSION = '2.131560'; # VERSION
1;
@@ -21,7 +21,7 @@ CPAN::Meta::History - history of CPAN Meta Spec changes
=head1 VERSION
-version 2.131490
+version 2.131560
=head1 DESCRIPTION
diff --git a/cpan/CPAN-Meta/lib/CPAN/Meta/Prereqs.pm b/cpan/CPAN-Meta/lib/CPAN/Meta/Prereqs.pm
index 65909587f3..d4f1777064 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.131490'; # VERSION
+our $VERSION = '2.131560'; # 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.131490
+version 2.131560
=head1 DESCRIPTION
diff --git a/cpan/CPAN-Meta/lib/CPAN/Meta/Spec.pm b/cpan/CPAN-Meta/lib/CPAN/Meta/Spec.pm
index 35d045a0fd..17a27aa4d7 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.131490'; # VERSION
+our $VERSION = '2.131560'; # VERSION
1;
@@ -21,7 +21,7 @@ CPAN::Meta::Spec - specification for CPAN distribution metadata
=head1 VERSION
-version 2.131490
+version 2.131560
=head1 SYNOPSIS
diff --git a/cpan/CPAN-Meta/lib/CPAN/Meta/Validator.pm b/cpan/CPAN-Meta/lib/CPAN/Meta/Validator.pm
index d5b502c6e1..79e3695e09 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.131490'; # VERSION
+our $VERSION = '2.131560'; # VERSION
#--------------------------------------------------------------------------#
@@ -840,7 +840,7 @@ CPAN::Meta::Validator - validate CPAN distribution metadata structures
=head1 VERSION
-version 2.131490
+version 2.131560
=head1 SYNOPSIS