Hello community, here is the log from the commit of package perl-File-pushd for openSUSE:Factory checked in at 2016-10-23 12:53:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-File-pushd (Old) and /work/SRC/openSUSE:Factory/.perl-File-pushd.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-File-pushd" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-File-pushd/perl-File-pushd.changes 2015-04-15 16:21:54.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.perl-File-pushd.new/perl-File-pushd.changes 2016-10-23 12:53:46.000000000 +0200 @@ -1,0 +2,22 @@ +Tue Oct 11 05:33:06 UTC 2016 - [email protected] + +- updated to 1.014 + see /usr/share/doc/packages/perl-File-pushd/Changes + + 1.014 2016-10-09 23:26:19-04:00 America/New_York + + - No changes from 1.013-TRIAL. + + 1.013 2016-10-05 12:57:44-04:00 America/New_York (TRIAL RELEASE) + + [TESTING] + + - Fixed test failures on some 5.8 perls. + + 1.011 2016-10-05 12:35:27-04:00 America/New_York (TRIAL RELEASE) + + [CHANGED] + + - pushd/tempd warn if called in void context (GitHub #9 Olivier Mengué) + +------------------------------------------------------------------- Old: ---- File-pushd-1.009.tar.gz New: ---- File-pushd-1.014.tar.gz cpanspec.yml ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-File-pushd.spec ++++++ --- /var/tmp/diff_new_pack.OBuS7u/_old 2016-10-23 12:53:47.000000000 +0200 +++ /var/tmp/diff_new_pack.OBuS7u/_new 2016-10-23 12:53:47.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-File-pushd # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX 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,20 +17,20 @@ Name: perl-File-pushd -Version: 1.009 +Version: 1.014 Release: 0 %define cpan_name File-pushd -Summary: change directory temporarily for a limited scope +Summary: Change Directory Temporarily for a Limited Scope License: Apache-2.0 Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/File-pushd/ -Source: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{version}.tar.gz +Source0: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Test::More) >= 0.96 -BuildRequires: perl(version) %{perl_requires} %description @@ -43,7 +43,7 @@ This is very handy when working with temporary directories for tasks like testing; a function is provided to streamline getting a temporary directory -from the File::Temp manpage. +from File::Temp. For convenience, the object stringifies as the canonical form of the absolute pathname of the directory entered. @@ -69,6 +69,6 @@ %files -f %{name}.files %defattr(-,root,root,755) -%doc Changes CONTRIBUTING examples LICENSE perlcritic.rc README Todo +%doc Changes CONTRIBUTING.mkdn examples LICENSE README Todo %changelog ++++++ File-pushd-1.009.tar.gz -> File-pushd-1.014.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/File-pushd-1.009/CONTRIBUTING new/File-pushd-1.014/CONTRIBUTING --- old/File-pushd-1.009/CONTRIBUTING 2014-07-03 19:17:52.000000000 +0200 +++ new/File-pushd-1.014/CONTRIBUTING 1970-01-01 01:00:00.000000000 +0100 @@ -1,100 +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). - -Generally, **you do not need Dist::Zilla to contribute patches**. You do need -Dist::Zilla to create a tarball and/or install from the repository. See below -for guidance. - -### 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 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. Depending on the -distribution, some of my 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. - -### Installing from the repository - -If you want to install directly from the repository, you need to have -Dist::Zilla installed (see below). If this is a burden to you, I welcome -patches against a CPAN tarball instead of the repository. - -### Installing and using Dist::Zilla - -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 - -To install from the repository, use: - - $ dzil install - -You can learn more about Dist::Zilla at http://dzil.org/ - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/File-pushd-1.009/CONTRIBUTING.mkdn new/File-pushd-1.014/CONTRIBUTING.mkdn --- old/File-pushd-1.009/CONTRIBUTING.mkdn 1970-01-01 01:00:00.000000000 +0100 +++ new/File-pushd-1.014/CONTRIBUTING.mkdn 2016-10-10 05:26:25.000000000 +0200 @@ -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/ + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/File-pushd-1.009/Changes new/File-pushd-1.014/Changes --- old/File-pushd-1.009/Changes 2014-07-03 19:17:52.000000000 +0200 +++ new/File-pushd-1.014/Changes 2016-10-10 05:26:25.000000000 +0200 @@ -1,5 +1,21 @@ Revision history for Perl module File::pushd +1.014 2016-10-09 23:26:19-04:00 America/New_York + + - No changes from 1.013-TRIAL. + +1.013 2016-10-05 12:57:44-04:00 America/New_York (TRIAL RELEASE) + + [TESTING] + + - Fixed test failures on some 5.8 perls. + +1.011 2016-10-05 12:35:27-04:00 America/New_York (TRIAL RELEASE) + + [CHANGED] + + - pushd/tempd warn if called in void context (GitHub #9 Olivier Mengué) + 1.009 2014-07-03 13:17:48-04:00 America/New_York [FIXED] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/File-pushd-1.009/LICENSE new/File-pushd-1.014/LICENSE --- old/File-pushd-1.009/LICENSE 2014-07-03 19:17:52.000000000 +0200 +++ new/File-pushd-1.014/LICENSE 2016-10-10 05:26:25.000000000 +0200 @@ -1,4 +1,4 @@ -This software is Copyright (c) 2014 by David A Golden. +This software is Copyright (c) 2016 by David A Golden. This is free software, licensed under: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/File-pushd-1.009/MANIFEST new/File-pushd-1.014/MANIFEST --- old/File-pushd-1.009/MANIFEST 2014-07-03 19:17:52.000000000 +0200 +++ new/File-pushd-1.014/MANIFEST 2016-10-10 05:26:25.000000000 +0200 @@ -1,5 +1,5 @@ -# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.019. -CONTRIBUTING +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.008. +CONTRIBUTING.mkdn Changes LICENSE MANIFEST @@ -13,16 +13,18 @@ examples/example.pl lib/File/pushd.pm perlcritic.rc +t/00-report-prereqs.dd t/00-report-prereqs.t t/File_pushd.t t/exception.t +t/void-context.t tidyall.ini xt/author/00-compile.t xt/author/critic.t +xt/author/pod-coverage.t xt/author/pod-spell.t +xt/author/pod-syntax.t +xt/author/portability.t +xt/author/test-version.t xt/release/distmeta.t xt/release/minimum-version.t -xt/release/pod-coverage.t -xt/release/pod-syntax.t -xt/release/portability.t -xt/release/test-version.t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/File-pushd-1.009/META.json new/File-pushd-1.014/META.json --- old/File-pushd-1.009/META.json 2014-07-03 19:17:52.000000000 +0200 +++ new/File-pushd-1.014/META.json 2016-10-10 05:26:25.000000000 +0200 @@ -4,21 +4,21 @@ "David Golden <[email protected]>" ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 5.019, CPAN::Meta::Converter version 2.141170", + "generated_by" : "Dist::Zilla version 6.008, CPAN::Meta::Converter version 2.150010", "license" : [ "apache_2_0" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", - "version" : "2" + "version" : 2 }, "name" : "File-pushd", "no_index" : { "directory" : [ - "t", - "xt", + "corpus", "examples", - "corpus" + "t", + "xt" ], "package" : [ "DB" @@ -27,23 +27,35 @@ "prereqs" : { "configure" : { "requires" : { - "ExtUtils::MakeMaker" : "6.17" + "ExtUtils::MakeMaker" : "6.17", + "perl" : "5.006" + }, + "suggests" : { + "JSON::PP" : "2.27300" } }, "develop" : { "requires" : { "Dist::Zilla" : "5", - "Dist::Zilla::PluginBundle::DAGOLDEN" : "0.060", + "Dist::Zilla::Plugin::ReleaseStatus::FromVersion" : "0", + "Dist::Zilla::PluginBundle::DAGOLDEN" : "0.072", + "English" : "0", "File::Spec" : "0", "File::Temp" : "0", "IO::Handle" : "0", "IPC::Open3" : "0", "Pod::Coverage::TrustPod" : "0", + "Pod::Wordlist" : "0", + "Software::License::Apache_2_0" : "0", "Test::CPAN::Meta" : "0", "Test::More" : "0", "Test::Pod" : "1.41", "Test::Pod::Coverage" : "1.08", - "Test::Spelling" : "0.12" + "Test::Portability::Files" : "0", + "Test::Spelling" : "0.12", + "Test::Version" : "1", + "blib" : "1.01", + "perl" : "5.006" } }, "runtime" : { @@ -62,23 +74,22 @@ }, "test" : { "recommends" : { - "CPAN::Meta" : "0", - "CPAN::Meta::Requirements" : "2.120900" + "CPAN::Meta" : "2.120900" }, "requires" : { "ExtUtils::MakeMaker" : "0", "File::Basename" : "0", + "File::Spec" : "0", "File::Spec::Functions" : "0", - "List::Util" : "0", "Test::More" : "0.96", - "version" : "0" + "perl" : "5.006" } } }, "provides" : { "File::pushd" : { "file" : "lib/File/pushd.pm", - "version" : "1.009" + "version" : "1.014" } }, "release_status" : "stable", @@ -93,11 +104,13 @@ "web" : "https://github.com/dagolden/File-pushd" } }, - "version" : "1.009", + "version" : "1.014", "x_authority" : "cpan:DAGOLDEN", "x_contributors" : [ "Diab Jerius <[email protected]>", - "Graham Ollis <[email protected]>" - ] + "Graham Ollis <[email protected]>", + "Olivier Mengu\u00e9 <[email protected]>" + ], + "x_serialization_backend" : "Cpanel::JSON::XS version 3.0213" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/File-pushd-1.009/META.yml new/File-pushd-1.014/META.yml --- old/File-pushd-1.009/META.yml 2014-07-03 19:17:52.000000000 +0200 +++ new/File-pushd-1.014/META.yml 2016-10-10 05:26:25.000000000 +0200 @@ -5,14 +5,15 @@ build_requires: ExtUtils::MakeMaker: '0' File::Basename: '0' + File::Spec: '0' File::Spec::Functions: '0' - List::Util: '0' Test::More: '0.96' - version: '0' + perl: '5.006' configure_requires: ExtUtils::MakeMaker: '6.17' + perl: '5.006' dynamic_config: 0 -generated_by: 'Dist::Zilla version 5.019, CPAN::Meta::Converter version 2.141170' +generated_by: 'Dist::Zilla version 6.008, CPAN::Meta::Converter version 2.150010' license: apache meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -20,16 +21,16 @@ name: File-pushd no_index: directory: + - corpus + - examples - t - xt - - examples - - corpus package: - DB provides: File::pushd: file: lib/File/pushd.pm - version: '1.009' + version: '1.014' requires: Carp: '0' Cwd: '0' @@ -45,8 +46,10 @@ bugtracker: https://github.com/dagolden/File-pushd/issues homepage: https://github.com/dagolden/File-pushd repository: https://github.com/dagolden/File-pushd.git -version: '1.009' +version: '1.014' x_authority: cpan:DAGOLDEN x_contributors: - 'Diab Jerius <[email protected]>' - 'Graham Ollis <[email protected]>' + - 'Olivier Mengué <[email protected]>' +x_serialization_backend: 'YAML::Tiny version 1.69' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/File-pushd-1.009/Makefile.PL new/File-pushd-1.014/Makefile.PL --- old/File-pushd-1.009/Makefile.PL 2014-07-03 19:17:52.000000000 +0200 +++ new/File-pushd-1.014/Makefile.PL 2016-10-10 05:26:25.000000000 +0200 @@ -1,5 +1,4 @@ - -# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.019. +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.008. use strict; use warnings; @@ -7,8 +6,6 @@ use ExtUtils::MakeMaker 6.17; - - my %WriteMakefileArgs = ( "ABSTRACT" => "change directory temporarily for a limited scope", "AUTHOR" => "David Golden <dagolden\@cpan.org>", @@ -16,8 +13,8 @@ "ExtUtils::MakeMaker" => "6.17" }, "DISTNAME" => "File-pushd", - "EXE_FILES" => [], "LICENSE" => "apache", + "MIN_PERL_VERSION" => "5.006", "NAME" => "File::pushd", "PREREQ_PM" => { "Carp" => 0, @@ -33,12 +30,11 @@ "TEST_REQUIRES" => { "ExtUtils::MakeMaker" => 0, "File::Basename" => 0, + "File::Spec" => 0, "File::Spec::Functions" => 0, - "List::Util" => 0, - "Test::More" => "0.96", - "version" => 0 + "Test::More" => "0.96" }, - "VERSION" => "1.009", + "VERSION" => "1.014", "test" => { "TESTS" => "t/*.t" } @@ -55,11 +51,9 @@ "File::Spec" => 0, "File::Spec::Functions" => 0, "File::Temp" => 0, - "List::Util" => 0, "Test::More" => "0.96", "overload" => 0, "strict" => 0, - "version" => 0, "warnings" => 0 ); @@ -74,6 +68,3 @@ unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; WriteMakefile(%WriteMakefileArgs); - - - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/File-pushd-1.009/README new/File-pushd-1.014/README --- old/File-pushd-1.009/README 2014-07-03 19:17:52.000000000 +0200 +++ new/File-pushd-1.014/README 2016-10-10 05:26:25.000000000 +0200 @@ -2,7 +2,7 @@ File::pushd - change directory temporarily for a limited scope VERSION - version 1.009 + version 1.014 SYNOPSIS use File::pushd; @@ -110,6 +110,17 @@ "pushd" are always preserved.) "preserve" returns true if the directory will be preserved, and false otherwise. +DIAGNOSTICS + "pushd" and "tempd" warn with message "Useless use of File::pushd::*%s* + in void context" if called in void context and the warnings category + "void" is enabled. + + { + use warnings 'void'; + + pushd(); + } + SEE ALSO * File::chdir @@ -135,8 +146,10 @@ * Graham Ollis <[email protected]> + * Olivier Mengué <[email protected]> + COPYRIGHT AND LICENSE - This software is Copyright (c) 2014 by David A Golden. + This software is Copyright (c) 2016 by David A Golden. This is free software, licensed under: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/File-pushd-1.009/cpanfile new/File-pushd-1.014/cpanfile --- old/File-pushd-1.009/cpanfile 2014-07-03 19:17:52.000000000 +0200 +++ new/File-pushd-1.014/cpanfile 2016-10-10 05:26:25.000000000 +0200 @@ -12,32 +12,44 @@ on 'test' => sub { requires "ExtUtils::MakeMaker" => "0"; requires "File::Basename" => "0"; + requires "File::Spec" => "0"; requires "File::Spec::Functions" => "0"; - requires "List::Util" => "0"; requires "Test::More" => "0.96"; - requires "version" => "0"; + requires "perl" => "5.006"; }; 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.17"; + requires "perl" => "5.006"; +}; + +on 'configure' => sub { + suggests "JSON::PP" => "2.27300"; }; on 'develop' => sub { requires "Dist::Zilla" => "5"; - requires "Dist::Zilla::PluginBundle::DAGOLDEN" => "0.060"; + requires "Dist::Zilla::Plugin::ReleaseStatus::FromVersion" => "0"; + requires "Dist::Zilla::PluginBundle::DAGOLDEN" => "0.072"; + requires "English" => "0"; requires "File::Spec" => "0"; requires "File::Temp" => "0"; requires "IO::Handle" => "0"; requires "IPC::Open3" => "0"; requires "Pod::Coverage::TrustPod" => "0"; + requires "Pod::Wordlist" => "0"; + requires "Software::License::Apache_2_0" => "0"; requires "Test::CPAN::Meta" => "0"; requires "Test::More" => "0"; requires "Test::Pod" => "1.41"; requires "Test::Pod::Coverage" => "1.08"; + requires "Test::Portability::Files" => "0"; requires "Test::Spelling" => "0.12"; + requires "Test::Version" => "1"; + requires "blib" => "1.01"; + requires "perl" => "5.006"; }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/File-pushd-1.009/dist.ini new/File-pushd-1.014/dist.ini --- old/File-pushd-1.009/dist.ini 2014-07-03 19:17:52.000000000 +0200 +++ new/File-pushd-1.014/dist.ini 2016-10-10 05:26:25.000000000 +0200 @@ -4,7 +4,10 @@ copyright_holder = David A Golden [@DAGOLDEN] -:version = 0.060 +:version = 0.072 stopwords = destructor stopwords = pathname stopwords = tempd + +[ReleaseStatus::FromVersion] +testing = third_decimal_odd diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/File-pushd-1.009/lib/File/pushd.pm new/File-pushd-1.014/lib/File/pushd.pm --- old/File-pushd-1.009/lib/File/pushd.pm 2014-07-03 19:17:52.000000000 +0200 +++ new/File-pushd-1.014/lib/File/pushd.pm 2016-10-10 05:26:25.000000000 +0200 @@ -3,7 +3,8 @@ package File::pushd; # ABSTRACT: change directory temporarily for a limited scope -our $VERSION = '1.009'; # VERSION + +our $VERSION = '1.014'; our @EXPORT = qw( pushd tempd ); our @ISA = qw( Exporter ); @@ -24,6 +25,12 @@ #--------------------------------------------------------------------------# sub pushd { + # Called in void context? + unless (defined wantarray) { + warnings::warnif(void => 'Useless use of File::pushd::pushd in void context'); + return + } + my ( $target_dir, $options ) = @_; $options->{untaint_pattern} ||= qr{^([-+@\w./]+)$}; @@ -69,6 +76,12 @@ #--------------------------------------------------------------------------# sub tempd { + # Called in void context? + unless (defined wantarray) { + warnings::warnif(void => 'Useless use of File::pushd::tempd in void context'); + return + } + my ($options) = @_; my $dir; eval { $dir = pushd( File::Temp::tempdir( CLEANUP => 0 ), $options ) }; @@ -127,7 +140,7 @@ =head1 VERSION -version 1.009 +version 1.014 =head1 SYNOPSIS @@ -238,6 +251,18 @@ C<preserve> returns true if the directory will be preserved, and false otherwise. +=head1 DIAGNOSTICS + +C<pushd> and C<tempd> warn with message +C<"Useless use of File::pushd::I<%s> in void context"> if called in +void context and the warnings category C<void> is enabled. + + { + use warnings 'void'; + + pushd(); + } + =head1 SEE ALSO =over 4 @@ -273,6 +298,8 @@ =head1 CONTRIBUTORS +=for stopwords Diab Jerius Graham Ollis Olivier Mengué + =over 4 =item * @@ -283,11 +310,15 @@ Graham Ollis <[email protected]> +=item * + +Olivier Mengué <[email protected]> + =back =head1 COPYRIGHT AND LICENSE -This software is Copyright (c) 2014 by David A Golden. +This software is Copyright (c) 2016 by David A Golden. This is free software, licensed under: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/File-pushd-1.009/t/00-report-prereqs.dd new/File-pushd-1.014/t/00-report-prereqs.dd --- old/File-pushd-1.009/t/00-report-prereqs.dd 1970-01-01 01:00:00.000000000 +0100 +++ new/File-pushd-1.014/t/00-report-prereqs.dd 2016-10-10 05:26:25.000000000 +0200 @@ -0,0 +1,64 @@ +do { my $x = { + 'configure' => { + 'requires' => { + 'ExtUtils::MakeMaker' => '6.17', + 'perl' => '5.006' + }, + 'suggests' => { + 'JSON::PP' => '2.27300' + } + }, + 'develop' => { + 'requires' => { + 'Dist::Zilla' => '5', + 'Dist::Zilla::Plugin::ReleaseStatus::FromVersion' => '0', + 'Dist::Zilla::PluginBundle::DAGOLDEN' => '0.072', + 'English' => '0', + 'File::Spec' => '0', + 'File::Temp' => '0', + 'IO::Handle' => '0', + 'IPC::Open3' => '0', + 'Pod::Coverage::TrustPod' => '0', + 'Pod::Wordlist' => '0', + 'Software::License::Apache_2_0' => '0', + 'Test::CPAN::Meta' => '0', + 'Test::More' => '0', + 'Test::Pod' => '1.41', + 'Test::Pod::Coverage' => '1.08', + 'Test::Portability::Files' => '0', + 'Test::Spelling' => '0.12', + 'Test::Version' => '1', + 'blib' => '1.01', + 'perl' => '5.006' + } + }, + 'runtime' => { + 'requires' => { + 'Carp' => '0', + 'Cwd' => '0', + 'Exporter' => '0', + 'File::Path' => '0', + 'File::Spec' => '0', + 'File::Temp' => '0', + 'overload' => '0', + 'perl' => '5.006', + 'strict' => '0', + 'warnings' => '0' + } + }, + 'test' => { + 'recommends' => { + 'CPAN::Meta' => '2.120900' + }, + 'requires' => { + 'ExtUtils::MakeMaker' => '0', + 'File::Basename' => '0', + 'File::Spec' => '0', + 'File::Spec::Functions' => '0', + 'Test::More' => '0.96', + 'perl' => '5.006' + } + } + }; + $x; + } \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/File-pushd-1.009/t/00-report-prereqs.t new/File-pushd-1.014/t/00-report-prereqs.t --- old/File-pushd-1.009/t/00-report-prereqs.t 2014-07-03 19:17:52.000000000 +0200 +++ new/File-pushd-1.014/t/00-report-prereqs.t 2016-10-10 05:26:25.000000000 +0200 @@ -3,183 +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.025 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.17' - } - }, - 'develop' => { - 'requires' => { - 'Dist::Zilla' => '5', - 'Dist::Zilla::PluginBundle::DAGOLDEN' => '0.060', - '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' - } - }, - 'runtime' => { - 'requires' => { - 'Carp' => '0', - 'Cwd' => '0', - 'Exporter' => '0', - 'File::Path' => '0', - 'File::Spec' => '0', - 'File::Temp' => '0', - 'overload' => '0', - 'perl' => '5.006', - 'strict' => '0', - 'warnings' => '0' - } - }, - 'test' => { - 'recommends' => { - 'CPAN::Meta' => '0', - 'CPAN::Meta::Requirements' => '2.120900' - }, - 'requires' => { - 'ExtUtils::MakeMaker' => '0', - 'File::Basename' => '0', - 'File::Spec::Functions' => '0', - 'List::Util' => '0', - 'Test::More' => '0.96', - 'version' => '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 ( $source && $HAS_CPAN_META + && (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 : {}; +my $req_hash = $HAS_CPAN_META ? $full_prereqs->as_string_hash : $full_prereqs; -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'"; +# 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 ( $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 ( @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 ($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; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/File-pushd-1.009/t/exception.t new/File-pushd-1.014/t/exception.t --- old/File-pushd-1.009/t/exception.t 2014-07-03 19:17:52.000000000 +0200 +++ new/File-pushd-1.014/t/exception.t 2016-10-10 05:26:25.000000000 +0200 @@ -15,7 +15,7 @@ # # This file is part of File-pushd # -# This software is Copyright (c) 2014 by David A Golden. +# This software is Copyright (c) 2016 by David A Golden. # # This is free software, licensed under: # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/File-pushd-1.009/t/void-context.t new/File-pushd-1.014/t/void-context.t --- old/File-pushd-1.009/t/void-context.t 1970-01-01 01:00:00.000000000 +0100 +++ new/File-pushd-1.014/t/void-context.t 2016-10-10 05:26:25.000000000 +0200 @@ -0,0 +1,48 @@ +use strict; +use warnings; +use Test::More 0.96; +use File::pushd; + +my @warnings; + +$SIG{__WARN__} = sub { + push @warnings, $_[0]; +}; + +{ + no warnings 'void'; + + @warnings = (); + pushd; # Calling in void context + is_deeply( \@warnings, [], 'no warning if "void" category disabled' ); + @warnings = (); + tempd; # Calling in void context + is_deeply( \@warnings, [], 'no warning if "void" category disabled' ); + + @warnings = (); +} + +{ + no warnings; + use warnings 'void'; + + @warnings = (); + #<<< No perltidy + pushd; # Calling in void context + my $expected = 'Useless use of File::pushd::pushd in void context at '.__FILE__.' line '.(__LINE__-1); + #>>> + is( scalar @warnings, 1, "pushd: got one warning" ); + like( $warnings[0], qr/^\Q$expected\E/, 'warning if "void" category enabled' ); + + @warnings = (); + #<<< No perltidy + tempd; # Calling in void context + $expected = 'Useless use of File::pushd::tempd in void context at '.__FILE__.' line '.(__LINE__-1); + #>>> + is( scalar @warnings, 1, "tempd: got one warning" ); + like( $warnings[0], qr/^\Q$expected\E/, 'warning if "void" category enabled' ); + + @warnings = (); +} + +done_testing; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/File-pushd-1.009/xt/author/00-compile.t new/File-pushd-1.014/xt/author/00-compile.t --- old/File-pushd-1.009/xt/author/00-compile.t 2014-07-03 19:17:52.000000000 +0200 +++ new/File-pushd-1.014/xt/author/00-compile.t 2016-10-10 05:26:25.000000000 +0200 @@ -2,11 +2,11 @@ use strict; use warnings; -# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.043 - -use Test::More tests => 1 + ($ENV{AUTHOR_TESTING} ? 1 : 0); +# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.054 +use Test::More; +plan tests => 2; my @module_files = ( 'File/pushd.pm' @@ -39,6 +39,9 @@ waitpid($pid, 0); is($?, 0, "$lib loaded ok"); + shift @_warnings if @_warnings and $_warnings[0] =~ /^Using .*\bblib/ + and not eval { require blib; blib->VERSION('1.01') }; + if (@_warnings) { warn @_warnings; @@ -48,6 +51,7 @@ -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) ); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/File-pushd-1.009/xt/author/pod-coverage.t new/File-pushd-1.014/xt/author/pod-coverage.t --- old/File-pushd-1.009/xt/author/pod-coverage.t 1970-01-01 01:00:00.000000000 +0100 +++ new/File-pushd-1.014/xt/author/pod-coverage.t 2016-10-10 05:26:25.000000000 +0200 @@ -0,0 +1,7 @@ +#!perl +# This file was automatically generated by Dist::Zilla::Plugin::PodCoverageTests. + +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/File-pushd-1.009/xt/author/pod-spell.t new/File-pushd-1.014/xt/author/pod-spell.t --- old/File-pushd-1.009/xt/author/pod-spell.t 2014-07-03 19:17:52.000000000 +0200 +++ new/File-pushd-1.014/xt/author/pod-spell.t 2016-10-10 05:26:25.000000000 +0200 @@ -2,26 +2,29 @@ use warnings; use Test::More; -# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.006008 +# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.007003 use Test::Spelling 0.12; use Pod::Wordlist; add_stopwords(<DATA>); -all_pod_files_spelling_ok( qw( bin lib ) ); +all_pod_files_spelling_ok( qw( bin lib ) ); __DATA__ -destructor -pathname -tempd David -Golden -dagolden Diab -Jerius -djerius +File +Golden Graham +Jerius +Mengué +Olivier Ollis -plicease +dagolden +destructor +djerius +dolmen lib -File +pathname +plicease pushd +tempd diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/File-pushd-1.009/xt/author/pod-syntax.t new/File-pushd-1.014/xt/author/pod-syntax.t --- old/File-pushd-1.009/xt/author/pod-syntax.t 1970-01-01 01:00:00.000000000 +0100 +++ new/File-pushd-1.014/xt/author/pod-syntax.t 2016-10-10 05:26:25.000000000 +0200 @@ -0,0 +1,7 @@ +#!perl +# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. +use strict; use warnings; +use Test::More; +use Test::Pod 1.41; + +all_pod_files_ok(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/File-pushd-1.009/xt/author/portability.t new/File-pushd-1.014/xt/author/portability.t --- old/File-pushd-1.009/xt/author/portability.t 1970-01-01 01:00:00.000000000 +0100 +++ new/File-pushd-1.014/xt/author/portability.t 2016-10-10 05:26:25.000000000 +0200 @@ -0,0 +1,10 @@ +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/File-pushd-1.009/xt/author/test-version.t new/File-pushd-1.014/xt/author/test-version.t --- old/File-pushd-1.009/xt/author/test-version.t 1970-01-01 01:00:00.000000000 +0100 +++ new/File-pushd-1.014/xt/author/test-version.t 2016-10-10 05:26:25.000000000 +0200 @@ -0,0 +1,23 @@ +use strict; +use warnings; +use Test::More; + +# generated by Dist::Zilla::Plugin::Test::Version 1.09 +use Test::Version; + +my @imports = qw( version_all_ok ); + +my $params = { + is_strict => 0, + has_version => 1, + multiple => 0, + +}; + +push @imports, $params + if version->parse( $Test::Version::VERSION ) >= version->parse('1.002'); + +Test::Version->import(@imports); + +version_all_ok; +done_testing; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/File-pushd-1.009/xt/release/pod-coverage.t new/File-pushd-1.014/xt/release/pod-coverage.t --- old/File-pushd-1.009/xt/release/pod-coverage.t 2014-07-03 19:17:52.000000000 +0200 +++ new/File-pushd-1.014/xt/release/pod-coverage.t 1970-01-01 01:00:00.000000000 +0100 @@ -1,7 +0,0 @@ -#!perl -# This file was automatically generated by Dist::Zilla::Plugin::PodCoverageTests. - -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/File-pushd-1.009/xt/release/pod-syntax.t new/File-pushd-1.014/xt/release/pod-syntax.t --- old/File-pushd-1.009/xt/release/pod-syntax.t 2014-07-03 19:17:52.000000000 +0200 +++ new/File-pushd-1.014/xt/release/pod-syntax.t 1970-01-01 01:00:00.000000000 +0100 @@ -1,6 +0,0 @@ -#!perl -# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. -use Test::More; -use Test::Pod 1.41; - -all_pod_files_ok(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/File-pushd-1.009/xt/release/portability.t new/File-pushd-1.014/xt/release/portability.t --- old/File-pushd-1.009/xt/release/portability.t 2014-07-03 19:17:52.000000000 +0200 +++ new/File-pushd-1.014/xt/release/portability.t 1970-01-01 01:00:00.000000000 +0100 @@ -1,12 +0,0 @@ -#!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/File-pushd-1.009/xt/release/test-version.t new/File-pushd-1.014/xt/release/test-version.t --- old/File-pushd-1.009/xt/release/test-version.t 2014-07-03 19:17:52.000000000 +0200 +++ new/File-pushd-1.014/xt/release/test-version.t 1970-01-01 01:00:00.000000000 +0100 @@ -1,22 +0,0 @@ -use strict; -use warnings; -use Test::More; - -# 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; ++++++ cpanspec.yml ++++++ --- #description_paragraphs: 3 #description: |- # override description from CPAN #summary: override summary from CPAN #no_testing: broken upstream #sources: # - source1 # - source2 #patches: # foo.patch: -p1 # bar.patch: #preamble: |- # BuildRequires: gcc-c++ #post_prep: |- # hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` # sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL #post_build: |- # rm unused.files #post_install: |- # sed on %{name}.files #license: SUSE-NonFree #skip_noarch: 1 #custom_build: |- #./Build build flags=%{?_smp_mflags} --myflag #custom_test: |- #startserver && make test #ignore_requires: Bizarre::Module
