Hello community,
here is the log from the commit of package perl-Parse-CPAN-Meta for
openSUSE:Factory checked in at 2014-03-11 08:00:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Parse-CPAN-Meta (Old)
and /work/SRC/openSUSE:Factory/.perl-Parse-CPAN-Meta.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Parse-CPAN-Meta"
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-Parse-CPAN-Meta/perl-Parse-CPAN-Meta.changes
2013-10-06 14:31:44.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.perl-Parse-CPAN-Meta.new/perl-Parse-CPAN-Meta.changes
2014-03-11 08:00:18.000000000 +0100
@@ -1,0 +2,35 @@
+Mon Mar 10 06:08:34 UTC 2014 - [email protected]
+
+- updated to 1.4414
+ [ADDED]
+
+ - Added load_string, which uses heuristics to guess YAML/JSON content
+
+ [CHANGED]
+
+ - load_file will now attempt to detect YAML/JSON content if the suffix
+ is not .json, .yml or .yaml
+
+ 1.4413 2014-02-17 20:04:23-05:00 America/New_York
+
+ [FIXED]
+
+ - UTF-8 decoding is done differently to avoid requiring
+ a newer version of Encode (Graham Knop)
+
+ 1.4412 2014-02-17 07:14:43-05:00 America/New_York
+
+ [FIXED]
+
+ - Added prerequisite on Encode 2.11 (Paul Howarth)
+
+ 1.4411 2014-02-16 23:06:00-05:00 America/New_York
+
+ [FIXED]
+
+ - Invalid UTF-8 encoding in YAML files are now replaced with "PERLQQ"
+ quoting from the Encode module and without warnings.
+
+ - Removed legacy test modifications for $ENV{PERL_CORE}
+
+-------------------------------------------------------------------
Old:
----
Parse-CPAN-Meta-1.4409.tar.gz
New:
----
Parse-CPAN-Meta-1.4414.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Parse-CPAN-Meta.spec ++++++
--- /var/tmp/diff_new_pack.6U6nRk/_old 2014-03-11 08:00:18.000000000 +0100
+++ /var/tmp/diff_new_pack.6U6nRk/_new 2014-03-11 08:00:18.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package perl-Parse-CPAN-Meta
#
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: perl-Parse-CPAN-Meta
-Version: 1.4409
+Version: 1.4414
Release: 0
%define cpan_name Parse-CPAN-Meta
Summary: Parse META.yml and META.json CPAN metadata files
@@ -29,13 +29,10 @@
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
-BuildRequires: perl(CPAN::Meta::YAML) >= 0.008
+BuildRequires: perl(CPAN::Meta::YAML) >= 0.011
BuildRequires: perl(JSON::PP) >= 2.27200
-#BuildRequires: perl(Parse::CPAN::Meta)
-#BuildRequires: perl(Parse::CPAN::Meta::Test)
-#BuildRequires: perl(Pod::Wordlist)
-#BuildRequires: perl(Test::Spelling) >= 0.12
-Requires: perl(CPAN::Meta::YAML) >= 0.008
+BuildRequires: perl(version)
+Requires: perl(CPAN::Meta::YAML) >= 0.011
Requires: perl(JSON::PP) >= 2.27200
%{perl_requires}
++++++ Parse-CPAN-Meta-1.4409.tar.gz -> Parse-CPAN-Meta-1.4414.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Parse-CPAN-Meta-1.4409/Changes
new/Parse-CPAN-Meta-1.4414/Changes
--- old/Parse-CPAN-Meta-1.4409/Changes 2013-09-23 19:17:22.000000000 +0200
+++ new/Parse-CPAN-Meta-1.4414/Changes 2014-03-04 21:22:05.000000000 +0100
@@ -1,5 +1,50 @@
Changes for Perl programming language extension Parse-CPAN-Meta
+1.4414 2014-03-04 15:22:00-05:00 America/New_York
+
+ [ADDED]
+
+ - Added load_string, which uses heuristics to guess YAML/JSON content
+
+ [CHANGED]
+
+ - load_file will now attempt to detect YAML/JSON content if the suffix
+ is not .json, .yml or .yaml
+
+1.4413 2014-02-17 20:04:23-05:00 America/New_York
+
+ [FIXED]
+
+ - UTF-8 decoding is done differently to avoid requiring
+ a newer version of Encode (Graham Knop)
+
+1.4412 2014-02-17 07:14:43-05:00 America/New_York
+
+ [FIXED]
+
+ - Added prerequisite on Encode 2.11 (Paul Howarth)
+
+1.4411 2014-02-16 23:06:00-05:00 America/New_York
+
+ [FIXED]
+
+ - Invalid UTF-8 encoding in YAML files are now replaced with "PERLQQ"
+ quoting from the Encode module and without warnings.
+
+ - Removed legacy test modifications for $ENV{PERL_CORE}
+
+1.4410 2014-02-16 00:47:48-05:00 America/New_York
+
+ [INCOMPATIBLE CHANGES]
+
+ - Dropped support for Perl's before v5.8.1 to ensure proper
+ UTF-8 and IO layer support
+
+ [CHANGED]
+
+ - Updated CPAN::Meta::YAML prereq to 0.011 due to deprecation
+ of 'errstr' and consistent use of exceptions
+
1.4409 2013-09-23 13:17:18 America/New_York
[FIXED]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Parse-CPAN-Meta-1.4409/LICENSE
new/Parse-CPAN-Meta-1.4414/LICENSE
--- old/Parse-CPAN-Meta-1.4409/LICENSE 2013-09-23 19:17:22.000000000 +0200
+++ new/Parse-CPAN-Meta-1.4414/LICENSE 2014-03-04 21:22:05.000000000 +0100
@@ -1,4 +1,4 @@
-This software is copyright (c) 2013 by Adam Kennedy and Contributors.
+This software is copyright (c) 2014 by Adam Kennedy and Contributors.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
@@ -12,7 +12,7 @@
--- The GNU General Public License, Version 1, February 1989 ---
-This software is Copyright (c) 2013 by Adam Kennedy and Contributors.
+This software is Copyright (c) 2014 by Adam Kennedy and Contributors.
This is free software, licensed under:
@@ -272,7 +272,7 @@
--- The Artistic License 1.0 ---
-This software is Copyright (c) 2013 by Adam Kennedy and Contributors.
+This software is Copyright (c) 2014 by Adam Kennedy and Contributors.
This is free software, licensed under:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Parse-CPAN-Meta-1.4409/MANIFEST
new/Parse-CPAN-Meta-1.4414/MANIFEST
--- old/Parse-CPAN-Meta-1.4409/MANIFEST 2013-09-23 19:17:22.000000000 +0200
+++ new/Parse-CPAN-Meta-1.4414/MANIFEST 2014-03-04 21:22:05.000000000 +0100
@@ -1,3 +1,4 @@
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest
v5.013.
CONTRIBUTING
Changes
LICENSE
@@ -10,15 +11,19 @@
dist.ini
lib/Parse/CPAN/Meta.pm
perlcritic.rc
-t/00-compile.t
t/00-report-prereqs.t
t/02_api.t
t/03_functions.t
t/04_export.t
t/05_errors.t
+t/data/BadMETA.yml
t/data/META-VR.json
t/data/META-VR.yml
+t/data/bareyaml.meta
+t/data/json.meta
+t/data/yaml.meta
t/lib/Parse/CPAN/Meta/Test.pm
+xt/author/00-compile.t
xt/author/critic.t
xt/author/pod-spell.t
xt/release/distmeta.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Parse-CPAN-Meta-1.4409/META.json
new/Parse-CPAN-Meta-1.4414/META.json
--- old/Parse-CPAN-Meta-1.4409/META.json 2013-09-23 19:17:22.000000000
+0200
+++ new/Parse-CPAN-Meta-1.4414/META.json 2014-03-04 21:22:05.000000000
+0100
@@ -5,7 +5,7 @@
"David Golden <[email protected]>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 4.300039, CPAN::Meta::Converter
version 2.132660",
+ "generated_by" : "Dist::Zilla version 5.013, CPAN::Meta::Converter version
2.133380",
"license" : [
"perl_5"
],
@@ -33,34 +33,50 @@
},
"develop" : {
"requires" : {
+ "Dist::Zilla" : "5.013",
+ "Dist::Zilla::Plugin::DualLife" : "0",
+ "Dist::Zilla::Plugin::Encoding" : "0",
+ "Dist::Zilla::Plugin::MakeMaker" : "0",
+ "Dist::Zilla::Plugin::MakeMaker::Highlander" : "0.003",
+ "Dist::Zilla::Plugin::Prereqs" : "0",
+ "Dist::Zilla::PluginBundle::DAGOLDEN" : "0.053",
+ "File::Spec" : "0",
+ "File::Temp" : "0",
+ "IO::Handle" : "0",
+ "IPC::Open3" : "0",
"Pod::Coverage::TrustPod" : "0",
"Test::CPAN::Meta" : "0",
+ "Test::More" : "0",
"Test::Pod" : "1.41",
"Test::Pod::Coverage" : "1.08"
}
},
"runtime" : {
"requires" : {
- "CPAN::Meta::YAML" : "0.008",
+ "CPAN::Meta::YAML" : "0.011",
"Carp" : "0",
+ "Encode" : "0",
"Exporter" : "0",
"File::Spec" : "0.80",
"JSON::PP" : "2.27200",
- "perl" : "5.006",
+ "perl" : "5.008001",
"strict" : "0"
}
},
"test" : {
+ "recommends" : {
+ "CPAN::Meta" : "0",
+ "CPAN::Meta::Requirements" : "2.120900"
+ },
"requires" : {
"ExtUtils::MakeMaker" : "0",
- "File::Spec" : "0",
+ "File::Spec" : "0.80",
"File::Spec::Functions" : "0",
- "File::Temp" : "0",
- "IO::Handle" : "0",
- "IPC::Open3" : "0",
"List::Util" : "0",
"Test::More" : "0.47",
+ "lib" : "0",
"vars" : "0",
+ "version" : "0",
"warnings" : "0"
}
}
@@ -68,7 +84,7 @@
"provides" : {
"Parse::CPAN::Meta" : {
"file" : "lib/Parse/CPAN/Meta.pm",
- "version" : "1.4409"
+ "version" : "1.4414"
}
},
"release_status" : "stable",
@@ -83,9 +99,10 @@
"web" : "https://github.com/Perl-Toolchain-Gang/Parse-CPAN-Meta"
}
},
- "version" : "1.4409",
+ "version" : "1.4414",
"x_authority" : "cpan:ADAMK",
"x_contributors" : [
+ "Graham Knop <[email protected]>",
"Joshua ben Jore <[email protected]>",
"Neil Bowers <[email protected]>",
"Ricardo Signes <[email protected]>",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Parse-CPAN-Meta-1.4409/META.yml
new/Parse-CPAN-Meta-1.4414/META.yml
--- old/Parse-CPAN-Meta-1.4409/META.yml 2013-09-23 19:17:22.000000000 +0200
+++ new/Parse-CPAN-Meta-1.4414/META.yml 2014-03-04 21:22:05.000000000 +0100
@@ -4,24 +4,23 @@
- 'Adam Kennedy <[email protected]>'
- 'David Golden <[email protected]>'
build_requires:
- ExtUtils::MakeMaker: 0
- File::Spec: 0
- File::Spec::Functions: 0
- File::Temp: 0
- IO::Handle: 0
- IPC::Open3: 0
- List::Util: 0
- Test::More: 0.47
- vars: 0
- warnings: 0
+ ExtUtils::MakeMaker: '0'
+ File::Spec: '0.80'
+ File::Spec::Functions: '0'
+ List::Util: '0'
+ Test::More: '0.47'
+ lib: '0'
+ vars: '0'
+ version: '0'
+ warnings: '0'
configure_requires:
- ExtUtils::MakeMaker: 6.30
+ ExtUtils::MakeMaker: '6.30'
dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.300039, CPAN::Meta::Converter version
2.132660'
+generated_by: 'Dist::Zilla version 5.013, CPAN::Meta::Converter version
2.133380'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
- version: 1.4
+ version: '1.4'
name: Parse-CPAN-Meta
no_index:
directory:
@@ -34,22 +33,24 @@
provides:
Parse::CPAN::Meta:
file: lib/Parse/CPAN/Meta.pm
- version: 1.4409
+ version: '1.4414'
requires:
- CPAN::Meta::YAML: 0.008
- Carp: 0
- Exporter: 0
- File::Spec: 0.80
- JSON::PP: 2.27200
- perl: 5.006
- strict: 0
+ CPAN::Meta::YAML: '0.011'
+ Carp: '0'
+ Encode: '0'
+ Exporter: '0'
+ File::Spec: '0.80'
+ JSON::PP: '2.27200'
+ perl: '5.008001'
+ strict: '0'
resources:
bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=Parse-CPAN-Meta
homepage: https://github.com/Perl-Toolchain-Gang/Parse-CPAN-Meta
repository: https://github.com/Perl-Toolchain-Gang/Parse-CPAN-Meta.git
-version: 1.4409
+version: '1.4414'
x_authority: cpan:ADAMK
x_contributors:
+ - 'Graham Knop <[email protected]>'
- 'Joshua ben Jore <[email protected]>'
- 'Neil Bowers <[email protected]>'
- 'Ricardo Signes <[email protected]>'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Parse-CPAN-Meta-1.4409/Makefile.PL
new/Parse-CPAN-Meta-1.4414/Makefile.PL
--- old/Parse-CPAN-Meta-1.4409/Makefile.PL 2013-09-23 19:17:22.000000000
+0200
+++ new/Parse-CPAN-Meta-1.4414/Makefile.PL 2014-03-04 21:22:05.000000000
+0100
@@ -1,8 +1,9 @@
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker
v5.013.
use strict;
use warnings;
-use 5.006;
+use 5.008001;
use ExtUtils::MakeMaker 6.30;
@@ -20,8 +21,9 @@
"LICENSE" => "perl",
"NAME" => "Parse::CPAN::Meta",
"PREREQ_PM" => {
- "CPAN::Meta::YAML" => "0.008",
+ "CPAN::Meta::YAML" => "0.011",
"Carp" => 0,
+ "Encode" => 0,
"Exporter" => 0,
"File::Spec" => "0.80",
"JSON::PP" => "2.27200",
@@ -29,47 +31,45 @@
},
"TEST_REQUIRES" => {
"ExtUtils::MakeMaker" => 0,
- "File::Spec" => 0,
+ "File::Spec" => "0.80",
"File::Spec::Functions" => 0,
- "File::Temp" => 0,
- "IO::Handle" => 0,
- "IPC::Open3" => 0,
"List::Util" => 0,
"Test::More" => "0.47",
+ "lib" => 0,
"vars" => 0,
+ "version" => 0,
"warnings" => 0
},
- "VERSION" => "1.4409",
+ "VERSION" => "1.4414",
"test" => {
"TESTS" => "t/*.t"
}
);
-unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
- my $tr = delete $WriteMakefileArgs{TEST_REQUIRES};
- my $br = $WriteMakefileArgs{BUILD_REQUIRES};
- for my $mod ( keys %$tr ) {
- if ( exists $br->{$mod} ) {
- $br->{$mod} = $tr->{$mod} if $tr->{$mod} > $br->{$mod};
- }
- else {
- $br->{$mod} = $tr->{$mod};
- }
- }
-}
+my %FallbackPrereqs = (
+ "CPAN::Meta::YAML" => "0.011",
+ "Carp" => 0,
+ "Encode" => 0,
+ "Exporter" => 0,
+ "ExtUtils::MakeMaker" => 0,
+ "File::Spec" => "0.80",
+ "File::Spec::Functions" => 0,
+ "JSON::PP" => "2.27200",
+ "List::Util" => 0,
+ "Test::More" => "0.47",
+ "lib" => 0,
+ "strict" => 0,
+ "vars" => 0,
+ "version" => 0,
+ "warnings" => 0
+);
-unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
- my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
- my $pp = $WriteMakefileArgs{PREREQ_PM};
- for my $mod ( keys %$br ) {
- if ( exists $pp->{$mod} ) {
- $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod};
- }
- else {
- $pp->{$mod} = $br->{$mod};
- }
- }
+
+unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
+ delete $WriteMakefileArgs{TEST_REQUIRES};
+ delete $WriteMakefileArgs{BUILD_REQUIRES};
+ $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}
delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Parse-CPAN-Meta-1.4409/README
new/Parse-CPAN-Meta-1.4414/README
--- old/Parse-CPAN-Meta-1.4409/README 2013-09-23 19:17:22.000000000 +0200
+++ new/Parse-CPAN-Meta-1.4414/README 2014-03-04 21:22:05.000000000 +0100
@@ -2,7 +2,7 @@
Parse::CPAN::Meta - Parse META.yml and META.json CPAN metadata files
VERSION
- version 1.4409
+ version 1.4414
SYNOPSIS
#############################################
@@ -52,8 +52,7 @@
This method will read the named file and deserialize it to a data
structure, determining whether it should be JSON or YAML based on the
- filename. On Perl 5.8.1 or later, the file will be read using the
- ":utf8" IO layer.
+ filename. The file will be read using the ":utf8" IO layer.
load_yaml_string
my $metadata_structure =
Parse::CPAN::Meta->load_yaml_string($yaml_string);
@@ -70,6 +69,13 @@
source was UTF-8 encoded, the string must be decoded before calling
"load_json_string".
+ load_string
+ my $metadata_structure = Parse::CPAN::Meta->load_string($some_string);
+
+ If you don't know whether a string contains YAML or JSON data, this
+ method will use some heuristics and guess. If it can't tell, it assumes
+ YAML.
+
yaml_backend
my $backend = Parse::CPAN::Meta->yaml_backend;
@@ -85,9 +91,9 @@
"ENVIRONMENT" for details.
FUNCTIONS
- For maintenance clarity, no functions are exported. These functions are
- available for backwards compatibility only and are best avoided in favor
- of "load_file".
+ For maintenance clarity, no functions are exported by default. These
+ functions are available for backwards compatibility only and are best
+ avoided in favor of "load_file".
Load
my @yaml = Parse::CPAN::Meta::Load( $string );
@@ -135,6 +141,8 @@
* David Golden <[email protected]>
CONTRIBUTORS
+ * Graham Knop <[email protected]>
+
* Joshua ben Jore <[email protected]>
* Neil Bowers <[email protected]>
@@ -144,7 +152,7 @@
* Steffen Mueller <[email protected]>
COPYRIGHT AND LICENSE
- This software is copyright (c) 2013 by Adam Kennedy and Contributors.
+ This software is copyright (c) 2014 by Adam Kennedy and Contributors.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Parse-CPAN-Meta-1.4409/cpanfile
new/Parse-CPAN-Meta-1.4414/cpanfile
--- old/Parse-CPAN-Meta-1.4409/cpanfile 2013-09-23 19:17:22.000000000 +0200
+++ new/Parse-CPAN-Meta-1.4414/cpanfile 2014-03-04 21:22:05.000000000 +0100
@@ -1,31 +1,48 @@
-requires "CPAN::Meta::YAML" => "0.008";
+requires "CPAN::Meta::YAML" => "0.011";
requires "Carp" => "0";
+requires "Encode" => "0";
requires "Exporter" => "0";
requires "File::Spec" => "0.80";
requires "JSON::PP" => "2.27200";
-requires "perl" => "5.006";
+requires "perl" => "5.008001";
requires "strict" => "0";
on 'test' => sub {
requires "ExtUtils::MakeMaker" => "0";
- requires "File::Spec" => "0";
+ requires "File::Spec" => "0.80";
requires "File::Spec::Functions" => "0";
- requires "File::Temp" => "0";
- requires "IO::Handle" => "0";
- requires "IPC::Open3" => "0";
requires "List::Util" => "0";
requires "Test::More" => "0.47";
+ requires "lib" => "0";
requires "vars" => "0";
+ requires "version" => "0";
requires "warnings" => "0";
};
+on 'test' => sub {
+ recommends "CPAN::Meta" => "0";
+ recommends "CPAN::Meta::Requirements" => "2.120900";
+};
+
on 'configure' => sub {
requires "ExtUtils::MakeMaker" => "6.30";
};
on 'develop' => sub {
+ requires "Dist::Zilla" => "5.013";
+ requires "Dist::Zilla::Plugin::DualLife" => "0";
+ requires "Dist::Zilla::Plugin::Encoding" => "0";
+ requires "Dist::Zilla::Plugin::MakeMaker" => "0";
+ requires "Dist::Zilla::Plugin::MakeMaker::Highlander" => "0.003";
+ requires "Dist::Zilla::Plugin::Prereqs" => "0";
+ requires "Dist::Zilla::PluginBundle::DAGOLDEN" => "0.053";
+ requires "File::Spec" => "0";
+ requires "File::Temp" => "0";
+ requires "IO::Handle" => "0";
+ requires "IPC::Open3" => "0";
requires "Pod::Coverage::TrustPod" => "0";
requires "Test::CPAN::Meta" => "0";
+ requires "Test::More" => "0";
requires "Test::Pod" => "1.41";
requires "Test::Pod::Coverage" => "1.08";
};
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Parse-CPAN-Meta-1.4409/dist.ini
new/Parse-CPAN-Meta-1.4414/dist.ini
--- old/Parse-CPAN-Meta-1.4409/dist.ini 2013-09-23 19:17:22.000000000 +0200
+++ new/Parse-CPAN-Meta-1.4414/dist.ini 2014-03-04 21:22:05.000000000 +0100
@@ -4,8 +4,12 @@
license = Perl_5
copyright_holder = Adam Kennedy and Contributors
+[Encoding]
+encoding = Latin-1
+filename = t/data/BadMETA.yml
+
[Prereqs]
-CPAN::Meta::YAML = 0.008
+CPAN::Meta::YAML = 0.011
File::Spec = 0.80
JSON::PP = 2.27200
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Parse-CPAN-Meta-1.4409/lib/Parse/CPAN/Meta.pm
new/Parse-CPAN-Meta-1.4414/lib/Parse/CPAN/Meta.pm
--- old/Parse-CPAN-Meta-1.4409/lib/Parse/CPAN/Meta.pm 2013-09-23
19:17:22.000000000 +0200
+++ new/Parse-CPAN-Meta-1.4414/lib/Parse/CPAN/Meta.pm 2014-03-04
21:22:05.000000000 +0100
@@ -1,62 +1,63 @@
+use 5.008001;
use strict;
package Parse::CPAN::Meta;
# ABSTRACT: Parse META.yml and META.json CPAN metadata files
-our $VERSION = '1.4409'; # VERSION
+our $VERSION = '1.4414'; # VERSION
+use Exporter;
use Carp 'croak';
-# UTF Support?
-sub HAVE_UTF8 () { $] >= 5.007003 }
-sub IO_LAYER () { $] >= 5.008001 ? ":utf8" : "" }
-
-BEGIN {
- if ( HAVE_UTF8 ) {
- # The string eval helps hide this from Test::MinimumVersion
- eval "require utf8;";
- die "Failed to load UTF-8 support" if $@;
- }
-
- # Class structure
- require 5.004;
- require Exporter;
- @Parse::CPAN::Meta::ISA = qw{ Exporter };
- @Parse::CPAN::Meta::EXPORT_OK = qw{ Load LoadFile };
-}
+our @ISA = qw/Exporter/;
+our @EXPORT_OK = qw/Load LoadFile/;
sub load_file {
my ($class, $filename) = @_;
+ my $meta = _slurp($filename);
+
if ($filename =~ /\.ya?ml$/) {
- return $class->load_yaml_string(_slurp($filename));
+ return $class->load_yaml_string($meta);
}
-
- if ($filename =~ /\.json$/) {
- return $class->load_json_string(_slurp($filename));
+ elsif ($filename =~ /\.json$/) {
+ return $class->load_json_string($meta);
}
+ else {
+ $class->load_string($meta); # try to detect yaml/json
+ }
+}
- croak("file type cannot be determined by filename");
+sub load_string {
+ my ($class, $string) = @_;
+ if ( $string =~ /^---/ ) { # looks like YAML
+ return $class->load_yaml_string($string);
+ }
+ elsif ( $string =~ /^\s*\{/ ) { # looks like JSON
+ return $class->load_json_string($string);
+ }
+ else { # maybe doc-marker-free YAML
+ return $class->load_yaml_string($string);
+ }
}
sub load_yaml_string {
my ($class, $string) = @_;
my $backend = $class->yaml_backend();
my $data = eval { no strict 'refs'; &{"$backend\::Load"}($string) };
- if ( $@ ) {
- croak $backend->can('errstr') ? $backend->errstr : $@
- }
+ croak $@ if $@;
return $data || {}; # in case document was valid but empty
}
sub load_json_string {
my ($class, $string) = @_;
- return $class->json_backend()->new->decode($string);
+ my $data = eval { $class->json_backend()->new->decode($string) };
+ croak $@ if $@;
+ return $data || {};
}
sub yaml_backend {
- local $Module::Load::Conditional::CHECK_INC_HASH = 1;
if (! defined $ENV{PERL_YAML_BACKEND} ) {
- _can_load( 'CPAN::Meta::YAML', 0.002 )
- or croak "CPAN::Meta::YAML 0.002 is not available\n";
+ _can_load( 'CPAN::Meta::YAML', 0.011 )
+ or croak "CPAN::Meta::YAML 0.011 is not available\n";
return "CPAN::Meta::YAML";
}
else {
@@ -70,7 +71,6 @@
}
sub json_backend {
- local $Module::Load::Conditional::CHECK_INC_HASH = 1;
if (! $ENV{PERL_JSON_BACKEND} or $ENV{PERL_JSON_BACKEND} eq 'JSON::PP') {
_can_load( 'JSON::PP' => 2.27103 )
or croak "JSON::PP 2.27103 is not available\n";
@@ -85,9 +85,12 @@
}
sub _slurp {
- open my $fh, "<" . IO_LAYER, "$_[0]"
+ require Encode;
+ open my $fh, "<:raw", "$_[0]" ## no critic
or die "can't open $_[0] for reading: $!";
- return do { local $/; <$fh> };
+ my $content = do { local $/; <$fh> };
+ $content = Encode::decode('UTF-8', $content, Encode::PERLQQ());
+ return $content;
}
sub _can_load {
@@ -108,17 +111,14 @@
# Kept for backwards compatibility only
# Create an object from a file
sub LoadFile ($) {
- require CPAN::Meta::YAML;
- my $object = CPAN::Meta::YAML::LoadFile(shift)
- or die CPAN::Meta::YAML->errstr;
- return $object;
+ return Load(_slurp(shift));
}
# Parse a document from a string.
sub Load ($) {
require CPAN::Meta::YAML;
- my $object = CPAN::Meta::YAML::Load(shift)
- or die CPAN::Meta::YAML->errstr;
+ my $object = eval { CPAN::Meta::YAML::Load(shift) };
+ croak $@ if $@;
return $object;
}
@@ -128,7 +128,7 @@
=pod
-=encoding utf-8
+=encoding UTF-8
=head1 NAME
@@ -136,7 +136,7 @@
=head1 VERSION
-version 1.4409
+version 1.4414
=head1 SYNOPSIS
@@ -180,7 +180,12 @@
Note that META files are expected to be in UTF-8 encoding, only. When
converted string data, it must first be decoded from UTF-8.
-=for Pod::Coverage HAVE_UTF8 IO_LAYER
+=begin Pod::Coverage
+
+
+
+
+=end Pod::Coverage
=head1 METHODS
@@ -191,8 +196,8 @@
my $metadata_structure = Parse::CPAN::Meta->load_file('META.yml');
This method will read the named file and deserialize it to a data structure,
-determining whether it should be JSON or YAML based on the filename. On
-Perl 5.8.1 or later, the file will be read using the ":utf8" IO layer.
+determining whether it should be JSON or YAML based on the filename.
+The file will be read using the ":utf8" IO layer.
=head2 load_yaml_string
@@ -211,6 +216,13 @@
If the source was UTF-8 encoded, the string must be decoded before calling
C<load_json_string>.
+=head2 load_string
+
+ my $metadata_structure = Parse::CPAN::Meta->load_string($some_string);
+
+If you don't know whether a string contains YAML or JSON data, this method
+will use some heuristics and guess. If it can't tell, it assumes YAML.
+
=head2 yaml_backend
my $backend = Parse::CPAN::Meta->yaml_backend;
@@ -229,8 +241,8 @@
=head1 FUNCTIONS
-For maintenance clarity, no functions are exported. These functions are
-available for backwards compatibility only and are best avoided in favor of
+For maintenance clarity, no functions are exported by default. These functions
+are available for backwards compatibility only and are best avoided in favor of
C<load_file>.
=head2 Load
@@ -303,6 +315,10 @@
=item *
+Graham Knop <[email protected]>
+
+=item *
+
Joshua ben Jore <[email protected]>
=item *
@@ -321,7 +337,7 @@
=head1 COPYRIGHT AND LICENSE
-This software is copyright (c) 2013 by Adam Kennedy and Contributors.
+This software is copyright (c) 2014 by Adam Kennedy and Contributors.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Parse-CPAN-Meta-1.4409/t/00-compile.t
new/Parse-CPAN-Meta-1.4414/t/00-compile.t
--- old/Parse-CPAN-Meta-1.4409/t/00-compile.t 2013-09-23 19:17:22.000000000
+0200
+++ new/Parse-CPAN-Meta-1.4414/t/00-compile.t 1970-01-01 01:00:00.000000000
+0100
@@ -1,49 +0,0 @@
-use strict;
-use warnings;
-
-# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.033
-
-use Test::More tests => 1 + ($ENV{AUTHOR_TESTING} ? 1 : 0);
-
-
-
-my @module_files = (
- 'Parse/CPAN/Meta.pm'
-);
-
-
-
-# fake home for cpan-testers
-use File::Temp;
-local $ENV{HOME} = File::Temp::tempdir( CLEANUP => 1 );
-
-
-use File::Spec;
-use IPC::Open3;
-use IO::Handle;
-
-my @warnings;
-for my $lib (@module_files)
-{
- # see L<perlfaq8/How can I capture STDERR from an external command?>
- open my $stdin, '<', File::Spec->devnull or die "can't open devnull: $!";
- my $stderr = IO::Handle->new;
-
- my $pid = open3($stdin, '>&STDERR', $stderr, $^X, '-Mblib', '-e', "require
q[$lib]");
- binmode $stderr, ':crlf' if $^O eq 'MSWin32';
- my @_warnings = <$stderr>;
- waitpid($pid, 0);
- is($? >> 8, 0, "$lib loaded ok");
-
- if (@_warnings)
- {
- warn @_warnings;
- push @warnings, @_warnings;
- }
-}
-
-
-
-is(scalar(@warnings), 0, 'no warnings found') if $ENV{AUTHOR_TESTING};
-
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Parse-CPAN-Meta-1.4409/t/00-report-prereqs.t
new/Parse-CPAN-Meta-1.4414/t/00-report-prereqs.t
--- old/Parse-CPAN-Meta-1.4409/t/00-report-prereqs.t 2013-09-23
19:17:22.000000000 +0200
+++ new/Parse-CPAN-Meta-1.4414/t/00-report-prereqs.t 2014-03-04
21:22:05.000000000 +0100
@@ -3,45 +3,136 @@
use strict;
use warnings;
+# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.013
+
use Test::More tests => 1;
use ExtUtils::MakeMaker;
use File::Spec::Functions;
use List::Util qw/max/;
+use version;
+
+# hide optional CPAN::Meta modules from prereq scanner
+# and check if they are available
+my $cpan_meta = "CPAN::Meta";
+my $cpan_meta_req = "CPAN::Meta::Requirements";
+my $HAS_CPAN_META = eval "require $cpan_meta"; ## no critic
+my $HAS_CPAN_META_REQ = eval "require $cpan_meta_req;
$cpan_meta_req->VERSION('2.120900')";
+
+# Verify requirements?
+my $DO_VERIFY_PREREQS = 1;
+
+sub _merge_requires {
+ my ($collector, $prereqs) = @_;
+ for my $phase ( qw/configure build test runtime develop/ ) {
+ next unless exists $prereqs->{$phase};
+ if ( my $req = $prereqs->{$phase}{'requires'} ) {
+ my $cmr = CPAN::Meta::Requirements->from_string_hash( $req );
+ $collector->add_requirements( $cmr );
+ }
+ }
+}
+
+my %include = map {; $_ => 1 } qw(
-my @modules = qw(
- CPAN::Meta::YAML
- Carp
- Exporter
- ExtUtils::MakeMaker
- File::Spec
- File::Spec::Functions
- File::Temp
- IO::Handle
- IPC::Open3
- JSON::PP
- List::Util
- Test::More
- perl
- strict
- vars
- warnings
);
-# replace modules with dynamic results from MYMETA.json if we can
-# (hide CPAN::Meta from prereq scanner)
-my $cpan_meta = "CPAN::Meta";
-if ( -f "MYMETA.json" && eval "require $cpan_meta" ) { ## no critic
- if ( my $meta = eval { CPAN::Meta->load_file("MYMETA.json") } ) {
- my $prereqs = $meta->prereqs;
- delete $prereqs->{develop};
- my %uniq = map {$_ => 1} map { keys %$_ } map { values %$_ } values
%$prereqs;
- $uniq{$_} = 1 for @modules; # don't lose any static ones
- @modules = sort keys %uniq;
+my %exclude = map {; $_ => 1 } qw(
+
+);
+
+# Add static prereqs to the included modules list
+my $static_prereqs = do { my $x = {
+ 'configure' => {
+ 'requires' => {
+ 'ExtUtils::MakeMaker' => '6.30'
+ }
+ },
+ 'develop' => {
+ 'requires' => {
+ 'Dist::Zilla' => '5.013',
+ 'Dist::Zilla::Plugin::DualLife' => '0',
+ 'Dist::Zilla::Plugin::Encoding' => '0',
+ 'Dist::Zilla::Plugin::MakeMaker' => '0',
+
'Dist::Zilla::Plugin::MakeMaker::Highlander' => '0.003',
+ 'Dist::Zilla::Plugin::Prereqs' => '0',
+ 'Dist::Zilla::PluginBundle::DAGOLDEN' =>
'0.053',
+ 'File::Spec' => '0',
+ 'File::Temp' => '0',
+ 'IO::Handle' => '0',
+ 'IPC::Open3' => '0',
+ 'Pod::Coverage::TrustPod' => '0',
+ 'Test::CPAN::Meta' => '0',
+ 'Test::More' => '0',
+ 'Test::Pod' => '1.41',
+ 'Test::Pod::Coverage' => '1.08'
+ }
+ },
+ 'runtime' => {
+ 'requires' => {
+ 'CPAN::Meta::YAML' => '0.011',
+ 'Carp' => '0',
+ 'Encode' => '0',
+ 'Exporter' => '0',
+ 'File::Spec' => '0.80',
+ 'JSON::PP' => '2.27200',
+ 'perl' => '5.008001',
+ 'strict' => '0'
+ }
+ },
+ 'test' => {
+ 'recommends' => {
+ 'CPAN::Meta' => '0',
+ 'CPAN::Meta::Requirements' => '2.120900'
+ },
+ 'requires' => {
+ 'ExtUtils::MakeMaker' => '0',
+ 'File::Spec' => '0.80',
+ 'File::Spec::Functions' => '0',
+ 'List::Util' => '0',
+ 'Test::More' => '0.47',
+ 'lib' => '0',
+ 'vars' => '0',
+ 'version' => '0',
+ 'warnings' => '0'
+ }
+ }
+ };
+ $x;
+ };
+
+delete $static_prereqs->{develop} if not $ENV{AUTHOR_TESTING};
+$include{$_} = 1 for map { keys %$_ } map { values %$_ } values
%$static_prereqs;
+
+# Merge requirements for major phases (if we can)
+my $all_requires;
+if ( $DO_VERIFY_PREREQS && $HAS_CPAN_META_REQ ) {
+ $all_requires = $cpan_meta_req->new;
+ _merge_requires($all_requires, $static_prereqs);
+}
+
+
+# Add dynamic prereqs to the included modules list (if we can)
+my ($source) = grep { -f } 'MYMETA.json', 'MYMETA.yml';
+if ( $source && $HAS_CPAN_META ) {
+ if ( my $meta = eval { CPAN::Meta->load_file($source) } ) {
+ my $dynamic_prereqs = $meta->prereqs;
+ delete $dynamic_prereqs->{develop} if not $ENV{AUTHOR_TESTING};
+ $include{$_} = 1 for map { keys %$_ } map { values %$_ } values
%$dynamic_prereqs;
+
+ if ( $DO_VERIFY_PREREQS && $HAS_CPAN_META_REQ ) {
+ _merge_requires($all_requires, $dynamic_prereqs);
+ }
}
}
+else {
+ $source = 'static metadata';
+}
+my @modules = sort grep { ! $exclude{$_} } keys %include;
my @reports = [qw/Version Module/];
+my @dep_errors;
+my $req_hash = defined($all_requires) ? $all_requires->as_string_hash : {};
for my $mod ( @modules ) {
next if $mod eq 'perl';
@@ -53,9 +144,29 @@
my $ver = MM->parse_version( catfile($prefix, $file) );
$ver = "undef" unless defined $ver; # Newer MM should do this anyway
push @reports, [$ver, $mod];
+
+ if ( $DO_VERIFY_PREREQS && $all_requires ) {
+ my $req = $req_hash->{$mod};
+ if ( defined $req && length $req ) {
+ if ( ! defined eval { version->parse($ver) } ) {
+ push @dep_errors, "$mod version '$ver' cannot be parsed (version
'$req' required)";
+ }
+ elsif ( ! $all_requires->accepts_module( $mod => $ver ) ) {
+ push @dep_errors, "$mod version '$ver' is not in required range
'$req'";
+ }
+ }
+ }
+
}
else {
push @reports, ["missing", $mod];
+
+ if ( $DO_VERIFY_PREREQS && $all_requires ) {
+ my $req = $req_hash->{$mod};
+ if ( defined $req && length $req ) {
+ push @dep_errors, "$mod is not installed (version '$req' required)";
+ }
+ }
}
}
@@ -63,9 +174,19 @@
my $vl = max map { length $_->[0] } @reports;
my $ml = max map { length $_->[1] } @reports;
splice @reports, 1, 0, ["-" x $vl, "-" x $ml];
- diag "Prerequisite Report:\n", map {sprintf(" %*s
%*s\n",$vl,$_->[0],-$ml,$_->[1])} @reports;
+ diag "\nVersions for all modules listed in $source (including optional
ones):\n",
+ map {sprintf(" %*s %*s\n",$vl,$_->[0],-$ml,$_->[1])} @reports;
+}
+
+if ( @dep_errors ) {
+ diag join("\n",
+ "\n*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
***\n",
+ "The following REQUIRED prerequisites were not satisfied:\n",
+ @dep_errors,
+ "\n"
+ );
}
pass;
-# vim: ts=2 sts=2 sw=2 et:
+# vim: ts=4 sts=4 sw=4 et:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Parse-CPAN-Meta-1.4409/t/02_api.t
new/Parse-CPAN-Meta-1.4414/t/02_api.t
--- old/Parse-CPAN-Meta-1.4409/t/02_api.t 2013-09-23 19:17:22.000000000
+0200
+++ new/Parse-CPAN-Meta-1.4414/t/02_api.t 2014-03-04 21:22:05.000000000
+0100
@@ -5,22 +5,13 @@
# Testing of a known-bad file from an editor
-BEGIN {
- if( $ENV{PERL_CORE} ) {
- chdir 't';
- @INC = ('../lib', 'lib');
- }
- else {
- unshift @INC, 't/lib/';
- }
-}
-
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
+use lib 't/lib';
use File::Spec::Functions ':ALL';
use Parse::CPAN::Meta;
use Parse::CPAN::Meta::Test;
@@ -60,6 +51,9 @@
my $meta_json = catfile( test_data_directory(), 'META-VR.json' );
my $meta_yaml = catfile( test_data_directory(), 'META-VR.yml' );
+my $yaml_meta = catfile( test_data_directory(), 'yaml.meta' );
+my $json_meta = catfile( test_data_directory(), 'json.meta' );
+my $bare_yaml_meta = catfile( test_data_directory(), 'bareyaml.meta' );
### YAML tests
{
@@ -73,11 +67,35 @@
{
local $ENV{PERL_YAML_BACKEND}; # ensure we get CPAN::META::YAML
+ is(Parse::CPAN::Meta->yaml_backend(), 'CPAN::Meta::YAML', 'yaml_backend()');
+ my $from_yaml = Parse::CPAN::Meta->load_file( $yaml_meta );
+ is_deeply($from_yaml, $want, "load from YAML .meta file results in expected
data");
+}
+
+{
+ local $ENV{PERL_YAML_BACKEND}; # ensure we get CPAN::META::YAML
+
+ is(Parse::CPAN::Meta->yaml_backend(), 'CPAN::Meta::YAML', 'yaml_backend()');
+ my $from_yaml = Parse::CPAN::Meta->load_file( $bare_yaml_meta );
+ is_deeply($from_yaml, $want, "load from bare YAML .meta file results in
expected data");
+}
+
+{
+ local $ENV{PERL_YAML_BACKEND}; # ensure we get CPAN::META::YAML
+
my $yaml = load_ok( 'META-VR.yml', $meta_yaml, 100);
my $from_yaml = Parse::CPAN::Meta->load_yaml_string( $yaml );
is_deeply($from_yaml, $want, "load from YAML str results in expected data");
}
+{
+ local $ENV{PERL_YAML_BACKEND}; # ensure we get CPAN::META::YAML
+
+ my @yaml = Parse::CPAN::Meta::LoadFile( 't/data/BadMETA.yml' );
+ is($yaml[0]{author}[0], 'Olivier Mengu\xE9', "Bad UTF-8 is replaced");
+}
+
+
SKIP: {
skip "YAML module not installed", 2
unless eval "require YAML; 1";
@@ -100,6 +118,15 @@
}
{
+ # JSON tests with JSON::PP
+ local $ENV{PERL_JSON_BACKEND}; # ensure we get JSON::PP
+
+ is(Parse::CPAN::Meta->json_backend(), 'JSON::PP', 'json_backend()');
+ my $from_json = Parse::CPAN::Meta->load_file( $json_meta );
+ is_deeply($from_json, $want, "load from JSON .meta file results in expected
data");
+}
+
+{
# JSON tests with JSON::PP
local $ENV{PERL_JSON_BACKEND}; # ensure we get JSON::PP
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Parse-CPAN-Meta-1.4409/t/03_functions.t
new/Parse-CPAN-Meta-1.4414/t/03_functions.t
--- old/Parse-CPAN-Meta-1.4409/t/03_functions.t 2013-09-23 19:17:22.000000000
+0200
+++ new/Parse-CPAN-Meta-1.4414/t/03_functions.t 2014-03-04 21:22:05.000000000
+0100
@@ -5,16 +5,6 @@
# Testing of basic document structures
-BEGIN {
- if( $ENV{PERL_CORE} ) {
- chdir 't';
- @INC = ('../lib', 'lib');
- }
- else {
- unshift @INC, 't/lib/';
- }
-}
-
use strict;
BEGIN {
$| = 1;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Parse-CPAN-Meta-1.4409/t/04_export.t
new/Parse-CPAN-Meta-1.4414/t/04_export.t
--- old/Parse-CPAN-Meta-1.4409/t/04_export.t 2013-09-23 19:17:22.000000000
+0200
+++ new/Parse-CPAN-Meta-1.4414/t/04_export.t 2014-03-04 21:22:05.000000000
+0100
@@ -5,16 +5,6 @@
# Testing of basic document structures
-BEGIN {
- if( $ENV{PERL_CORE} ) {
- chdir 't';
- @INC = ('../lib', 'lib');
- }
- else {
- unshift @INC, 't/lib/';
- }
-}
-
use strict;
BEGIN {
$| = 1;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Parse-CPAN-Meta-1.4409/t/05_errors.t
new/Parse-CPAN-Meta-1.4414/t/05_errors.t
--- old/Parse-CPAN-Meta-1.4409/t/05_errors.t 2013-09-23 19:17:22.000000000
+0200
+++ new/Parse-CPAN-Meta-1.4414/t/05_errors.t 2014-03-04 21:22:05.000000000
+0100
@@ -5,16 +5,6 @@
# Testing of basic document structures
-BEGIN {
- if( $ENV{PERL_CORE} ) {
- chdir 't';
- @INC = ('../lib', 'lib');
- }
- else {
- unshift @INC, 't/lib/';
- }
-}
-
use strict;
BEGIN {
$| = 1;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Parse-CPAN-Meta-1.4409/t/data/BadMETA.yml
new/Parse-CPAN-Meta-1.4414/t/data/BadMETA.yml
--- old/Parse-CPAN-Meta-1.4409/t/data/BadMETA.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/Parse-CPAN-Meta-1.4414/t/data/BadMETA.yml 2014-03-04
21:22:05.000000000 +0100
@@ -0,0 +1,24 @@
+---
+abstract: ~
+author:
+ - 'Olivier Mengu�'
+build_requires:
+ ExtUtils::MakeMaker: 6.36
+configure_requires:
+ ExtUtils::MakeMaker: 6.36
+distribution_type: module
+dynamic_config: 1
+generated_by: 'Module::Install version 1.06'
+license: perl
+meta-spec:
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: 1.4
+name: Foo
+no_index:
+ directory:
+ - inc
+requires:
+ perl: 5.005
+resources:
+ license: http://dev.perl.org/licenses/
+version: 0.01
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Parse-CPAN-Meta-1.4409/t/data/bareyaml.meta
new/Parse-CPAN-Meta-1.4414/t/data/bareyaml.meta
--- old/Parse-CPAN-Meta-1.4409/t/data/bareyaml.meta 1970-01-01
01:00:00.000000000 +0100
+++ new/Parse-CPAN-Meta-1.4414/t/data/bareyaml.meta 2014-03-04
21:22:05.000000000 +0100
@@ -0,0 +1,21 @@
+abstract: 'a set of version requirements for a CPAN dist'
+author:
+ - 'Ricardo Signes <[email protected]>'
+build_requires:
+ Test::More: 0.88
+configure_requires:
+ ExtUtils::MakeMaker: 6.31
+generated_by: 'Dist::Zilla version 2.100991'
+license: perl
+meta-spec:
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: 1.4
+name: Version-Requirements
+recommends: {}
+requires:
+ Carp: 0
+ Scalar::Util: 0
+ version: 0.77
+resources:
+ repository: git://git.codesimply.com/Version-Requirements.git
+version: 0.101010
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Parse-CPAN-Meta-1.4409/t/data/json.meta
new/Parse-CPAN-Meta-1.4414/t/data/json.meta
--- old/Parse-CPAN-Meta-1.4409/t/data/json.meta 1970-01-01 01:00:00.000000000
+0100
+++ new/Parse-CPAN-Meta-1.4414/t/data/json.meta 2014-03-04 21:22:05.000000000
+0100
@@ -0,0 +1,30 @@
+{
+ "abstract" : "a set of version requirements for a CPAN dist",
+ "author" : [
+ "Ricardo Signes <[email protected]>"
+ ],
+ "build_requires" : {
+ "Test::More" : "0.88"
+ },
+ "configure_requires" : {
+ "ExtUtils::MakeMaker" : "6.31"
+ },
+ "generated_by" : "Dist::Zilla version 2.100991",
+ "license" : "perl",
+ "meta-spec" : {
+ "url" : "http://module-build.sourceforge.net/META-spec-v1.4.html",
+ "version" : 1.4
+ },
+ "name" : "Version-Requirements",
+ "recommends" : {},
+ "requires" : {
+ "Carp" : "0",
+ "Scalar::Util" : "0",
+ "version" : "0.77"
+ },
+ "resources" : {
+ "repository" : "git://git.codesimply.com/Version-Requirements.git"
+ },
+ "version" : "0.101010"
+}
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Parse-CPAN-Meta-1.4409/t/data/yaml.meta
new/Parse-CPAN-Meta-1.4414/t/data/yaml.meta
--- old/Parse-CPAN-Meta-1.4409/t/data/yaml.meta 1970-01-01 01:00:00.000000000
+0100
+++ new/Parse-CPAN-Meta-1.4414/t/data/yaml.meta 2014-03-04 21:22:05.000000000
+0100
@@ -0,0 +1,22 @@
+---
+abstract: 'a set of version requirements for a CPAN dist'
+author:
+ - 'Ricardo Signes <[email protected]>'
+build_requires:
+ Test::More: 0.88
+configure_requires:
+ ExtUtils::MakeMaker: 6.31
+generated_by: 'Dist::Zilla version 2.100991'
+license: perl
+meta-spec:
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: 1.4
+name: Version-Requirements
+recommends: {}
+requires:
+ Carp: 0
+ Scalar::Util: 0
+ version: 0.77
+resources:
+ repository: git://git.codesimply.com/Version-Requirements.git
+version: 0.101010
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Parse-CPAN-Meta-1.4409/t/lib/Parse/CPAN/Meta/Test.pm
new/Parse-CPAN-Meta-1.4414/t/lib/Parse/CPAN/Meta/Test.pm
--- old/Parse-CPAN-Meta-1.4409/t/lib/Parse/CPAN/Meta/Test.pm 2013-09-23
19:17:22.000000000 +0200
+++ new/Parse-CPAN-Meta-1.4414/t/lib/Parse/CPAN/Meta/Test.pm 2014-03-04
21:22:05.000000000 +0100
@@ -16,11 +16,7 @@
}
sub test_data_directory {
- return(
- $ENV{PERL_CORE}
- ? File::Spec->catdir(File::Spec->updir, qw(lib Parse CPAN Meta
t data))
- : File::Spec->catdir(qw(t data))
- );
+ return( File::Spec->catdir(qw(t data)) );
}
# 22 tests per call to yaml_ok
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Parse-CPAN-Meta-1.4409/xt/author/00-compile.t
new/Parse-CPAN-Meta-1.4414/xt/author/00-compile.t
--- old/Parse-CPAN-Meta-1.4409/xt/author/00-compile.t 1970-01-01
01:00:00.000000000 +0100
+++ new/Parse-CPAN-Meta-1.4414/xt/author/00-compile.t 2014-03-04
21:22:05.000000000 +0100
@@ -0,0 +1,53 @@
+use 5.006;
+use strict;
+use warnings;
+
+# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.039
+
+use Test::More tests => 1 + ($ENV{AUTHOR_TESTING} ? 1 : 0);
+
+
+
+my @module_files = (
+ 'Parse/CPAN/Meta.pm'
+);
+
+
+
+# fake home for cpan-testers
+use File::Temp;
+local $ENV{HOME} = File::Temp::tempdir( CLEANUP => 1 );
+
+
+my $inc_switch = -d 'blib' ? '-Mblib' : '-Ilib';
+
+use File::Spec;
+use IPC::Open3;
+use IO::Handle;
+
+open my $stdin, '<', File::Spec->devnull or die "can't open devnull: $!";
+
+my @warnings;
+for my $lib (@module_files)
+{
+ # see L<perlfaq8/How can I capture STDERR from an external command?>
+ my $stderr = IO::Handle->new;
+
+ my $pid = open3($stdin, '>&STDERR', $stderr, $^X, $inc_switch, '-e',
"require q[$lib]");
+ binmode $stderr, ':crlf' if $^O eq 'MSWin32';
+ my @_warnings = <$stderr>;
+ waitpid($pid, 0);
+ is($?, 0, "$lib loaded ok");
+
+ if (@_warnings)
+ {
+ warn @_warnings;
+ push @warnings, @_warnings;
+ }
+}
+
+
+
+is(scalar(@warnings), 0, 'no warnings found') if $ENV{AUTHOR_TESTING};
+
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Parse-CPAN-Meta-1.4409/xt/author/pod-spell.t
new/Parse-CPAN-Meta-1.4414/xt/author/pod-spell.t
--- old/Parse-CPAN-Meta-1.4409/xt/author/pod-spell.t 2013-09-23
19:17:22.000000000 +0200
+++ new/Parse-CPAN-Meta-1.4414/xt/author/pod-spell.t 2014-03-04
21:22:05.000000000 +0100
@@ -2,7 +2,7 @@
use warnings;
use Test::More;
-# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.006001
+# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.006006
use Test::Spelling 0.12;
use Pod::Wordlist;
@@ -27,6 +27,9 @@
dagolden
and
Contributors
+Graham
+Knop
+haarg
Joshua
ben
Jore
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Parse-CPAN-Meta-1.4409/xt/release/distmeta.t
new/Parse-CPAN-Meta-1.4414/xt/release/distmeta.t
--- old/Parse-CPAN-Meta-1.4409/xt/release/distmeta.t 2013-09-23
19:17:22.000000000 +0200
+++ new/Parse-CPAN-Meta-1.4414/xt/release/distmeta.t 2014-03-04
21:22:05.000000000 +0100
@@ -1,7 +1,6 @@
#!perl
+# This file was automatically generated by Dist::Zilla::Plugin::MetaTests.
-use Test::More;
+use Test::CPAN::Meta;
-eval "use Test::CPAN::Meta";
-plan skip_all => "Test::CPAN::Meta required for testing META.yml" if $@;
meta_yaml_ok();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Parse-CPAN-Meta-1.4409/xt/release/pod-coverage.t
new/Parse-CPAN-Meta-1.4414/xt/release/pod-coverage.t
--- old/Parse-CPAN-Meta-1.4409/xt/release/pod-coverage.t 2013-09-23
19:17:22.000000000 +0200
+++ new/Parse-CPAN-Meta-1.4414/xt/release/pod-coverage.t 2014-03-04
21:22:05.000000000 +0100
@@ -1,13 +1,7 @@
#!perl
+# This file was automatically generated by
Dist::Zilla::Plugin::PodCoverageTests.
-use Test::More;
-
-eval "use Test::Pod::Coverage 1.08";
-plan skip_all => "Test::Pod::Coverage 1.08 required for testing POD coverage"
- if $@;
-
-eval "use Pod::Coverage::TrustPod";
-plan skip_all => "Pod::Coverage::TrustPod required for testing POD coverage"
- if $@;
+use Test::Pod::Coverage 1.08;
+use Pod::Coverage::TrustPod;
all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' });
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Parse-CPAN-Meta-1.4409/xt/release/pod-syntax.t
new/Parse-CPAN-Meta-1.4414/xt/release/pod-syntax.t
--- old/Parse-CPAN-Meta-1.4409/xt/release/pod-syntax.t 2013-09-23
19:17:22.000000000 +0200
+++ new/Parse-CPAN-Meta-1.4414/xt/release/pod-syntax.t 2014-03-04
21:22:05.000000000 +0100
@@ -1,7 +1,6 @@
#!perl
+# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests.
use Test::More;
-
-eval "use Test::Pod 1.41";
-plan skip_all => "Test::Pod 1.41 required for testing POD" if $@;
+use Test::Pod 1.41;
all_pod_files_ok();
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]