@@ -1,62 +0,0 @@
-## HOW TO CONTRIBUTE
-
-Thank you for considering contributing to this distribution. This file
-contains instructions that will help you work with the source code.
-
-The distribution is managed with Dist::Zilla. This means than many of the
-usual files you might expect are not in the repository, but are generated
-at release time (e.g. Makefile.PL).
-
-### Getting dependencies
-
-See the included `cpanfile` file for a list of dependencies. If you have
-App::cpanminus 1.6 or later installed, you can use `cpanm` to satisfy
-dependencies like this:
-
- $ cpanm --installdeps .
-
-Otherwise, you can install Module::CPANfile 1.0002 or later and then satisfy
-dependencies with the regular `cpan` client and `cpanfile-dump`:
-
- $ cpan `cpanfile-dump`
-
-### Running tests
-
-You can run tests directly using the `prove` tool:
-
- $ prove -l
- $ prove -lv t/some_test_file.t
-
-For most distributions, `prove` is entirely sufficent for you to test any
-patches you have.
-
-### Patching documentation
-
-Likewise, much of the documentation Pod is generated at release time.
-Depending on the distribution, some documentation may be written in a Pod
-dialect called WikiDoc. (See Pod::WikiDoc on CPAN.)
-
-If you would like to submit a documentation edit, please limit yourself to the
-documentation you see.
-
-If you see typos or documentation issues in the generated docs, please
-email or open a bug ticket instead of patching.
-
-### Learning Dist::Zilla
-
-Dist::Zilla is a very powerful authoring tool, but requires a number of
-author-specific plugins. If you would like to use it for contributing,
-install it from CPAN, then run one of the following commands, depending on
-your CPAN client:
-
- $ cpan `dzil authordeps`
- $ dzil authordeps | cpanm
-
-Once installed, here are some dzil commands you might try:
-
- $ dzil build
- $ dzil test
- $ dzil xtest
-
-You can learn more about Dist::Zilla at http://dzil.org/
-
@@ -0,0 +1,100 @@
+## HOW TO CONTRIBUTE
+
+Thank you for considering contributing to this distribution. This file
+contains instructions that will help you work with the source code.
+
+The distribution is managed with Dist::Zilla. This means that many of the
+usual files you might expect are not in the repository, but are generated at
+release time, as is much of the documentation. Some generated files are
+kept in the repository as a convenience (e.g. Makefile.PL or cpanfile).
+
+Generally, **you do not need Dist::Zilla to contribute patches**. You do need
+Dist::Zilla to create a tarball. See below for guidance.
+
+### Getting dependencies
+
+If you have App::cpanminus 1.6 or later installed, you can use `cpanm` to
+satisfy dependencies like this:
+
+ $ cpanm --installdeps .
+
+Otherwise, look for either a `Makefile.PL` or `cpanfile` file for
+a list of dependencies to satisfy.
+
+### Running tests
+
+You can run tests directly using the `prove` tool:
+
+ $ prove -l
+ $ prove -lv t/some_test_file.t
+
+For most of my distributions, `prove` is entirely sufficient for you to test any
+patches you have. I use `prove` for 99% of my testing during development.
+
+### Code style and tidying
+
+Please try to match any existing coding style. If there is a `.perltidyrc`
+file, please install Perl::Tidy and use perltidy before submitting patches.
+
+If there is a `tidyall.ini` file, you can also install Code::TidyAll and run
+`tidyall` on a file or `tidyall -a` to tidy all files.
+
+### Patching documentation
+
+Much of the documentation Pod is generated at release time. Some is
+generated boilerplate; other documentation is built from pseudo-POD
+directives in the source like C<=method> or C<=func>.
+
+If you would like to submit a documentation edit, please limit yourself to
+the documentation you see.
+
+If you see typos or documentation issues in the generated docs, please
+email or open a bug ticket instead of patching.
+
+### Where to send patches and pull requests
+
+If you found this distribution on Github, sending a pull-request is the
+best way to contribute.
+
+If a pull-request isn't possible, a bug ticket with a patch file is the
+next best option.
+
+As a last resort, an email to the author(s) is acceptable.
+
+## Installing and using Dist::Zilla
+
+Dist::Zilla is not required for contributing, but if you'd like to learn
+more, this section will get you up to speed.
+
+Dist::Zilla is a very powerful authoring tool, optimized for maintaining a
+large number of distributions with a high degree of automation, but it has a
+large dependency chain, a bit of a learning curve and requires a number of
+author-specific plugins.
+
+To install it from CPAN, I recommend one of the following approaches for
+the quickest installation:
+
+ # using CPAN.pm, but bypassing non-functional pod tests
+ $ cpan TAP::Harness::Restricted
+ $ PERL_MM_USE_DEFAULT=1 HARNESS_CLASS=TAP::Harness::Restricted cpan Dist::Zilla
+
+ # using cpanm, bypassing *all* tests
+ $ cpanm -n Dist::Zilla
+
+In either case, it's probably going to take about 10 minutes. Go for a walk,
+go get a cup of your favorite beverage, take a bathroom break, or whatever.
+When you get back, Dist::Zilla should be ready for you.
+
+Then you need to install any plugins specific to this distribution:
+
+ $ cpan `dzil authordeps`
+ $ dzil authordeps | cpanm
+
+Once installed, here are some dzil commands you might try:
+
+ $ dzil build
+ $ dzil test
+ $ dzil xtest
+
+You can learn more about Dist::Zilla at http://dzil.org/
+
@@ -1,5 +1,27 @@
Changes for Perl programming language extension Parse-CPAN-Meta
+1.4417 2015-06-09 16:19:41-06:00 America/Denver
+
+ - No changes from 1.4416
+
+1.4416 2015-05-19 11:11:47-04:00 America/New_York (TRIAL RELEASE)
+
+ [FIXED]
+
+ - Minimum Perl was inadvertently set to v5.10.0. Now back to v5.8.1.
+
+1.4415 2015-04-28 11:29:52-04:00 America/New_York (TRIAL RELEASE)
+
+ [TESTS]
+
+ - Outputs the version of backends used
+
+ [META]
+
+ - Updated repo metadata and boilerplate files
+
+ - Pointed issue tracker to the Perl-Toolchain-Gang Github repo
+
1.4414 2014-03-04 15:22:00-05:00 America/New_York
[ADDED]
@@ -1,4 +1,4 @@
-This software is copyright (c) 2014 by Adam Kennedy and Contributors.
+This software is copyright (c) 2015 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 @@ b) the "Artistic License"
--- The GNU General Public License, Version 1, February 1989 ---
-This software is Copyright (c) 2014 by Adam Kennedy and Contributors.
+This software is Copyright (c) 2015 by Adam Kennedy and Contributors.
This is free software, licensed under:
@@ -22,7 +22,7 @@ This is free software, licensed under:
Version 1, February 1989
Copyright (C) 1989 Free Software Foundation, Inc.
- 51 Franklin St, Suite 500, Boston, MA 02110-1335 USA
+ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
@@ -272,7 +272,7 @@ That's all there is to it!
--- The Artistic License 1.0 ---
-This software is Copyright (c) 2014 by Adam Kennedy and Contributors.
+This software is Copyright (c) 2015 by Adam Kennedy and Contributors.
This is free software, licensed under:
@@ -1,5 +1,5 @@
-# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.013.
-CONTRIBUTING
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.037.
+CONTRIBUTING.mkdn
Changes
LICENSE
MANIFEST
@@ -7,21 +7,22 @@ META.json
META.yml
Makefile.PL
README
+corpus/BadMETA.yml
+corpus/META-VR.json
+corpus/META-VR.yml
+corpus/bareyaml.meta
+corpus/json.meta
+corpus/yaml.meta
cpanfile
dist.ini
lib/Parse/CPAN/Meta.pm
perlcritic.rc
+t/00-report-prereqs.dd
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
@@ -5,13 +5,13 @@
"David Golden <dagolden@cpan.org>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 5.013, CPAN::Meta::Converter version 2.133380",
+ "generated_by" : "Dist::Zilla version 5.037, CPAN::Meta::Converter version 2.150001",
"license" : [
"perl_5"
],
"meta-spec" : {
"url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
- "version" : "2"
+ "version" : 2
},
"name" : "Parse-CPAN-Meta",
"no_index" : {
@@ -28,18 +28,19 @@
"prereqs" : {
"configure" : {
"requires" : {
- "ExtUtils::MakeMaker" : "6.30"
+ "ExtUtils::MakeMaker" : "0",
+ "perl" : "5.008001"
}
},
"develop" : {
"requires" : {
- "Dist::Zilla" : "5.013",
+ "Dist::Zilla" : "5",
"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",
+ "Dist::Zilla::PluginBundle::DAGOLDEN" : "0.072",
"File::Spec" : "0",
"File::Temp" : "0",
"IO::Handle" : "0",
@@ -48,7 +49,9 @@
"Test::CPAN::Meta" : "0",
"Test::More" : "0",
"Test::Pod" : "1.41",
- "Test::Pod::Coverage" : "1.08"
+ "Test::Pod::Coverage" : "1.08",
+ "Test::Spelling" : "0.12",
+ "Test::Version" : "1"
}
},
"runtime" : {
@@ -65,18 +68,16 @@
},
"test" : {
"recommends" : {
- "CPAN::Meta" : "0",
- "CPAN::Meta::Requirements" : "2.120900"
+ "CPAN::Meta" : "2.120900"
},
"requires" : {
"ExtUtils::MakeMaker" : "0",
"File::Spec" : "0.80",
"File::Spec::Functions" : "0",
- "List::Util" : "0",
"Test::More" : "0.47",
"lib" : "0",
+ "perl" : "5.008001",
"vars" : "0",
- "version" : "0",
"warnings" : "0"
}
}
@@ -84,13 +85,13 @@
"provides" : {
"Parse::CPAN::Meta" : {
"file" : "lib/Parse/CPAN/Meta.pm",
- "version" : "1.4414"
+ "version" : "1.4417"
}
},
"release_status" : "stable",
"resources" : {
"bugtracker" : {
- "web" : "http://rt.cpan.org/Public/Dist/Display.html?Name=Parse-CPAN-Meta"
+ "web" : "https://github.com/Perl-Toolchain-Gang/Parse-CPAN-Meta/issues"
},
"homepage" : "https://github.com/Perl-Toolchain-Gang/Parse-CPAN-Meta",
"repository" : {
@@ -99,11 +100,12 @@
"web" : "https://github.com/Perl-Toolchain-Gang/Parse-CPAN-Meta"
}
},
- "version" : "1.4414",
+ "version" : "1.4417",
"x_authority" : "cpan:ADAMK",
"x_contributors" : [
"Graham Knop <haarg@haarg.org>",
"Joshua ben Jore <jjore@cpan.org>",
+ "Karen Etheridge <ether@cpan.org>",
"Neil Bowers <neil@bowers.com>",
"Ricardo Signes <rjbs@cpan.org>",
"Steffen Mueller <smueller@cpan.org>"
@@ -7,16 +7,16 @@ build_requires:
ExtUtils::MakeMaker: '0'
File::Spec: '0.80'
File::Spec::Functions: '0'
- List::Util: '0'
Test::More: '0.47'
lib: '0'
+ perl: '5.008001'
vars: '0'
- version: '0'
warnings: '0'
configure_requires:
- ExtUtils::MakeMaker: '6.30'
+ ExtUtils::MakeMaker: '0'
+ perl: '5.008001'
dynamic_config: 0
-generated_by: 'Dist::Zilla version 5.013, CPAN::Meta::Converter version 2.133380'
+generated_by: 'Dist::Zilla version 5.037, CPAN::Meta::Converter version 2.150001'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -33,7 +33,7 @@ no_index:
provides:
Parse::CPAN::Meta:
file: lib/Parse/CPAN/Meta.pm
- version: '1.4414'
+ version: '1.4417'
requires:
CPAN::Meta::YAML: '0.011'
Carp: '0'
@@ -44,14 +44,15 @@ requires:
perl: '5.008001'
strict: '0'
resources:
- bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=Parse-CPAN-Meta
+ bugtracker: https://github.com/Perl-Toolchain-Gang/Parse-CPAN-Meta/issues
homepage: https://github.com/Perl-Toolchain-Gang/Parse-CPAN-Meta
repository: https://github.com/Perl-Toolchain-Gang/Parse-CPAN-Meta.git
-version: '1.4414'
+version: '1.4417'
x_authority: cpan:ADAMK
x_contributors:
- 'Graham Knop <haarg@haarg.org>'
- 'Joshua ben Jore <jjore@cpan.org>'
+ - 'Karen Etheridge <ether@cpan.org>'
- 'Neil Bowers <neil@bowers.com>'
- 'Ricardo Signes <rjbs@cpan.org>'
- 'Steffen Mueller <smueller@cpan.org>'
@@ -1,24 +1,21 @@
-
-# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.013.
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.037.
use strict;
use warnings;
use 5.008001;
-use ExtUtils::MakeMaker 6.30;
-
-
+use ExtUtils::MakeMaker;
my %WriteMakefileArgs = (
"ABSTRACT" => "Parse META.yml and META.json CPAN metadata files",
"AUTHOR" => "Adam Kennedy <adamk\@cpan.org>, David Golden <dagolden\@cpan.org>",
- "BUILD_REQUIRES" => {},
"CONFIGURE_REQUIRES" => {
- "ExtUtils::MakeMaker" => "6.30"
+ "ExtUtils::MakeMaker" => 0
},
"DISTNAME" => "Parse-CPAN-Meta",
"EXE_FILES" => [],
"LICENSE" => "perl",
+ "MIN_PERL_VERSION" => "5.008001",
"NAME" => "Parse::CPAN::Meta",
"PREREQ_PM" => {
"CPAN::Meta::YAML" => "0.011",
@@ -33,14 +30,12 @@ my %WriteMakefileArgs = (
"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
},
- "VERSION" => "1.4414",
+ "VERSION" => "1.4417",
"test" => {
"TESTS" => "t/*.t"
}
@@ -56,12 +51,10 @@ my %FallbackPrereqs = (
"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
);
@@ -88,6 +81,3 @@ $WriteMakefileArgs{INSTALLDIRS} = 'perl'
if $] >= 5.010001 && $] <= 5.011000;
WriteMakefile(%WriteMakefileArgs);
-
-
-
@@ -2,7 +2,7 @@ NAME
Parse::CPAN::Meta - Parse META.yml and META.json CPAN metadata files
VERSION
- version 1.4414
+ version 1.4417
SYNOPSIS
#############################################
@@ -124,7 +124,7 @@ ENVIRONMENT
SUPPORT
Bugs / Feature Requests
Please report any bugs or feature requests through the issue tracker at
- <http://rt.cpan.org/Public/Dist/Display.html?Name=Parse-CPAN-Meta>. You
+ <https://github.com/Perl-Toolchain-Gang/Parse-CPAN-Meta/issues>. You
will be notified automatically of any progress on your issue.
Source Code
@@ -145,6 +145,8 @@ CONTRIBUTORS
* Joshua ben Jore <jjore@cpan.org>
+ * Karen Etheridge <ether@cpan.org>
+
* Neil Bowers <neil@bowers.com>
* Ricardo Signes <rjbs@cpan.org>
@@ -152,7 +154,7 @@ CONTRIBUTORS
* Steffen Mueller <smueller@cpan.org>
COPYRIGHT AND LICENSE
- This software is copyright (c) 2014 by Adam Kennedy and Contributors.
+ This software is copyright (c) 2015 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.
@@ -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
@@ -0,0 +1,30 @@
+{
+ "abstract" : "a set of version requirements for a CPAN dist",
+ "author" : [
+ "Ricardo Signes <rjbs@cpan.org>"
+ ],
+ "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"
+}
+
@@ -0,0 +1,22 @@
+---
+abstract: 'a set of version requirements for a CPAN dist'
+author:
+ - 'Ricardo Signes <rjbs@cpan.org>'
+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
@@ -0,0 +1,21 @@
+abstract: 'a set of version requirements for a CPAN dist'
+author:
+ - 'Ricardo Signes <rjbs@cpan.org>'
+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
@@ -0,0 +1,30 @@
+{
+ "abstract" : "a set of version requirements for a CPAN dist",
+ "author" : [
+ "Ricardo Signes <rjbs@cpan.org>"
+ ],
+ "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"
+}
+
@@ -0,0 +1,22 @@
+---
+abstract: 'a set of version requirements for a CPAN dist'
+author:
+ - 'Ricardo Signes <rjbs@cpan.org>'
+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
@@ -11,31 +11,30 @@ on 'test' => sub {
requires "ExtUtils::MakeMaker" => "0";
requires "File::Spec" => "0.80";
requires "File::Spec::Functions" => "0";
- requires "List::Util" => "0";
requires "Test::More" => "0.47";
requires "lib" => "0";
+ requires "perl" => "5.008001";
requires "vars" => "0";
- requires "version" => "0";
requires "warnings" => "0";
};
on 'test' => sub {
- recommends "CPAN::Meta" => "0";
- recommends "CPAN::Meta::Requirements" => "2.120900";
+ recommends "CPAN::Meta" => "2.120900";
};
on 'configure' => sub {
- requires "ExtUtils::MakeMaker" => "6.30";
+ requires "ExtUtils::MakeMaker" => "0";
+ requires "perl" => "5.008001";
};
on 'develop' => sub {
- requires "Dist::Zilla" => "5.013";
+ requires "Dist::Zilla" => "5";
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 "Dist::Zilla::PluginBundle::DAGOLDEN" => "0.072";
requires "File::Spec" => "0";
requires "File::Temp" => "0";
requires "IO::Handle" => "0";
@@ -45,4 +44,6 @@ on 'develop' => sub {
requires "Test::More" => "0";
requires "Test::Pod" => "1.41";
requires "Test::Pod::Coverage" => "1.08";
+ requires "Test::Spelling" => "0.12";
+ requires "Test::Version" => "1";
};
@@ -6,7 +6,7 @@ copyright_holder = Adam Kennedy and Contributors
[Encoding]
encoding = Latin-1
-filename = t/data/BadMETA.yml
+filename = corpus/BadMETA.yml
[Prereqs]
CPAN::Meta::YAML = 0.011
@@ -17,11 +17,10 @@ JSON::PP = 2.27200
Test::More = 0.47
[@DAGOLDEN]
-:version = 0.053
+:version = 0.072
-remove = MakeMaker
+Test::MinimumVersion.max_target_perl = 5.008001
authority = cpan:ADAMK
-github_issues = 0
-no_critic = 0
stopwords = LoadFile
stopwords = deserialization
stopwords = deserialize
@@ -2,7 +2,8 @@ use 5.008001;
use strict;
package Parse::CPAN::Meta;
# ABSTRACT: Parse META.yml and META.json CPAN metadata files
-our $VERSION = '1.4414'; # VERSION
+
+our $VERSION = '1.4417';
use Exporter;
use Carp 'croak';
@@ -110,12 +111,12 @@ sub _can_load {
# Kept for backwards compatibility only
# Create an object from a file
-sub LoadFile ($) {
+sub LoadFile ($) { ## no critic
return Load(_slurp(shift));
}
# Parse a document from a string.
-sub Load ($) {
+sub Load ($) { ## no critic
require CPAN::Meta::YAML;
my $object = eval { CPAN::Meta::YAML::Load(shift) };
croak $@ if $@;
@@ -136,7 +137,7 @@ Parse::CPAN::Meta - Parse META.yml and META.json CPAN metadata files
=head1 VERSION
-version 1.4414
+version 1.4417
=head1 SYNOPSIS
@@ -283,7 +284,7 @@ will be thrown.
=head2 Bugs / Feature Requests
Please report any bugs or feature requests through the issue tracker
-at L<http://rt.cpan.org/Public/Dist/Display.html?Name=Parse-CPAN-Meta>.
+at L<https://github.com/Perl-Toolchain-Gang/Parse-CPAN-Meta/issues>.
You will be notified automatically of any progress on your issue.
=head2 Source Code
@@ -311,6 +312,8 @@ David Golden <dagolden@cpan.org>
=head1 CONTRIBUTORS
+=for stopwords Graham Knop Joshua ben Jore Karen Etheridge Neil Bowers Ricardo Signes Steffen Mueller
+
=over 4
=item *
@@ -323,6 +326,10 @@ Joshua ben Jore <jjore@cpan.org>
=item *
+Karen Etheridge <ether@cpan.org>
+
+=item *
+
Neil Bowers <neil@bowers.com>
=item *
@@ -337,7 +344,7 @@ Steffen Mueller <smueller@cpan.org>
=head1 COPYRIGHT AND LICENSE
-This software is copyright (c) 2014 by Adam Kennedy and Contributors.
+This software is copyright (c) 2015 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.
@@ -7,6 +7,9 @@ allow = $@ $!
[TestingAndDebugging::ProhibitNoStrict]
allow = refs
+[Variables::ProhibitEvilVariables]
+variables = $DB::single
+
# Turn these off
[-BuiltinFunctions::ProhibitStringyEval]
[-ControlStructures::ProhibitPostfixControls]
@@ -17,7 +20,6 @@ allow = refs
[-RegularExpressions::RequireExtendedFormatting]
[-InputOutput::ProhibitTwoArgOpen]
[-Modules::ProhibitEvilModules]
-[-Subroutines::ProhibitSubroutinePrototypes]
# Turn this on
[Lax::ProhibitStringyEval::ExceptForRequire]
@@ -0,0 +1,59 @@
+do { my $x = {
+ 'configure' => {
+ 'requires' => {
+ 'ExtUtils::MakeMaker' => '0',
+ 'perl' => '5.008001'
+ }
+ },
+ 'develop' => {
+ 'requires' => {
+ 'Dist::Zilla' => '5',
+ '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.072',
+ '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',
+ 'Test::Spelling' => '0.12',
+ 'Test::Version' => '1'
+ }
+ },
+ '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' => '2.120900'
+ },
+ 'requires' => {
+ 'ExtUtils::MakeMaker' => '0',
+ 'File::Spec' => '0.80',
+ 'File::Spec::Functions' => '0',
+ 'Test::More' => '0.47',
+ 'lib' => '0',
+ 'perl' => '5.008001',
+ 'vars' => '0',
+ 'warnings' => '0'
+ }
+ }
+ };
+ $x;
+ }
\ No newline at end of file
@@ -3,188 +3,179 @@
use strict;
use warnings;
-# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.013
+# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.021
use Test::More tests => 1;
use ExtUtils::MakeMaker;
-use File::Spec::Functions;
-use List::Util qw/max/;
-use version;
+use File::Spec;
+
+# from $version::LAX
+my $lax_version_re =
+ qr/(?: undef | (?: (?:[0-9]+) (?: \. | (?:\.[0-9]+) (?:_[0-9]+)? )?
+ |
+ (?:\.[0-9]+) (?:_[0-9]+)?
+ ) | (?:
+ v (?:[0-9]+) (?: (?:\.[0-9]+)+ (?:_[0-9]+)? )?
+ |
+ (?:[0-9]+)? (?:\.[0-9]+){2,} (?:_[0-9]+)?
+ )
+ )/x;
# 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')";
+my $cpan_meta_pre = "CPAN::Meta::Prereqs";
+my $HAS_CPAN_META = eval "require $cpan_meta; $cpan_meta->VERSION('2.120900')" && eval "require $cpan_meta_pre"; ## no critic
# Verify requirements?
my $DO_VERIFY_PREREQS = 1;
-sub _merge_requires {
+sub _max {
+ my $max = shift;
+ $max = ( $_ > $max ) ? $_ : $max for @_;
+ return $max;
+}
+
+sub _merge_prereqs {
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 );
+
+ # CPAN::Meta::Prereqs object
+ if (ref $collector eq $cpan_meta_pre) {
+ return $collector->with_merged_prereqs(
+ CPAN::Meta::Prereqs->new( $prereqs )
+ );
+ }
+
+ # Raw hashrefs
+ for my $phase ( keys %$prereqs ) {
+ for my $type ( keys %{ $prereqs->{$phase} } ) {
+ for my $module ( keys %{ $prereqs->{$phase}{$type} } ) {
+ $collector->{$phase}{$type}{$module} = $prereqs->{$phase}{$type}{$module};
+ }
}
}
+
+ return $collector;
}
-my %include = map {; $_ => 1 } qw(
+my @include = qw(
);
-my %exclude = map {; $_ => 1 } qw(
+my @exclude = 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);
-}
+my $static_prereqs = do 't/00-report-prereqs.dd';
+# Merge all prereqs (either with ::Prereqs or a hashref)
+my $full_prereqs = _merge_prereqs(
+ ( $HAS_CPAN_META ? $cpan_meta_pre->new : {} ),
+ $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);
+ if ( my $meta = eval { CPAN::Meta->load_file($source) } ) {
+ $full_prereqs = _merge_prereqs($full_prereqs, $meta->prereqs);
}
- }
}
else {
- $source = 'static metadata';
+ $source = 'static metadata';
}
-my @modules = sort grep { ! $exclude{$_} } keys %include;
-my @reports = [qw/Version Module/];
+my @full_reports;
my @dep_errors;
-my $req_hash = defined($all_requires) ? $all_requires->as_string_hash : {};
-
-for my $mod ( @modules ) {
- next if $mod eq 'perl';
- my $file = $mod;
- $file =~ s{::}{/}g;
- $file .= ".pm";
- my ($prefix) = grep { -e catfile($_, $file) } @INC;
- if ( $prefix ) {
- 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'";
+my $req_hash = $HAS_CPAN_META ? $full_prereqs->as_string_hash : $full_prereqs;
+
+# Add static includes into a fake section
+for my $mod (@include) {
+ $req_hash->{other}{modules}{$mod} = 0;
+}
+
+for my $phase ( qw(configure build test runtime develop other) ) {
+ next unless $req_hash->{$phase};
+ next if ($phase eq 'develop' and not $ENV{AUTHOR_TESTING});
+
+ for my $type ( qw(requires recommends suggests conflicts modules) ) {
+ next unless $req_hash->{$phase}{$type};
+
+ my $title = ucfirst($phase).' '.ucfirst($type);
+ my @reports = [qw/Module Want Have/];
+
+ for my $mod ( sort keys %{ $req_hash->{$phase}{$type} } ) {
+ next if $mod eq 'perl';
+ next if grep { $_ eq $mod } @exclude;
+
+ my $file = $mod;
+ $file =~ s{::}{/}g;
+ $file .= ".pm";
+ my ($prefix) = grep { -e File::Spec->catfile($_, $file) } @INC;
+
+ my $want = $req_hash->{$phase}{$type}{$mod};
+ $want = "undef" unless defined $want;
+ $want = "any" if !$want && $want == 0;
+
+ my $req_string = $want eq 'any' ? 'any version required' : "version '$want' required";
+
+ if ($prefix) {
+ my $have = MM->parse_version( File::Spec->catfile($prefix, $file) );
+ $have = "undef" unless defined $have;
+ push @reports, [$mod, $want, $have];
+
+ if ( $DO_VERIFY_PREREQS && $HAS_CPAN_META && $type eq 'requires' ) {
+ if ( $have !~ /\A$lax_version_re\z/ ) {
+ push @dep_errors, "$mod version '$have' cannot be parsed ($req_string)";
+ }
+ elsif ( ! $full_prereqs->requirements_for( $phase, $type )->accepts_module( $mod => $have ) ) {
+ push @dep_errors, "$mod version '$have' is not in required range '$want'";
+ }
+ }
+ }
+ else {
+ push @reports, [$mod, $want, "missing"];
+
+ if ( $DO_VERIFY_PREREQS && $type eq 'requires' ) {
+ push @dep_errors, "$mod is not installed ($req_string)";
+ }
+ }
}
- }
- }
- }
- else {
- push @reports, ["missing", $mod];
+ if ( @reports ) {
+ push @full_reports, "=== $title ===\n\n";
+
+ my $ml = _max( map { length $_->[0] } @reports );
+ my $wl = _max( map { length $_->[1] } @reports );
+ my $hl = _max( map { length $_->[2] } @reports );
- 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)";
- }
+ if ($type eq 'modules') {
+ splice @reports, 1, 0, ["-" x $ml, "", "-" x $hl];
+ push @full_reports, map { sprintf(" %*s %*s\n", -$ml, $_->[0], $hl, $_->[2]) } @reports;
+ }
+ else {
+ splice @reports, 1, 0, ["-" x $ml, "-" x $wl, "-" x $hl];
+ push @full_reports, map { sprintf(" %*s %*s %*s\n", -$ml, $_->[0], $wl, $_->[1], $hl, $_->[2]) } @reports;
+ }
+
+ push @full_reports, "\n";
+ }
}
- }
}
-if ( @reports ) {
- my $vl = max map { length $_->[0] } @reports;
- my $ml = max map { length $_->[1] } @reports;
- splice @reports, 1, 0, ["-" x $vl, "-" x $ml];
- diag "\nVersions for all modules listed in $source (including optional ones):\n",
- map {sprintf(" %*s %*s\n",$vl,$_->[0],-$ml,$_->[1])} @reports;
+if ( @full_reports ) {
+ diag "\nVersions for all modules listed in $source (including optional ones):\n\n", @full_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"
- );
+ 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;
@@ -54,12 +54,13 @@ 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' );
+my $bad_yaml_meta = catfile( test_data_directory(), 'BadMETA.yml' );
### YAML tests
{
local $ENV{PERL_YAML_BACKEND}; # ensure we get CPAN::META::YAML
- is(Parse::CPAN::Meta->yaml_backend(), 'CPAN::Meta::YAML', 'yaml_backend()');
+ is(Parse::CPAN::Meta->yaml_backend(), 'CPAN::Meta::YAML', 'yaml_backend(): CPAN::Meta::YAML');
my $from_yaml = Parse::CPAN::Meta->load_file( $meta_yaml );
is_deeply($from_yaml, $want, "load from YAML file results in expected data");
}
@@ -67,7 +68,8 @@ my $bare_yaml_meta = catfile( test_data_directory(), 'bareyaml.meta' );
{
local $ENV{PERL_YAML_BACKEND}; # ensure we get CPAN::META::YAML
- is(Parse::CPAN::Meta->yaml_backend(), 'CPAN::Meta::YAML', 'yaml_backend()');
+ note '';
+ is(Parse::CPAN::Meta->yaml_backend(), 'CPAN::Meta::YAML', 'yaml_backend(): CPAN::Meta::YAML');
my $from_yaml = Parse::CPAN::Meta->load_file( $yaml_meta );
is_deeply($from_yaml, $want, "load from YAML .meta file results in expected data");
}
@@ -75,7 +77,8 @@ my $bare_yaml_meta = catfile( test_data_directory(), 'bareyaml.meta' );
{
local $ENV{PERL_YAML_BACKEND}; # ensure we get CPAN::META::YAML
- is(Parse::CPAN::Meta->yaml_backend(), 'CPAN::Meta::YAML', 'yaml_backend()');
+ note '';
+ is(Parse::CPAN::Meta->yaml_backend(), 'CPAN::Meta::YAML', 'yaml_backend(): CPAN::Meta::YAML');
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");
}
@@ -83,6 +86,8 @@ my $bare_yaml_meta = catfile( test_data_directory(), 'bareyaml.meta' );
{
local $ENV{PERL_YAML_BACKEND}; # ensure we get CPAN::META::YAML
+ note '';
+ is(Parse::CPAN::Meta->yaml_backend(), 'CPAN::Meta::YAML', 'yaml_backend(): 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");
@@ -91,17 +96,20 @@ my $bare_yaml_meta = catfile( test_data_directory(), 'bareyaml.meta' );
{
local $ENV{PERL_YAML_BACKEND}; # ensure we get CPAN::META::YAML
- my @yaml = Parse::CPAN::Meta::LoadFile( 't/data/BadMETA.yml' );
+ note '';
+ is(Parse::CPAN::Meta->yaml_backend(), 'CPAN::Meta::YAML', 'yaml_backend(): CPAN::Meta::YAML');
+ my @yaml = Parse::CPAN::Meta::LoadFile( $bad_yaml_meta );
is($yaml[0]{author}[0], 'Olivier Mengu\xE9', "Bad UTF-8 is replaced");
}
SKIP: {
+ note '';
skip "YAML module not installed", 2
unless eval "require YAML; 1";
local $ENV{PERL_YAML_BACKEND} = 'YAML';
- is(Parse::CPAN::Meta->yaml_backend(), 'YAML', 'yaml_backend()');
+ is(Parse::CPAN::Meta->yaml_backend(), 'YAML', 'yaml_backend(): 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_yaml_string using PERL_YAML_BACKEND");
@@ -112,7 +120,8 @@ SKIP: {
# 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()');
+ note '';
+ is(Parse::CPAN::Meta->json_backend(), 'JSON::PP', 'json_backend(): JSON::PP');
my $from_json = Parse::CPAN::Meta->load_file( $meta_json );
is_deeply($from_json, $want, "load from JSON file results in expected data");
}
@@ -121,7 +130,8 @@ SKIP: {
# 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()');
+ note '';
+ is(Parse::CPAN::Meta->json_backend(), 'JSON::PP', 'json_backend(): JSON::PP');
my $from_json = Parse::CPAN::Meta->load_file( $json_meta );
is_deeply($from_json, $want, "load from JSON .meta file results in expected data");
}
@@ -130,6 +140,8 @@ SKIP: {
# JSON tests with JSON::PP
local $ENV{PERL_JSON_BACKEND}; # ensure we get JSON::PP
+ note '';
+ is(Parse::CPAN::Meta->json_backend(), 'JSON::PP', 'json_backend(): JSON::PP');
my $json = load_ok( 'META-VR.json', $meta_json, 100);
my $from_json = Parse::CPAN::Meta->load_json_string( $json );
is_deeply($from_json, $want, "load from JSON str results in expected data");
@@ -139,6 +151,8 @@ SKIP: {
# JSON tests with JSON::PP, take 2
local $ENV{PERL_JSON_BACKEND} = 0; # request JSON::PP
+ note '';
+ is(Parse::CPAN::Meta->json_backend(), 'JSON::PP', 'json_backend(): JSON::PP');
my $json = load_ok( 'META-VR.json', $meta_json, 100);
my $from_json = Parse::CPAN::Meta->load_json_string( $json );
is_deeply($from_json, $want, "load_json_string with PERL_JSON_BACKEND = 0");
@@ -148,17 +162,20 @@ SKIP: {
# JSON tests with JSON::PP, take 3
local $ENV{PERL_JSON_BACKEND} = 'JSON::PP'; # request JSON::PP
+ note '';
+ is(Parse::CPAN::Meta->json_backend(), 'JSON::PP', 'json_backend(): JSON::PP');
my $json = load_ok( 'META-VR.json', $meta_json, 100);
my $from_json = Parse::CPAN::Meta->load_json_string( $json );
is_deeply($from_json, $want, "load_json_string with PERL_JSON_BACKEND = 'JSON::PP'");
}
SKIP: {
+ note '';
skip "JSON module version 2.5 not installed", 2
unless eval "require JSON; JSON->VERSION(2.5); 1";
local $ENV{PERL_JSON_BACKEND} = 1;
- is(Parse::CPAN::Meta->json_backend(), 'JSON', 'json_backend()');
+ is(Parse::CPAN::Meta->json_backend(), 'JSON', 'json_backend(): JSON');
my $json = load_ok( 'META-VR.json', $meta_json, 100);
my $from_json = Parse::CPAN::Meta->load_json_string( $json );
is_deeply($from_json, $want, "load_json_string with PERL_JSON_BACKEND = 1");
@@ -1,24 +0,0 @@
----
-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
@@ -1,30 +0,0 @@
-{
- "abstract" : "a set of version requirements for a CPAN dist",
- "author" : [
- "Ricardo Signes <rjbs@cpan.org>"
- ],
- "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"
-}
-
@@ -1,22 +0,0 @@
----
-abstract: 'a set of version requirements for a CPAN dist'
-author:
- - 'Ricardo Signes <rjbs@cpan.org>'
-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
@@ -1,21 +0,0 @@
-abstract: 'a set of version requirements for a CPAN dist'
-author:
- - 'Ricardo Signes <rjbs@cpan.org>'
-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
@@ -1,30 +0,0 @@
-{
- "abstract" : "a set of version requirements for a CPAN dist",
- "author" : [
- "Ricardo Signes <rjbs@cpan.org>"
- ],
- "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"
-}
-
@@ -1,22 +0,0 @@
----
-abstract: 'a set of version requirements for a CPAN dist'
-author:
- - 'Ricardo Signes <rjbs@cpan.org>'
-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
@@ -16,7 +16,7 @@ BEGIN {
}
sub test_data_directory {
- return( File::Spec->catdir(qw(t data)) );
+ return( "corpus" );
}
# 22 tests per call to yaml_ok
@@ -2,11 +2,11 @@ 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);
+# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.053
+use Test::More;
+plan tests => 2;
my @module_files = (
'Parse/CPAN/Meta.pm'
@@ -39,6 +39,9 @@ for my $lib (@module_files)
waitpid($pid, 0);
is($?, 0, "$lib loaded ok");
+ shift @_warnings if @_warnings and $_warnings[0] =~ /^Using .*\bblib/
+ and not eval { blib->VERSION('1.01') };
+
if (@_warnings)
{
warn @_warnings;
@@ -48,6 +51,7 @@ for my $lib (@module_files)
-is(scalar(@warnings), 0, 'no warnings found') if $ENV{AUTHOR_TESTING};
+is(scalar(@warnings), 0, 'no warnings found')
+ or diag 'got warnings: ', ( Test::More->can('explain') ? Test::More::explain(\@warnings) : join("\n", '', @warnings) );
@@ -2,7 +2,7 @@ use strict;
use warnings;
use Test::More;
-# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.006006
+# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.006009
use Test::Spelling 0.12;
use Pod::Wordlist;
@@ -34,6 +34,9 @@ Joshua
ben
Jore
jjore
+Karen
+Etheridge
+ether
Neil
Bowers
neil
@@ -5,4 +5,4 @@ use Test::More;
eval "use Test::MinimumVersion";
plan skip_all => "Test::MinimumVersion required for testing minimum versions"
if $@;
-all_minimum_version_ok( qq{5.010} );
+all_minimum_version_ok( qq{5.008001} );
@@ -2,14 +2,15 @@ use strict;
use warnings;
use Test::More;
-# generated by Dist::Zilla::Plugin::Test::Version 0.002004
-BEGIN { eval "use Test::Version; 1;" or die $@; }
+# generated by Dist::Zilla::Plugin::Test::Version 1.02
+use Test::Version;
-my @imports = ( 'version_all_ok' );
+my @imports = qw( version_all_ok );
my $params = {
- is_strict => 0,
- has_version => 1,
+ is_strict => 0,
+ has_version => 1,
+
};
push @imports, $params