Hello community, here is the log from the commit of package perl-Perl-PrereqScanner for openSUSE:Factory checked in at 2013-06-13 20:06:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Perl-PrereqScanner (Old) and /work/SRC/openSUSE:Factory/.perl-Perl-PrereqScanner.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Perl-PrereqScanner" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Perl-PrereqScanner/perl-Perl-PrereqScanner.changes 2012-05-29 10:34:40.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Perl-PrereqScanner.new/perl-Perl-PrereqScanner.changes 2013-06-13 20:06:43.000000000 +0200 @@ -1,0 +2,17 @@ +Sun Jun 9 14:59:03 UTC 2013 - co...@suse.com + +- updated to 1.015 + - document that "no Module" also works (thanks for the report, Toby Inkster) + + - require a more recent PPI for various bugfixes that broke tests + (thanks for the report, Salve J. Nilsen) + + - make scan_prereqs scan directories recursively (thanks, Jakob Voss) + + - if PPI parsing fails, include PPI::Document->errstr in error message + (Christopher J. Madsen) + + - fix "with (...)" where spaces occur between with and parenthesized list + (thanks to celogeek for the failing test) + +------------------------------------------------------------------- Old: ---- Perl-PrereqScanner-1.011.tar.gz New: ---- Perl-PrereqScanner-1.015.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Perl-PrereqScanner.spec ++++++ --- /var/tmp/diff_new_pack.WWIC19/_old 2013-06-13 20:06:44.000000000 +0200 +++ /var/tmp/diff_new_pack.WWIC19/_new 2013-06-13 20:06:44.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Perl-PrereqScanner # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,14 +17,14 @@ Name: perl-Perl-PrereqScanner -Version: 1.011 +Version: 1.015 Release: 0 %define cpan_name Perl-PrereqScanner Summary: A tool to scan your Perl code for its prerequisites License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Perl-PrereqScanner/ -Source: http://www.cpan.org/authors/id/J/JQ/JQUELIN/%{cpan_name}-%{version}.tar.gz +Source: http://www.cpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl @@ -33,7 +33,7 @@ BuildRequires: perl(List::MoreUtils) BuildRequires: perl(Moose) BuildRequires: perl(Moose::Role) -BuildRequires: perl(PPI) >= 1.205 +BuildRequires: perl(PPI) >= 1.215 BuildRequires: perl(PPI::Document) BuildRequires: perl(Params::Util) BuildRequires: perl(String::RewritePrefix) >= 0.005 @@ -46,7 +46,7 @@ Requires: perl(List::MoreUtils) Requires: perl(Moose) Requires: perl(Moose::Role) -Requires: perl(PPI) >= 1.205 +Requires: perl(PPI) >= 1.215 Requires: perl(Params::Util) Requires: perl(String::RewritePrefix) >= 0.005 Requires: perl(namespace::autoclean) ++++++ Perl-PrereqScanner-1.011.tar.gz -> Perl-PrereqScanner-1.015.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Perl-PrereqScanner-1.011/Changes new/Perl-PrereqScanner-1.015/Changes --- old/Perl-PrereqScanner-1.011/Changes 2012-03-07 13:08:53.000000000 +0100 +++ new/Perl-PrereqScanner-1.015/Changes 2012-12-15 04:07:58.000000000 +0100 @@ -1,5 +1,22 @@ Revision history for Perl-PrereqScanner +1.015 2012-12-14 22:07:55 America/New_York + - document that "no Module" also works (thanks for the report, Toby Inkster) + +1.014 2012-07-26 13:22:02 America/New_York + - require a more recent PPI for various bugfixes that broke tests + (thanks for the report, Salve J. Nilsen) + +1.013 2012-07-01 17:21:25 America/New_York + - make scan_prereqs scan directories recursively (thanks, Jakob Voss) + + - if PPI parsing fails, include PPI::Document->errstr in error message + (Christopher J. Madsen) + +1.012 2012-06-27 16:17:28 America/New_York + - fix "with (...)" where spaces occur between with and parenthesized list + (thanks to celogeek for the failing test) + 1.011 2012-03-07 13:08:49 Europe/Paris - require CPAN::Meta::Requirements 2.120630 and fix tests to reflect its v-string normalizing behavior diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Perl-PrereqScanner-1.011/Changes~ new/Perl-PrereqScanner-1.015/Changes~ --- old/Perl-PrereqScanner-1.011/Changes~ 2012-03-07 13:08:53.000000000 +0100 +++ new/Perl-PrereqScanner-1.015/Changes~ 1970-01-01 01:00:00.000000000 +0100 @@ -1,86 +0,0 @@ -Revision history for Perl-PrereqScanner - -{{$NEXT}} - -1.006 2011-08-20 14:03:24 Europe/Paris - - add the POE scanner for POE components (David Golden) - -1.005 2011-08-17 18:39:22 America/New_York - - stop stripping "always core" prereqs like strict and warnings - - - add the Aliased scanner for aliased.pm (thanks, David Golden) - -1.004 2011-05-30 21:02:52 America/New_York - - avoid calling a method on undef (i.e., cope with PPI doing surprising - things) - -1.003 2011-05-16 15:46:02 America/New_York - - fix a bug that caused things like "within" and "trextends" to trigger - the Moose scanner - -1.002 2011-02-02 10:21:55 Europe/Paris - - fix rt#61608 - missing description in whatisentry for TestMore.pm - -1.001 2011-01-05 16:35:26 Europe/Paris - - fix bin/prereqs (randy stauner) - -1.000 2010-12-06 17:54:20 Europe/Paris - - fix rt#59016 - support for moose 1.03 version declarations (apocalypse) - -0.101892 2010-12-03 17:15:25 Europe/Paris - - throw an exception if PPI fails to parse code (vyacheslav matjukhin) - -0.101891 2010-09-05 15:31:49 America/New_York - - add a core scanner for Test::More's done_testing - - do not detect prereqs for invalid class names in Moose scanner - - added TODO tests for "with('Name')" -- note the parens - -0.101890 2010-07-08 18:45:57 Europe/Paris - - fix rt#59121 - remove lurking temp files - -0.101480 2010-05-28 08:41:56 America/New_York - - bump prereq version of String::RewritePrefix - -0.101250 2010-05-05 09:32:19 America/New_York - - convert to Moose object system - - add the Scanner role and pluggable scanners - -0.100960 2010-04-06 17:03:46 Europe/Paris - - add 'feature' pragma to skip list (mark gardner) - - added some tests (mark gardner) - -0.100830 2010-03-24 13:37:31 Europe/Paris - - fix rt#55713: support for use parent -norequire - - fix rt#55851: 'require $foo;' shouldn't add any prereq - -0.100690 2010-03-10 21:06:49 America/New_York - - remove another 5.10-ism - -0.100680 2010-03-09 19:10:27 America/New_York - - fix PPI version required (thanks, Christopher J. Madsen) - -0.100630 2010-03-04 22:58:55 America/New_York - - work on perl 5.8 - - require a newer Version::Requirements with critical bugfix - -0.100521 2010-02-21 23:20:55 America/New_York - - scanning methods now return Version::Requirements objects - -0.100520 2010-02-21 15:55:31 America/New_York - - add perl prereq to Makefile.PL to stop test failures - -0.100510 2010-02-20 17:38:59 America/New_York - - typo fixes (ricardo signes) - - new script scan_prereqs - - prereq accounting now managed by Version::Requirements - - easier-to-link-to Pod - -0.100491 2010-02-18 19:16:15 Europe/Paris - - added a changelog (this file) - -0.100490 2010-02-18 19:10:32 Europe/Paris - - factored out from dist-zilla-plugin-autoprereq - - fix qw and base-ver parent-ver (ricardo signes) - - require base if version given (ricardo signes) - - refactor with/extends (ricardo signes) - - new methods scan_string() / scan_file() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Perl-PrereqScanner-1.011/MANIFEST new/Perl-PrereqScanner-1.015/MANIFEST --- old/Perl-PrereqScanner-1.011/MANIFEST 2012-03-07 13:08:53.000000000 +0100 +++ new/Perl-PrereqScanner-1.015/MANIFEST 2012-12-15 04:07:58.000000000 +0100 @@ -1,5 +1,4 @@ Changes -Changes~ LICENSE MANIFEST META.json @@ -17,6 +16,9 @@ lib/Perl/PrereqScanner/Scanner/POE.pm lib/Perl/PrereqScanner/Scanner/Perl5.pm lib/Perl/PrereqScanner/Scanner/TestMore.pm +t/00-compile.t +t/000-report-versions-tiny.t t/autoprereq.t -t/release-pod-syntax.t t/scan_prereqs.t +xt/release/changes_has_content.t +xt/release/pod-syntax.t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Perl-PrereqScanner-1.011/META.json new/Perl-PrereqScanner-1.015/META.json --- old/Perl-PrereqScanner-1.011/META.json 2012-03-07 13:08:53.000000000 +0100 +++ new/Perl-PrereqScanner-1.015/META.json 2012-12-15 04:07:58.000000000 +0100 @@ -5,7 +5,7 @@ "Ricardo Signes <r...@cpan.org>" ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 4.300009, CPAN::Meta::Converter version 2.120630", + "generated_by" : "Dist::Zilla version 4.300028, CPAN::Meta::Converter version 2.120921", "license" : [ "perl_5" ], @@ -20,9 +20,16 @@ "ExtUtils::MakeMaker" : "6.30" } }, + "develop" : { + "requires" : { + "Test::Pod" : "1.41", + "version" : "0.9901" + } + }, "runtime" : { "requires" : { "CPAN::Meta::Requirements" : "2.120630", + "File::Find" : "0", "File::Spec::Functions" : "0", "FindBin" : "0", "Getopt::Long" : "0", @@ -30,7 +37,7 @@ "List::Util" : "0", "Moose" : "0", "Moose::Role" : "0", - "PPI" : "1.205", + "PPI" : "1.215", "Params::Util" : "0", "String::RewritePrefix" : "0.005", "namespace::autoclean" : "0", @@ -58,13 +65,21 @@ }, "x_MailingList" : "http://www.listbox.com/subscribe/?list_id=139292" }, - "version" : "1.011", + "version" : "1.015", "x_Dist_Zilla" : { + "perl" : { + "version" : "5.017006" + }, "plugins" : [ { "class" : "Dist::Zilla::Plugin::MetaResources", "name" : "MetaResources", - "version" : "4.300009" + "version" : "4.300028" + }, + { + "class" : "Dist::Zilla::Plugin::Git::GatherDir", + "name" : "@RJBS/Git::GatherDir", + "version" : "2.003" }, { "class" : "Dist::Zilla::Plugin::CheckPrereqsIndexed", @@ -72,114 +87,119 @@ "version" : "0.007" }, { - "class" : "Dist::Zilla::Plugin::GatherDir", - "name" : "@RJBS/@Basic/GatherDir", - "version" : "4.300009" + "class" : "Dist::Zilla::Plugin::CheckExtraTests", + "name" : "@RJBS/CheckExtraTests", + "version" : "0.007" }, { "class" : "Dist::Zilla::Plugin::PruneCruft", - "name" : "@RJBS/@Basic/PruneCruft", - "version" : "4.300009" + "name" : "@RJBS/@Filter/PruneCruft", + "version" : "4.300028" }, { "class" : "Dist::Zilla::Plugin::ManifestSkip", - "name" : "@RJBS/@Basic/ManifestSkip", - "version" : "4.300009" + "name" : "@RJBS/@Filter/ManifestSkip", + "version" : "4.300028" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", - "name" : "@RJBS/@Basic/MetaYAML", - "version" : "4.300009" + "name" : "@RJBS/@Filter/MetaYAML", + "version" : "4.300028" }, { "class" : "Dist::Zilla::Plugin::License", - "name" : "@RJBS/@Basic/License", - "version" : "4.300009" + "name" : "@RJBS/@Filter/License", + "version" : "4.300028" }, { "class" : "Dist::Zilla::Plugin::Readme", - "name" : "@RJBS/@Basic/Readme", - "version" : "4.300009" - }, - { - "class" : "Dist::Zilla::Plugin::ExtraTests", - "name" : "@RJBS/@Basic/ExtraTests", - "version" : "4.300009" + "name" : "@RJBS/@Filter/Readme", + "version" : "4.300028" }, { "class" : "Dist::Zilla::Plugin::ExecDir", - "name" : "@RJBS/@Basic/ExecDir", - "version" : "4.300009" + "name" : "@RJBS/@Filter/ExecDir", + "version" : "4.300028" }, { "class" : "Dist::Zilla::Plugin::ShareDir", - "name" : "@RJBS/@Basic/ShareDir", - "version" : "4.300009" + "name" : "@RJBS/@Filter/ShareDir", + "version" : "4.300028" }, { "class" : "Dist::Zilla::Plugin::MakeMaker", - "name" : "@RJBS/@Basic/MakeMaker", - "version" : "4.300009" + "name" : "@RJBS/@Filter/MakeMaker", + "version" : "4.300028" }, { "class" : "Dist::Zilla::Plugin::Manifest", - "name" : "@RJBS/@Basic/Manifest", - "version" : "4.300009" + "name" : "@RJBS/@Filter/Manifest", + "version" : "4.300028" }, { "class" : "Dist::Zilla::Plugin::TestRelease", - "name" : "@RJBS/@Basic/TestRelease", - "version" : "4.300009" + "name" : "@RJBS/@Filter/TestRelease", + "version" : "4.300028" }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", - "name" : "@RJBS/@Basic/ConfirmRelease", - "version" : "4.300009" + "name" : "@RJBS/@Filter/ConfirmRelease", + "version" : "4.300028" }, { "class" : "Dist::Zilla::Plugin::UploadToCPAN", - "name" : "@RJBS/@Basic/UploadToCPAN", - "version" : "4.300009" + "name" : "@RJBS/@Filter/UploadToCPAN", + "version" : "4.300028" }, { "class" : "Dist::Zilla::Plugin::AutoPrereqs", "name" : "@RJBS/AutoPrereqs", - "version" : "4.300009" + "version" : "4.300028" }, { "class" : "Dist::Zilla::Plugin::Git::NextVersion", "name" : "@RJBS/Git::NextVersion", - "version" : "1.120370" + "version" : "2.003" }, { "class" : "Dist::Zilla::Plugin::PkgVersion", "name" : "@RJBS/PkgVersion", - "version" : "4.300009" + "version" : "4.300028" }, { "class" : "Dist::Zilla::Plugin::MetaConfig", "name" : "@RJBS/MetaConfig", - "version" : "4.300009" + "version" : "4.300028" }, { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "@RJBS/MetaJSON", - "version" : "4.300009" + "version" : "4.300028" }, { "class" : "Dist::Zilla::Plugin::NextRelease", "name" : "@RJBS/NextRelease", - "version" : "4.300009" + "version" : "4.300028" + }, + { + "class" : "Dist::Zilla::Plugin::Test::ChangesHasContent", + "name" : "@RJBS/Test::ChangesHasContent", + "version" : "0.006" }, { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "@RJBS/PodSyntaxTests", - "version" : "4.300009" + "version" : "4.300028" + }, + { + "class" : "Dist::Zilla::Plugin::Test::Compile", + "name" : "@RJBS/Test::Compile", + "version" : "1.112820" }, { - "class" : "Dist::Zilla::Plugin::Repository", - "name" : "@RJBS/Repository", - "version" : "0.18" + "class" : "Dist::Zilla::Plugin::ReportVersions::Tiny", + "name" : "@RJBS/ReportVersions::Tiny", + "version" : "1.08" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -190,7 +210,7 @@ } }, "name" : "@RJBS/TestMoreWithSubtests", - "version" : "4.300009" + "version" : "4.300028" }, { "class" : "Dist::Zilla::Plugin::PodWeaver", @@ -205,52 +225,52 @@ { "class" : "Dist::Zilla::Plugin::Git::Check", "name" : "@RJBS/@Git/Check", - "version" : "1.120370" + "version" : "2.003" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", "name" : "@RJBS/@Git/Commit", - "version" : "1.120370" + "version" : "2.003" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", "name" : "@RJBS/@Git/Tag", - "version" : "1.120370" + "version" : "2.003" }, { "class" : "Dist::Zilla::Plugin::Git::Push", "name" : "@RJBS/@Git/Push", - "version" : "1.120370" + "version" : "2.003" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", - "version" : "4.300009" + "version" : "4.300028" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":IncModules", - "version" : "4.300009" + "version" : "4.300028" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", - "version" : "4.300009" + "version" : "4.300028" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", - "version" : "4.300009" + "version" : "4.300028" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", - "version" : "4.300009" + "version" : "4.300028" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":MainModule", - "version" : "4.300009" + "version" : "4.300028" } ], "zilla" : { @@ -258,7 +278,7 @@ "config" : { "is_trial" : "0" }, - "version" : "4.300009" + "version" : "4.300028" } } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Perl-PrereqScanner-1.011/META.yml new/Perl-PrereqScanner-1.015/META.yml --- old/Perl-PrereqScanner-1.011/META.yml 2012-03-07 13:08:53.000000000 +0100 +++ new/Perl-PrereqScanner-1.015/META.yml 2012-12-15 04:07:58.000000000 +0100 @@ -11,7 +11,7 @@ configure_requires: ExtUtils::MakeMaker: 6.30 dynamic_config: 0 -generated_by: 'Dist::Zilla version 4.300009, CPAN::Meta::Converter version 2.120630' +generated_by: 'Dist::Zilla version 4.300028, CPAN::Meta::Converter version 2.120921' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -19,6 +19,7 @@ name: Perl-PrereqScanner requires: CPAN::Meta::Requirements: 2.120630 + File::Find: 0 File::Spec::Functions: 0 FindBin: 0 Getopt::Long: 0 @@ -26,7 +27,7 @@ List::Util: 0 Moose: 0 Moose::Role: 0 - PPI: 1.205 + PPI: 1.215 Params::Util: 0 String::RewritePrefix: 0.005 namespace::autoclean: 0 @@ -37,105 +38,115 @@ homepage: https://github.com/rjbs/perl-prereqscanner repository: https://github.com/rjbs/perl-prereqscanner.git x_MailingList: http://www.listbox.com/subscribe/?list_id=139292 -version: 1.011 +version: 1.015 x_Dist_Zilla: + perl: + version: 5.017006 plugins: - class: Dist::Zilla::Plugin::MetaResources name: MetaResources - version: 4.300009 + version: 4.300028 + - + class: Dist::Zilla::Plugin::Git::GatherDir + name: '@RJBS/Git::GatherDir' + version: 2.003 - class: Dist::Zilla::Plugin::CheckPrereqsIndexed name: '@RJBS/CheckPrereqsIndexed' version: 0.007 - - class: Dist::Zilla::Plugin::GatherDir - name: '@RJBS/@Basic/GatherDir' - version: 4.300009 + class: Dist::Zilla::Plugin::CheckExtraTests + name: '@RJBS/CheckExtraTests' + version: 0.007 - class: Dist::Zilla::Plugin::PruneCruft - name: '@RJBS/@Basic/PruneCruft' - version: 4.300009 + name: '@RJBS/@Filter/PruneCruft' + version: 4.300028 - class: Dist::Zilla::Plugin::ManifestSkip - name: '@RJBS/@Basic/ManifestSkip' - version: 4.300009 + name: '@RJBS/@Filter/ManifestSkip' + version: 4.300028 - class: Dist::Zilla::Plugin::MetaYAML - name: '@RJBS/@Basic/MetaYAML' - version: 4.300009 + name: '@RJBS/@Filter/MetaYAML' + version: 4.300028 - class: Dist::Zilla::Plugin::License - name: '@RJBS/@Basic/License' - version: 4.300009 + name: '@RJBS/@Filter/License' + version: 4.300028 - class: Dist::Zilla::Plugin::Readme - name: '@RJBS/@Basic/Readme' - version: 4.300009 - - - class: Dist::Zilla::Plugin::ExtraTests - name: '@RJBS/@Basic/ExtraTests' - version: 4.300009 + name: '@RJBS/@Filter/Readme' + version: 4.300028 - class: Dist::Zilla::Plugin::ExecDir - name: '@RJBS/@Basic/ExecDir' - version: 4.300009 + name: '@RJBS/@Filter/ExecDir' + version: 4.300028 - class: Dist::Zilla::Plugin::ShareDir - name: '@RJBS/@Basic/ShareDir' - version: 4.300009 + name: '@RJBS/@Filter/ShareDir' + version: 4.300028 - class: Dist::Zilla::Plugin::MakeMaker - name: '@RJBS/@Basic/MakeMaker' - version: 4.300009 + name: '@RJBS/@Filter/MakeMaker' + version: 4.300028 - class: Dist::Zilla::Plugin::Manifest - name: '@RJBS/@Basic/Manifest' - version: 4.300009 + name: '@RJBS/@Filter/Manifest' + version: 4.300028 - class: Dist::Zilla::Plugin::TestRelease - name: '@RJBS/@Basic/TestRelease' - version: 4.300009 + name: '@RJBS/@Filter/TestRelease' + version: 4.300028 - class: Dist::Zilla::Plugin::ConfirmRelease - name: '@RJBS/@Basic/ConfirmRelease' - version: 4.300009 + name: '@RJBS/@Filter/ConfirmRelease' + version: 4.300028 - class: Dist::Zilla::Plugin::UploadToCPAN - name: '@RJBS/@Basic/UploadToCPAN' - version: 4.300009 + name: '@RJBS/@Filter/UploadToCPAN' + version: 4.300028 - class: Dist::Zilla::Plugin::AutoPrereqs name: '@RJBS/AutoPrereqs' - version: 4.300009 + version: 4.300028 - class: Dist::Zilla::Plugin::Git::NextVersion name: '@RJBS/Git::NextVersion' - version: 1.120370 + version: 2.003 - class: Dist::Zilla::Plugin::PkgVersion name: '@RJBS/PkgVersion' - version: 4.300009 + version: 4.300028 - class: Dist::Zilla::Plugin::MetaConfig name: '@RJBS/MetaConfig' - version: 4.300009 + version: 4.300028 - class: Dist::Zilla::Plugin::MetaJSON name: '@RJBS/MetaJSON' - version: 4.300009 + version: 4.300028 - class: Dist::Zilla::Plugin::NextRelease name: '@RJBS/NextRelease' - version: 4.300009 + version: 4.300028 + - + class: Dist::Zilla::Plugin::Test::ChangesHasContent + name: '@RJBS/Test::ChangesHasContent' + version: 0.006 - class: Dist::Zilla::Plugin::PodSyntaxTests name: '@RJBS/PodSyntaxTests' - version: 4.300009 + version: 4.300028 - - class: Dist::Zilla::Plugin::Repository - name: '@RJBS/Repository' - version: 0.18 + class: Dist::Zilla::Plugin::Test::Compile + name: '@RJBS/Test::Compile' + version: 1.112820 + - + class: Dist::Zilla::Plugin::ReportVersions::Tiny + name: '@RJBS/ReportVersions::Tiny' + version: 1.08 - class: Dist::Zilla::Plugin::Prereqs config: @@ -143,7 +154,7 @@ phase: test type: requires name: '@RJBS/TestMoreWithSubtests' - version: 4.300009 + version: 4.300028 - class: Dist::Zilla::Plugin::PodWeaver name: '@RJBS/PodWeaver' @@ -155,45 +166,45 @@ - class: Dist::Zilla::Plugin::Git::Check name: '@RJBS/@Git/Check' - version: 1.120370 + version: 2.003 - class: Dist::Zilla::Plugin::Git::Commit name: '@RJBS/@Git/Commit' - version: 1.120370 + version: 2.003 - class: Dist::Zilla::Plugin::Git::Tag name: '@RJBS/@Git/Tag' - version: 1.120370 + version: 2.003 - class: Dist::Zilla::Plugin::Git::Push name: '@RJBS/@Git/Push' - version: 1.120370 + version: 2.003 - class: Dist::Zilla::Plugin::FinderCode name: ':InstallModules' - version: 4.300009 + version: 4.300028 - class: Dist::Zilla::Plugin::FinderCode name: ':IncModules' - version: 4.300009 + version: 4.300028 - class: Dist::Zilla::Plugin::FinderCode name: ':TestFiles' - version: 4.300009 + version: 4.300028 - class: Dist::Zilla::Plugin::FinderCode name: ':ExecFiles' - version: 4.300009 + version: 4.300028 - class: Dist::Zilla::Plugin::FinderCode name: ':ShareFiles' - version: 4.300009 + version: 4.300028 - class: Dist::Zilla::Plugin::FinderCode name: ':MainModule' - version: 4.300009 + version: 4.300028 zilla: class: Dist::Zilla::Dist::Builder config: is_trial: 0 - version: 4.300009 + version: 4.300028 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Perl-PrereqScanner-1.011/Makefile.PL new/Perl-PrereqScanner-1.015/Makefile.PL --- old/Perl-PrereqScanner-1.011/Makefile.PL 2012-03-07 13:08:53.000000000 +0100 +++ new/Perl-PrereqScanner-1.015/Makefile.PL 2012-12-15 04:07:58.000000000 +0100 @@ -28,6 +28,7 @@ "NAME" => "Perl::PrereqScanner", "PREREQ_PM" => { "CPAN::Meta::Requirements" => "2.120630", + "File::Find" => 0, "File::Spec::Functions" => 0, "FindBin" => 0, "Getopt::Long" => 0, @@ -35,14 +36,14 @@ "List::Util" => 0, "Moose" => 0, "Moose::Role" => 0, - "PPI" => "1.205", + "PPI" => "1.215", "Params::Util" => 0, "String::RewritePrefix" => "0.005", "namespace::autoclean" => 0, "strict" => 0, "warnings" => 0 }, - "VERSION" => "1.011", + "VERSION" => "1.015", "test" => { "TESTS" => "t/*.t" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Perl-PrereqScanner-1.011/README new/Perl-PrereqScanner-1.015/README --- old/Perl-PrereqScanner-1.011/README 2012-03-07 13:08:53.000000000 +0100 +++ new/Perl-PrereqScanner-1.015/README 2012-12-15 04:07:58.000000000 +0100 @@ -1,7 +1,7 @@ This archive contains the distribution Perl-PrereqScanner, -version 1.011: +version 1.015: a tool to scan your Perl code for its prerequisites diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Perl-PrereqScanner-1.011/bin/scan_prereqs new/Perl-PrereqScanner-1.015/bin/scan_prereqs --- old/Perl-PrereqScanner-1.011/bin/scan_prereqs 2012-03-07 13:08:53.000000000 +0100 +++ new/Perl-PrereqScanner-1.015/bin/scan_prereqs 2012-12-15 04:07:58.000000000 +0100 @@ -1,13 +1,14 @@ #!/usr/bin/perl package Perl::PrereqScanner::App; { - $Perl::PrereqScanner::App::VERSION = '1.011'; + $Perl::PrereqScanner::App::VERSION = '1.015'; } # ABSTRACT: scan your working dir for likely prereqs use strict; use warnings; +use File::Find; use File::Spec::Functions qw{ catdir updir }; use FindBin qw{ $Bin }; use lib catdir( $Bin, updir, 'lib' ); @@ -24,7 +25,19 @@ ); my $combined = $options{combine} && CPAN::Meta::Requirements->new; -foreach my $file ( @ARGV ) { +foreach my $file ( @ARGV ? @ARGV : '.' ) { + -d $file ? scan_dir( $file ) : scan_file( $file ); +} + +sub scan_dir { + find( { + no_chdir => 1, + wanted => sub { scan_file($_) if /\.(pl|pm|psgi)$/; } + }, shift ); +} + +sub scan_file { + my $file = shift; my $prereqs = Perl::PrereqScanner->new->scan_file($file); if( $options{combine} ){ $combined->add_requirements($prereqs); @@ -49,6 +62,7 @@ exit; __END__ + =pod =head1 NAME @@ -57,7 +71,15 @@ =head1 VERSION -version 1.011 +version 1.015 + +=head1 SYNOPSIS + + scan_prerequs [--combine] [FILES] + +Directories are traversed with L<File::Find> to collect all C<.pl>, C<.pm>, and +C<.psgi> files. If no files are specified, the current working directory is +scanned. =head1 AUTHORS @@ -81,4 +103,3 @@ the same terms as the Perl 5 programming language system itself. =cut - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Perl-PrereqScanner-1.011/lib/Perl/PrereqScanner/Scanner/Aliased.pm new/Perl-PrereqScanner-1.015/lib/Perl/PrereqScanner/Scanner/Aliased.pm --- old/Perl-PrereqScanner-1.011/lib/Perl/PrereqScanner/Scanner/Aliased.pm 2012-03-07 13:08:53.000000000 +0100 +++ new/Perl-PrereqScanner-1.015/lib/Perl/PrereqScanner/Scanner/Aliased.pm 2012-12-15 04:07:58.000000000 +0100 @@ -3,7 +3,7 @@ package Perl::PrereqScanner::Scanner::Aliased; { - $Perl::PrereqScanner::Scanner::Aliased::VERSION = '1.011'; + $Perl::PrereqScanner::Scanner::Aliased::VERSION = '1.015'; } use Moose; with 'Perl::PrereqScanner::Scanner'; @@ -33,6 +33,7 @@ 1; __END__ + =pod =head1 NAME @@ -41,7 +42,7 @@ =head1 VERSION -version 1.011 +version 1.015 =head1 DESCRIPTION @@ -74,4 +75,3 @@ the same terms as the Perl 5 programming language system itself. =cut - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Perl-PrereqScanner-1.011/lib/Perl/PrereqScanner/Scanner/Moose.pm new/Perl-PrereqScanner-1.015/lib/Perl/PrereqScanner/Scanner/Moose.pm --- old/Perl-PrereqScanner-1.011/lib/Perl/PrereqScanner/Scanner/Moose.pm 2012-03-07 13:08:53.000000000 +0100 +++ new/Perl-PrereqScanner-1.015/lib/Perl/PrereqScanner/Scanner/Moose.pm 2012-12-15 04:07:58.000000000 +0100 @@ -3,7 +3,7 @@ package Perl::PrereqScanner::Scanner::Moose; { - $Perl::PrereqScanner::Scanner::Moose::VERSION = '1.011'; + $Perl::PrereqScanner::Scanner::Moose::VERSION = '1.015'; } use Moose; with 'Perl::PrereqScanner::Scanner'; @@ -26,7 +26,7 @@ # PPI::Token::Quote::Single # PPI::Token::Structure - map { [ $_->children ] } + map { [ $_->schildren ] } grep { $_->child(0)->literal =~ m{\A(?:with|extends)\z} } grep { $_->child(0)->isa('PPI::Token::Word') } @{ $ppi_doc->find('PPI::Statement') || [] }; @@ -116,6 +116,7 @@ 1; __END__ + =pod =head1 NAME @@ -124,7 +125,7 @@ =head1 VERSION -version 1.011 +version 1.015 =head1 DESCRIPTION @@ -164,4 +165,3 @@ the same terms as the Perl 5 programming language system itself. =cut - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Perl-PrereqScanner-1.011/lib/Perl/PrereqScanner/Scanner/POE.pm new/Perl-PrereqScanner-1.015/lib/Perl/PrereqScanner/Scanner/POE.pm --- old/Perl-PrereqScanner-1.011/lib/Perl/PrereqScanner/Scanner/POE.pm 2012-03-07 13:08:53.000000000 +0100 +++ new/Perl-PrereqScanner-1.015/lib/Perl/PrereqScanner/Scanner/POE.pm 2012-12-15 04:07:58.000000000 +0100 @@ -3,7 +3,7 @@ package Perl::PrereqScanner::Scanner::POE; { - $Perl::PrereqScanner::Scanner::POE::VERSION = '1.011'; + $Perl::PrereqScanner::Scanner::POE::VERSION = '1.015'; } use Moose; with 'Perl::PrereqScanner::Scanner'; @@ -31,6 +31,7 @@ 1; __END__ + =pod =head1 NAME @@ -39,7 +40,7 @@ =head1 VERSION -version 1.011 +version 1.015 =head1 DESCRIPTION @@ -69,4 +70,3 @@ the same terms as the Perl 5 programming language system itself. =cut - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Perl-PrereqScanner-1.011/lib/Perl/PrereqScanner/Scanner/Perl5.pm new/Perl-PrereqScanner-1.015/lib/Perl/PrereqScanner/Scanner/Perl5.pm --- old/Perl-PrereqScanner-1.011/lib/Perl/PrereqScanner/Scanner/Perl5.pm 2012-03-07 13:08:53.000000000 +0100 +++ new/Perl-PrereqScanner-1.015/lib/Perl/PrereqScanner/Scanner/Perl5.pm 2012-12-15 04:07:58.000000000 +0100 @@ -3,7 +3,7 @@ package Perl::PrereqScanner::Scanner::Perl5; { - $Perl::PrereqScanner::Scanner::Perl5::VERSION = '1.011'; + $Perl::PrereqScanner::Scanner::Perl5::VERSION = '1.015'; } use Moose; with 'Perl::PrereqScanner::Scanner'; @@ -13,7 +13,7 @@ sub scan_for_prereqs { my ($self, $ppi_doc, $req) = @_; - # regular use and require + # regular use, require, and no my $includes = $ppi_doc->find('Statement::Include') || []; for my $node ( @$includes ) { # minimum perl version @@ -94,6 +94,7 @@ 1; __END__ + =pod =head1 NAME @@ -102,7 +103,7 @@ =head1 VERSION -version 1.011 +version 1.015 =head1 DESCRIPTION @@ -112,7 +113,7 @@ =item * -plain lines beginning with C<use> or C<require> in your perl modules and scripts, including minimum perl version +plain lines beginning with C<use>, C<require>, or C<no> in your perl modules and scripts, including minimum perl version =item * @@ -165,4 +166,3 @@ the same terms as the Perl 5 programming language system itself. =cut - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Perl-PrereqScanner-1.011/lib/Perl/PrereqScanner/Scanner/TestMore.pm new/Perl-PrereqScanner-1.015/lib/Perl/PrereqScanner/Scanner/TestMore.pm --- old/Perl-PrereqScanner-1.011/lib/Perl/PrereqScanner/Scanner/TestMore.pm 2012-03-07 13:08:53.000000000 +0100 +++ new/Perl-PrereqScanner-1.015/lib/Perl/PrereqScanner/Scanner/TestMore.pm 2012-12-15 04:07:58.000000000 +0100 @@ -3,7 +3,7 @@ package Perl::PrereqScanner::Scanner::TestMore; { - $Perl::PrereqScanner::Scanner::TestMore::VERSION = '1.011'; + $Perl::PrereqScanner::Scanner::TestMore::VERSION = '1.015'; } # ABSTRACT: scanner to find recent Test::More usage @@ -26,7 +26,7 @@ 1; - +__END__ =pod @@ -36,7 +36,7 @@ =head1 VERSION -version 1.011 +version 1.015 =head1 DESCRIPTION @@ -66,7 +66,3 @@ the same terms as the Perl 5 programming language system itself. =cut - - -__END__ - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Perl-PrereqScanner-1.011/lib/Perl/PrereqScanner/Scanner.pm new/Perl-PrereqScanner-1.015/lib/Perl/PrereqScanner/Scanner.pm --- old/Perl-PrereqScanner-1.011/lib/Perl/PrereqScanner/Scanner.pm 2012-03-07 13:08:53.000000000 +0100 +++ new/Perl-PrereqScanner-1.015/lib/Perl/PrereqScanner/Scanner.pm 2012-12-15 04:07:58.000000000 +0100 @@ -3,7 +3,7 @@ package Perl::PrereqScanner::Scanner; { - $Perl::PrereqScanner::Scanner::VERSION = '1.011'; + $Perl::PrereqScanner::Scanner::VERSION = '1.015'; } use Moose::Role; # ABSTRACT: something that scans for prereqs in a Perl document @@ -29,6 +29,7 @@ 1; __END__ + =pod =head1 NAME @@ -37,7 +38,7 @@ =head1 VERSION -version 1.011 +version 1.015 =head1 DESCRIPTION @@ -74,4 +75,3 @@ the same terms as the Perl 5 programming language system itself. =cut - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Perl-PrereqScanner-1.011/lib/Perl/PrereqScanner.pm new/Perl-PrereqScanner-1.015/lib/Perl/PrereqScanner.pm --- old/Perl-PrereqScanner-1.011/lib/Perl/PrereqScanner.pm 2012-03-07 13:08:53.000000000 +0100 +++ new/Perl-PrereqScanner-1.015/lib/Perl/PrereqScanner.pm 2012-12-15 04:07:58.000000000 +0100 @@ -4,7 +4,7 @@ package Perl::PrereqScanner; { - $Perl::PrereqScanner::VERSION = '1.011'; + $Perl::PrereqScanner::VERSION = '1.015'; } use Moose; # ABSTRACT: a tool to scan your Perl code for its prerequisites @@ -12,7 +12,7 @@ use List::Util qw(max); use Params::Util qw(_CLASS); use Perl::PrereqScanner::Scanner; -use PPI 1.205; # module_version +use PPI 1.215; # module_version, bug fixes use String::RewritePrefix 0.005 rewrite => { -as => '__rewrite_scanner', prefixes => { '' => 'Perl::PrereqScanner::Scanner::', '=' => '' }, @@ -58,7 +58,7 @@ sub scan_string { my ($self, $str) = @_; my $ppi = PPI::Document->new( \$str ); - confess "PPI parse failed" unless defined $ppi; + confess "PPI parse failed: " . PPI::Document->errstr unless defined $ppi; return $self->scan_ppi_document( $ppi ); } @@ -68,7 +68,8 @@ sub scan_file { my ($self, $path) = @_; my $ppi = PPI::Document->new( $path ); - confess "PPI failed to parse '$path'" unless defined $ppi; + confess "PPI failed to parse '$path': " . PPI::Document->errstr + unless defined $ppi; return $self->scan_ppi_document( $ppi ); } @@ -89,6 +90,7 @@ 1; +__END__ =pod @@ -98,7 +100,7 @@ =head1 VERSION -version 1.011 +version 1.015 =head1 SYNOPSIS @@ -204,7 +206,3 @@ the same terms as the Perl 5 programming language system itself. =cut - - -__END__ - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Perl-PrereqScanner-1.011/t/00-compile.t new/Perl-PrereqScanner-1.015/t/00-compile.t --- old/Perl-PrereqScanner-1.011/t/00-compile.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Perl-PrereqScanner-1.015/t/00-compile.t 2012-12-15 04:07:58.000000000 +0100 @@ -0,0 +1,73 @@ +#!perl + +use strict; +use warnings; + +use Test::More; + + + +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', +); + +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; +} + +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"); + +{ + # fake home for cpan-testers + # no fake requested ## 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" ); + } + } +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Perl-PrereqScanner-1.011/t/000-report-versions-tiny.t new/Perl-PrereqScanner-1.015/t/000-report-versions-tiny.t --- old/Perl-PrereqScanner-1.011/t/000-report-versions-tiny.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Perl-PrereqScanner-1.015/t/000-report-versions-tiny.t 2012-12-15 04:07:58.000000000 +0100 @@ -0,0 +1,91 @@ +use strict; +use warnings; +use Test::More 0.88; +# This is a relatively nice way to avoid Test::NoWarnings breaking our +# expectations by adding extra tests, without using no_plan. It also helps +# avoid any other test module that feels introducing random tests, or even +# test plans, is a nice idea. +our $success = 0; +END { $success && done_testing; } + +# List our own version used to generate this +my $v = "\nGenerated by Dist::Zilla::Plugin::ReportVersions::Tiny v1.08\n"; + +eval { # no excuses! + # report our Perl details + my $want = '5.008'; + $v .= "perl: $] (wanted $want) on $^O from $^X\n\n"; +}; +defined($@) and diag("$@"); + +# Now, our module version dependencies: +sub pmver { + my ($module, $wanted) = @_; + $wanted = " (want $wanted)"; + my $pmver; + eval "require $module;"; + if ($@) { + if ($@ =~ m/Can't locate .* in \@INC/) { + $pmver = 'module not found.'; + } else { + diag("${module}: $@"); + $pmver = 'died during require.'; + } + } else { + my $version; + eval { $version = $module->VERSION; }; + if ($@) { + diag("${module}: $@"); + $pmver = 'died during VERSION check.'; + } elsif (defined $version) { + $pmver = "$version"; + } else { + $pmver = '<undef>'; + } + } + + # So, we should be good, right? + return sprintf('%-45s => %-10s%-15s%s', $module, $pmver, $wanted, "\n"); +} + +eval { $v .= pmver('CPAN::Meta::Requirements','2.120630') }; +eval { $v .= pmver('ExtUtils::MakeMaker','6.30') }; +eval { $v .= pmver('File::Find','any version') }; +eval { $v .= pmver('File::Spec::Functions','any version') }; +eval { $v .= pmver('File::Temp','any version') }; +eval { $v .= pmver('FindBin','any version') }; +eval { $v .= pmver('Getopt::Long','any version') }; +eval { $v .= pmver('List::MoreUtils','any version') }; +eval { $v .= pmver('List::Util','any version') }; +eval { $v .= pmver('Moose','any version') }; +eval { $v .= pmver('Moose::Role','any version') }; +eval { $v .= pmver('PPI','1.215') }; +eval { $v .= pmver('PPI::Document','any version') }; +eval { $v .= pmver('Params::Util','any version') }; +eval { $v .= pmver('String::RewritePrefix','0.005') }; +eval { $v .= pmver('Test::More','0.96') }; +eval { $v .= pmver('Test::Pod','1.41') }; +eval { $v .= pmver('Try::Tiny','any version') }; +eval { $v .= pmver('namespace::autoclean','any version') }; +eval { $v .= pmver('strict','any version') }; +eval { $v .= pmver('version','0.9901') }; +eval { $v .= pmver('warnings','any version') }; + + +# All done. +$v .= <<'EOT'; + +Thanks for using my code. I hope it works for you. +If not, please try and include this output in the bug report. +That will help me reproduce the issue and solve your problem. + +EOT + +diag($v); +ok(1, "we really didn't test anything, just reporting data"); +$success = 1; + +# Work around another nasty module on CPAN. :/ +no warnings 'once'; +$Template::Test::NO_FLUSH = 1; +exit 0; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Perl-PrereqScanner-1.011/t/autoprereq.t new/Perl-PrereqScanner-1.015/t/autoprereq.t --- old/Perl-PrereqScanner-1.011/t/autoprereq.t 2012-03-07 13:08:53.000000000 +0100 +++ new/Perl-PrereqScanner-1.015/t/autoprereq.t 2012-12-15 04:07:58.000000000 +0100 @@ -70,6 +70,11 @@ { 'Import::IgnoreAPI' => 0 }, ); +prereq_is( + 'no Import::IgnoreAPI require => 1;', + { 'Import::IgnoreAPI' => 0 }, +); + prereq_is('require Require; Require->VERSION(0.50);', { Require => '0.50' }); prereq_is('require Require; Require->VERSION(+0.50);', { Require => 0 }); @@ -152,15 +157,28 @@ }, ); -TODO: { - local $TODO = 'enable with()'; - prereq_is( - "with('Paren::Role');", - { - 'Paren::Role' => 0, - }, - ); -} +prereq_is( + 'with ("With::QW1", "With::QW2");', + { + 'With::QW1' => 0, + 'With::QW2' => 0, + }, +); + +prereq_is( + "with('Paren::Role');", + { + 'Paren::Role' => 0, + }, +); + +prereq_is( + 'with("With::QW1", "With::QW2");', + { + 'With::QW1' => 0, + 'With::QW2' => 0, + }, +); prereq_is( 'with qw(With::QW1 With::QW2);', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Perl-PrereqScanner-1.011/t/release-pod-syntax.t new/Perl-PrereqScanner-1.015/t/release-pod-syntax.t --- old/Perl-PrereqScanner-1.011/t/release-pod-syntax.t 2012-03-07 13:08:53.000000000 +0100 +++ new/Perl-PrereqScanner-1.015/t/release-pod-syntax.t 1970-01-01 01:00:00.000000000 +0100 @@ -1,15 +0,0 @@ -#!perl - -BEGIN { - unless ($ENV{RELEASE_TESTING}) { - require Test::More; - Test::More::plan(skip_all => 'these tests are for release candidate testing'); - } -} - -use Test::More; - -eval "use Test::Pod 1.41"; -plan skip_all => "Test::Pod 1.41 required for testing POD" if $@; - -all_pod_files_ok(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Perl-PrereqScanner-1.011/xt/release/changes_has_content.t new/Perl-PrereqScanner-1.015/xt/release/changes_has_content.t --- old/Perl-PrereqScanner-1.011/xt/release/changes_has_content.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Perl-PrereqScanner-1.015/xt/release/changes_has_content.t 2012-12-15 04:07:58.000000000 +0100 @@ -0,0 +1,41 @@ +#!perl + +use Test::More tests => 2; + +note 'Checking Changes'; +my $changes_file = 'Changes'; +my $newver = '1.015'; +my $trial_token = '-TRIAL'; + +SKIP: { + ok(-e $changes_file, "$changes_file file exists") + or skip 'Changes is missing', 1; + + ok(_get_changes($newver), "$changes_file has content for $newver"); +} + +done_testing; + +# _get_changes copied and adapted from Dist::Zilla::Plugin::Git::Commit +# by Jerome Quelin +sub _get_changes +{ + my $newver = shift; + + # parse changelog to find commit message + open(my $fh, '<', $changes_file) or die "cannot open $changes_file: $!"; + my $changelog = join('', <$fh>); + close $fh; + + my @content = + grep { /^$newver(?:$trial_token)?(?:\s+|$)/ ... /^\S/ } # from newver to un-indented + split /\n/, $changelog; + shift @content; # drop the version line + + # drop unindented last line and trailing blank lines + pop @content while ( @content && $content[-1] =~ /^(?:\S|\s*$)/ ); + + # return number of non-blank lines + return scalar @content; +} + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Perl-PrereqScanner-1.011/xt/release/pod-syntax.t new/Perl-PrereqScanner-1.015/xt/release/pod-syntax.t --- old/Perl-PrereqScanner-1.011/xt/release/pod-syntax.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Perl-PrereqScanner-1.015/xt/release/pod-syntax.t 2012-12-15 04:07:58.000000000 +0100 @@ -0,0 +1,7 @@ +#!perl +use Test::More; + +eval "use Test::Pod 1.41"; +plan skip_all => "Test::Pod 1.41 required for testing POD" if $@; + +all_pod_files_ok(); -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org