Hello community, here is the log from the commit of package perl-CPAN-Meta-Requirements for openSUSE:Factory checked in at 2013-10-06 14:30:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-CPAN-Meta-Requirements (Old) and /work/SRC/openSUSE:Factory/.perl-CPAN-Meta-Requirements.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-CPAN-Meta-Requirements" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-CPAN-Meta-Requirements/perl-CPAN-Meta-Requirements.changes 2013-06-13 17:32:29.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.perl-CPAN-Meta-Requirements.new/perl-CPAN-Meta-Requirements.changes 2013-10-06 14:31:00.000000000 +0200 @@ -1,0 +2,14 @@ +Fri Oct 4 09:15:20 UTC 2013 - co...@suse.com + +- updated to 2.125 + [FIXED] + - updated Makefile.PL logic to support PERL_NO_HIGHLANDER + - Better fix than 2.123. On old perls, rather than install into + 'core', we continue to install into the proper 'site' library, + but force UNINST=1 when necessary to remove stale copies + from ExtUtils::MakeMaker + - On Perls prior to v5.12, CPAN::Meta::Requirements will be installed + into the 'core' library path to avoid an older version bundled with + ExtUtils::MakeMaker and installed there taking precedence. + +------------------------------------------------------------------- Old: ---- CPAN-Meta-Requirements-2.122.tar.gz New: ---- CPAN-Meta-Requirements-2.125.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-CPAN-Meta-Requirements.spec ++++++ --- /var/tmp/diff_new_pack.EF4UDJ/_old 2013-10-06 14:31:01.000000000 +0200 +++ /var/tmp/diff_new_pack.EF4UDJ/_new 2013-10-06 14:31:01.000000000 +0200 @@ -17,7 +17,7 @@ Name: perl-CPAN-Meta-Requirements -Version: 2.122 +Version: 2.125 Release: 0 %define cpan_name CPAN-Meta-Requirements Summary: a set of version requirements for a CPAN dist @@ -32,8 +32,10 @@ BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(version) >= 0.77 #BuildRequires: perl(CPAN::Meta::Requirements) -#BuildRequires: perl(Test::Requires) +#BuildRequires: perl(Pod::Wordlist) +#BuildRequires: perl(Test::Spelling) >= 0.12 Requires: perl(version) >= 0.77 +# MANUAL Provides: perl(CPAN::Meta::Requirements) = %{version}000 %{perl_requires} @@ -63,6 +65,6 @@ %files -f %{name}.files %defattr(-,root,root,755) -%doc Changes LICENSE perlcritic.rc README README.PATCHING +%doc Changes CONTRIBUTING cpanfile LICENSE perlcritic.rc README %changelog ++++++ CPAN-Meta-Requirements-2.122.tar.gz -> CPAN-Meta-Requirements-2.125.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-Requirements-2.122/CONTRIBUTING new/CPAN-Meta-Requirements-2.125/CONTRIBUTING --- old/CPAN-Meta-Requirements-2.122/CONTRIBUTING 1970-01-01 01:00:00.000000000 +0100 +++ new/CPAN-Meta-Requirements-2.125/CONTRIBUTING 2013-09-23 20:51:19.000000000 +0200 @@ -0,0 +1,70 @@ +## 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. + +### 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. +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/ + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-Requirements-2.122/Changes new/CPAN-Meta-Requirements-2.125/Changes --- old/CPAN-Meta-Requirements-2.122/Changes 2012-05-02 23:29:21.000000000 +0200 +++ new/CPAN-Meta-Requirements-2.125/Changes 2013-09-23 20:51:19.000000000 +0200 @@ -1,8 +1,31 @@ Revision history for CPAN-Meta-Requirements +2.125 2013-09-23 14:51:14 America/New_York + + [FIXED] + + - updated Makefile.PL logic to support PERL_NO_HIGHLANDER + +2.124 2013-09-23 06:40:07 America/New_York + + [FIXED] + + - Better fix than 2.123. On old perls, rather than install into + 'core', we continue to install into the proper 'site' library, + but force UNINST=1 when necessary to remove stale copies + from ExtUtils::MakeMaker + +2.123 2013-08-30 12:17:14 America/New_York + + [FIXED] + + - On Perls prior to v5.12, CPAN::Meta::Requirements will be installed + into the 'core' library path to avoid an older version bundled with + ExtUtils::MakeMaker and installed there taking precedence. + 2.122 2012-05-02 17:29:17 America/New_York - [Fixed] + [FIXED] - Fix typo in documentation: the exclusion symbol is "!=" rather than just "!". The implemenation was correct, just the docs were wrong. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-Requirements-2.122/MANIFEST new/CPAN-Meta-Requirements-2.125/MANIFEST --- old/CPAN-Meta-Requirements-2.122/MANIFEST 2012-05-02 23:29:21.000000000 +0200 +++ new/CPAN-Meta-Requirements-2.125/MANIFEST 2013-09-23 20:51:19.000000000 +0200 @@ -1,3 +1,4 @@ +CONTRIBUTING Changes LICENSE MANIFEST @@ -5,11 +6,12 @@ META.yml Makefile.PL README -README.PATCHING +cpanfile dist.ini lib/CPAN/Meta/Requirements.pm perlcritic.rc t/00-compile.t +t/00-report-prereqs.t t/accepts.t t/bad_version_hook.t t/basic.t @@ -19,6 +21,7 @@ xt/author/critic.t xt/author/pod-spell.t xt/release/distmeta.t +xt/release/minimum-version.t xt/release/pod-coverage.t xt/release/pod-syntax.t xt/release/portability.t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-Requirements-2.122/META.json new/CPAN-Meta-Requirements-2.125/META.json --- old/CPAN-Meta-Requirements-2.122/META.json 2012-05-02 23:29:21.000000000 +0200 +++ new/CPAN-Meta-Requirements-2.125/META.json 2013-09-23 20:51:19.000000000 +0200 @@ -5,7 +5,7 @@ "Ricardo Signes <r...@cpan.org>" ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 4.300014, CPAN::Meta::Converter version 2.120630", + "generated_by" : "Dist::Zilla version 4.300039, CPAN::Meta::Converter version 2.132660", "license" : [ "perl_5" ], @@ -31,6 +31,14 @@ "ExtUtils::MakeMaker" : "6.17" } }, + "develop" : { + "requires" : { + "Pod::Coverage::TrustPod" : "0", + "Test::CPAN::Meta" : "0", + "Test::Pod" : "1.41", + "Test::Pod::Coverage" : "1.08" + } + }, "runtime" : { "requires" : { "Carp" : "0", @@ -43,8 +51,13 @@ }, "test" : { "requires" : { - "File::Find" : "0", + "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.88" } } @@ -52,22 +65,22 @@ "provides" : { "CPAN::Meta::Requirements" : { "file" : "lib/CPAN/Meta/Requirements.pm", - "version" : "2.122" + "version" : "2.125" } }, "release_status" : "stable", "resources" : { "bugtracker" : { - "mailto" : "bug-cpan-meta-requirements at rt.cpan.org", - "web" : "http://rt.cpan.org/Public/Dist/Display.html?Name=CPAN-Meta-Requirements" + "web" : "https://github.com/dagolden/CPAN-Meta-Requirements/issues" }, - "homepage" : "https://github.com/dagolden/cpan-meta-requirements", + "homepage" : "https://github.com/dagolden/CPAN-Meta-Requirements", "repository" : { "type" : "git", - "url" : "https://github.com/dagolden/cpan-meta-requirements.git", - "web" : "https://github.com/dagolden/cpan-meta-requirements" + "url" : "https://github.com/dagolden/CPAN-Meta-Requirements.git", + "web" : "https://github.com/dagolden/CPAN-Meta-Requirements" } }, - "version" : "2.122" + "version" : "2.125", + "x_authority" : "cpan:DAGOLDEN" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-Requirements-2.122/META.yml new/CPAN-Meta-Requirements-2.125/META.yml --- old/CPAN-Meta-Requirements-2.122/META.yml 2012-05-02 23:29:21.000000000 +0200 +++ new/CPAN-Meta-Requirements-2.125/META.yml 2013-09-23 20:51:19.000000000 +0200 @@ -4,13 +4,18 @@ - 'David Golden <dagol...@cpan.org>' - 'Ricardo Signes <r...@cpan.org>' build_requires: - File::Find: 0 + 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.88 configure_requires: ExtUtils::MakeMaker: 6.17 dynamic_config: 0 -generated_by: 'Dist::Zilla version 4.300014, CPAN::Meta::Converter version 2.120630' +generated_by: 'Dist::Zilla version 4.300039, CPAN::Meta::Converter version 2.132660' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -27,7 +32,7 @@ provides: CPAN::Meta::Requirements: file: lib/CPAN/Meta/Requirements.pm - version: 2.122 + version: 2.125 requires: Carp: 0 Scalar::Util: 0 @@ -36,7 +41,8 @@ version: 0.77 warnings: 0 resources: - bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=CPAN-Meta-Requirements - homepage: https://github.com/dagolden/cpan-meta-requirements - repository: https://github.com/dagolden/cpan-meta-requirements.git -version: 2.122 + bugtracker: https://github.com/dagolden/CPAN-Meta-Requirements/issues + homepage: https://github.com/dagolden/CPAN-Meta-Requirements + repository: https://github.com/dagolden/CPAN-Meta-Requirements.git +version: 2.125 +x_authority: cpan:DAGOLDEN diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-Requirements-2.122/Makefile.PL new/CPAN-Meta-Requirements-2.125/Makefile.PL --- old/CPAN-Meta-Requirements-2.122/Makefile.PL 2012-05-02 23:29:21.000000000 +0200 +++ new/CPAN-Meta-Requirements-2.125/Makefile.PL 2013-09-23 20:51:19.000000000 +0200 @@ -11,11 +11,7 @@ my %WriteMakefileArgs = ( "ABSTRACT" => "a set of version requirements for a CPAN dist", "AUTHOR" => "David Golden <dagolden\@cpan.org>, Ricardo Signes <rjbs\@cpan.org>", - "BUILD_REQUIRES" => { - "File::Find" => 0, - "File::Temp" => 0, - "Test::More" => "0.88" - }, + "BUILD_REQUIRES" => {}, "CONFIGURE_REQUIRES" => { "ExtUtils::MakeMaker" => "6.17" }, @@ -30,13 +26,36 @@ "version" => "0.77", "warnings" => 0 }, - "VERSION" => "2.122", + "TEST_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.88" + }, + "VERSION" => "2.125", "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}; + } + } +} + unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) { my $br = delete $WriteMakefileArgs{BUILD_REQUIRES}; my $pp = $WriteMakefileArgs{PREREQ_PM}; @@ -53,6 +72,15 @@ delete $WriteMakefileArgs{CONFIGURE_REQUIRES} unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; +# Added by Dist::Zilla::Plugin::MakeMaker::Highlander +if ( $] < 5.012 + && ! $ENV{PERL_NO_HIGHLANDER} + && ! ( $ENV{PERL_MM_OPT} && $ENV{PERL_MM_OPT} =~ /(?:INSTALL_BASE|PREFIX)/ ) + && ! grep { /INSTALL_BASE/ || /PREFIX/ } @ARGV +) { + $WriteMakefileArgs{UNINST} = 1; +} + WriteMakefile(%WriteMakefileArgs); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-Requirements-2.122/README new/CPAN-Meta-Requirements-2.125/README --- old/CPAN-Meta-Requirements-2.122/README 2012-05-02 23:29:21.000000000 +0200 +++ new/CPAN-Meta-Requirements-2.125/README 2013-09-23 20:51:19.000000000 +0200 @@ -2,7 +2,7 @@ CPAN::Meta::Requirements - a set of version requirements for a CPAN dist VERSION - version 2.122 + version 2.125 SYNOPSIS use CPAN::Meta::Requirements; @@ -213,16 +213,16 @@ 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=CPAN-Meta-Requirements - >. You will be notified automatically of any progress on your issue. + <https://github.com/dagolden/CPAN-Meta-Requirements/issues>. You will be + notified automatically of any progress on your issue. Source Code This is open source software. The code repository is available for public review and contribution under the terms of the license. - <https://github.com/dagolden/cpan-meta-requirements> + <https://github.com/dagolden/CPAN-Meta-Requirements> - git clone https://github.com/dagolden/cpan-meta-requirements.git + git clone https://github.com/dagolden/CPAN-Meta-Requirements.git AUTHORS * David Golden <dagol...@cpan.org> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-Requirements-2.122/README.PATCHING new/CPAN-Meta-Requirements-2.125/README.PATCHING --- old/CPAN-Meta-Requirements-2.122/README.PATCHING 2012-05-02 23:29:21.000000000 +0200 +++ new/CPAN-Meta-Requirements-2.125/README.PATCHING 1970-01-01 01:00:00.000000000 +0100 @@ -1,50 +0,0 @@ -README.PATCHING - -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). - -However, 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. - -You may need to satisfy some dependencies. See the included META.json -file for a list. If you install App::mymeta_requires from CPAN, it's easy -to satisfy any that you are missing by piping the output to your favorite -CPAN client: - - $ mymeta-requires | cpanm - $ cpan `mymeta-requires` - -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. - -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/ - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-Requirements-2.122/cpanfile new/CPAN-Meta-Requirements-2.125/cpanfile --- old/CPAN-Meta-Requirements-2.122/cpanfile 1970-01-01 01:00:00.000000000 +0100 +++ new/CPAN-Meta-Requirements-2.125/cpanfile 2013-09-23 20:51:19.000000000 +0200 @@ -0,0 +1,28 @@ +requires "Carp" => "0"; +requires "Scalar::Util" => "0"; +requires "perl" => "5.006"; +requires "strict" => "0"; +requires "version" => "0.77"; +requires "warnings" => "0"; + +on 'test' => sub { + requires "ExtUtils::MakeMaker" => "0"; + requires "File::Spec" => "0"; + 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.88"; +}; + +on 'configure' => sub { + requires "ExtUtils::MakeMaker" => "6.17"; +}; + +on 'develop' => sub { + requires "Pod::Coverage::TrustPod" => "0"; + requires "Test::CPAN::Meta" => "0"; + requires "Test::Pod" => "1.41"; + requires "Test::Pod::Coverage" => "1.08"; +}; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-Requirements-2.122/dist.ini new/CPAN-Meta-Requirements-2.125/dist.ini --- old/CPAN-Meta-Requirements-2.122/dist.ini 2012-05-02 23:29:21.000000000 +0200 +++ new/CPAN-Meta-Requirements-2.125/dist.ini 2013-09-23 20:51:19.000000000 +0200 @@ -5,15 +5,13 @@ copyright_holder = David Golden and Ricardo Signes copyright_year = 2010 -[@Filter] --bundle = @DAGOLDEN --remove = Test::PodSpelling +[@DAGOLDEN] +:version = 0.053 -remove = MakeMaker -:version = 0.027 - -[Test::PodSpelling] stopwords = invocant [MakeMaker] eumm_version = 6.17 +[MakeMaker::Highlander] +:version = 0.003 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-Requirements-2.122/lib/CPAN/Meta/Requirements.pm new/CPAN-Meta-Requirements-2.125/lib/CPAN/Meta/Requirements.pm --- old/CPAN-Meta-Requirements-2.122/lib/CPAN/Meta/Requirements.pm 2012-05-02 23:29:21.000000000 +0200 +++ new/CPAN-Meta-Requirements-2.125/lib/CPAN/Meta/Requirements.pm 2013-09-23 20:51:19.000000000 +0200 @@ -1,7 +1,7 @@ use strict; use warnings; package CPAN::Meta::Requirements; -our $VERSION = '2.122'; # VERSION +our $VERSION = '2.125'; # VERSION # ABSTRACT: a set of version requirements for a CPAN dist @@ -433,15 +433,18 @@ # vim: ts=2 sts=2 sw=2 et: __END__ + =pod +=encoding utf-8 + =head1 NAME CPAN::Meta::Requirements - a set of version requirements for a CPAN dist =head1 VERSION -version 2.122 +version 2.125 =head1 SYNOPSIS @@ -691,7 +694,7 @@ =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=CPAN-Meta-Requirements>. +at L<https://github.com/dagolden/CPAN-Meta-Requirements/issues>. You will be notified automatically of any progress on your issue. =head2 Source Code @@ -699,9 +702,9 @@ This is open source software. The code repository is available for public review and contribution under the terms of the license. -L<https://github.com/dagolden/cpan-meta-requirements> +L<https://github.com/dagolden/CPAN-Meta-Requirements> - git clone https://github.com/dagolden/cpan-meta-requirements.git + git clone https://github.com/dagolden/CPAN-Meta-Requirements.git =head1 AUTHORS @@ -725,4 +728,3 @@ the same terms as the Perl 5 programming language system itself. =cut - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-Requirements-2.122/t/00-compile.t new/CPAN-Meta-Requirements-2.125/t/00-compile.t --- old/CPAN-Meta-Requirements-2.122/t/00-compile.t 2012-05-02 23:29:21.000000000 +0200 +++ new/CPAN-Meta-Requirements-2.125/t/00-compile.t 2013-09-23 20:51:19.000000000 +0200 @@ -1,73 +1,49 @@ -#!perl - use strict; use warnings; -use Test::More; +# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.033 +use Test::More tests => 1 + ($ENV{AUTHOR_TESTING} ? 1 : 0); -use File::Find; -use File::Temp qw{ tempdir }; -my @modules; -find( - sub { - return if $File::Find::name !~ /\.pm\z/; - my $found = $File::Find::name; - $found =~ s{^lib/}{}; - $found =~ s{[/\\]}{::}g; - $found =~ s/\.pm$//; - # nothing to skip - push @modules, $found; - }, - 'lib', +my @module_files = ( + 'CPAN/Meta/Requirements.pm' ); -sub _find_scripts { - my $dir = shift @_; - my @found_scripts = (); - find( - sub { - return unless -f; - my $found = $File::Find::name; - # nothing to skip - open my $FH, '<', $_ or do { - note( "Unable to open $found in ( $! ), skipping" ); - return; - }; - my $shebang = <$FH>; - return unless $shebang =~ /^#!.*?\bperl\b\s*$/; - push @found_scripts, $found; - }, - $dir, - ); - return @found_scripts; -} +# fake home for cpan-testers +use File::Temp; +local $ENV{HOME} = File::Temp::tempdir( CLEANUP => 1 ); -my @scripts; -do { push @scripts, _find_scripts($_) if -d $_ } - for qw{ bin script scripts }; -my $plan = scalar(@modules) + scalar(@scripts); -$plan ? (plan tests => $plan) : (plan skip_all => "no tests to run"); +use File::Spec; +use IPC::Open3; +use IO::Handle; +my @warnings; +for my $lib (@module_files) { - # fake home for cpan-testers - local $ENV{HOME} = tempdir( CLEANUP => 1 ); - - like( qx{ $^X -Ilib -e "require $_; print '$_ ok'" }, qr/^\s*$_ ok/s, "$_ loaded ok" ) - for sort @modules; - - SKIP: { - eval "use Test::Script 1.05; 1;"; - skip "Test::Script needed to test script compilation", scalar(@scripts) if $@; - foreach my $file ( @scripts ) { - my $script = $file; - $script =~ s!.*/!!; - script_compiles( $file, "$script script compiles" ); - } + # 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/CPAN-Meta-Requirements-2.122/t/00-report-prereqs.t new/CPAN-Meta-Requirements-2.125/t/00-report-prereqs.t --- old/CPAN-Meta-Requirements-2.122/t/00-report-prereqs.t 1970-01-01 01:00:00.000000000 +0100 +++ new/CPAN-Meta-Requirements-2.125/t/00-report-prereqs.t 2013-09-23 20:51:19.000000000 +0200 @@ -0,0 +1,69 @@ +#!perl + +use strict; +use warnings; + +use Test::More tests => 1; + +use ExtUtils::MakeMaker; +use File::Spec::Functions; +use List::Util qw/max/; + +my @modules = qw( + Carp + ExtUtils::MakeMaker + File::Spec + File::Spec::Functions + File::Temp + IO::Handle + IPC::Open3 + List::Util + Scalar::Util + Test::More + perl + strict + version + 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 @reports = [qw/Version Module/]; + +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]; + } + else { + push @reports, ["missing", $mod]; + } +} + +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 "Prerequisite Report:\n", map {sprintf(" %*s %*s\n",$vl,$_->[0],-$ml,$_->[1])} @reports; +} + +pass; + +# vim: ts=2 sts=2 sw=2 et: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-Requirements-2.122/xt/author/pod-spell.t new/CPAN-Meta-Requirements-2.125/xt/author/pod-spell.t --- old/CPAN-Meta-Requirements-2.122/xt/author/pod-spell.t 2012-05-02 23:29:21.000000000 +0200 +++ new/CPAN-Meta-Requirements-2.125/xt/author/pod-spell.t 2013-09-23 20:51:19.000000000 +0200 @@ -2,18 +2,21 @@ use warnings; use Test::More; -# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.002004 -eval "use Test::Spelling 0.12; use Pod::Wordlist::hanekomu; 1" or die $@; +# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.006001 +use Test::Spelling 0.12; +use Pod::Wordlist; add_stopwords(<DATA>); -all_pod_files_spelling_ok('bin', 'lib'); +all_pod_files_spelling_ok( qw( bin lib ) ); __DATA__ invocant David Golden +dagolden Ricardo Signes +rjbs and lib CPAN diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-Requirements-2.122/xt/release/minimum-version.t new/CPAN-Meta-Requirements-2.125/xt/release/minimum-version.t --- old/CPAN-Meta-Requirements-2.122/xt/release/minimum-version.t 1970-01-01 01:00:00.000000000 +0100 +++ new/CPAN-Meta-Requirements-2.125/xt/release/minimum-version.t 2013-09-23 20:51:19.000000000 +0200 @@ -0,0 +1,8 @@ +#!perl + +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} ); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-Requirements-2.122/xt/release/portability.t new/CPAN-Meta-Requirements-2.125/xt/release/portability.t --- old/CPAN-Meta-Requirements-2.122/xt/release/portability.t 2012-05-02 23:29:21.000000000 +0200 +++ new/CPAN-Meta-Requirements-2.125/xt/release/portability.t 2013-09-23 20:51:19.000000000 +0200 @@ -1,8 +1,12 @@ #!perl +use strict; +use warnings; + use Test::More; eval 'use Test::Portability::Files'; plan skip_all => 'Test::Portability::Files required for testing portability' if $@; +options(test_one_dot => 0); run_tests(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-Requirements-2.122/xt/release/test-version.t new/CPAN-Meta-Requirements-2.125/xt/release/test-version.t --- old/CPAN-Meta-Requirements-2.122/xt/release/test-version.t 2012-05-02 23:29:21.000000000 +0200 +++ new/CPAN-Meta-Requirements-2.125/xt/release/test-version.t 2013-09-23 20:51:19.000000000 +0200 @@ -1,12 +1,22 @@ -#!/usr/bin/perl -use 5.006; use strict; use warnings; use Test::More; -use Test::Requires { - 'Test::Version' => 0.04, +# generated by Dist::Zilla::Plugin::Test::Version 0.002004 +BEGIN { eval "use Test::Version; 1;" or die $@; } + +my @imports = ( 'version_all_ok' ); + +my $params = { + is_strict => 0, + has_version => 1, }; +push @imports, $params + if version->parse( $Test::Version::VERSION ) >= version->parse('1.002'); + + +Test::Version->import(@imports); + version_all_ok; done_testing; -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org