Hello community, here is the log from the commit of package perl-Test-Fatal for openSUSE:Factory checked in at 2013-10-06 14:56:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Test-Fatal (Old) and /work/SRC/openSUSE:Factory/.perl-Test-Fatal.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Test-Fatal" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Test-Fatal/perl-Test-Fatal.changes 2012-02-20 16:16:39.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Test-Fatal.new/perl-Test-Fatal.changes 2013-10-06 14:56:16.000000000 +0200 @@ -1,0 +2,12 @@ +Fri Oct 4 09:13:58 UTC 2013 - [email protected] + +- updated to 0.013 + - rebuild to get a newer compile test that may work on 5.6.x + - go back to auto-detecting the required Test::More, reverting the + changes made for [rt.cpan.org #62699] + - more clearly (and correctly) document the way NOT to use Test::Fatal + (thanks, Karen Etheridge!) + - try to fix $TODO not working when the user test uses $T::B::Level + (thanks, Jesse Luehrs) + +------------------------------------------------------------------- Old: ---- Test-Fatal-0.010.tar.gz New: ---- Test-Fatal-0.013.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Test-Fatal.spec ++++++ --- /var/tmp/diff_new_pack.ailVV1/_old 2013-10-06 14:56:17.000000000 +0200 +++ /var/tmp/diff_new_pack.ailVV1/_new 2013-10-06 14:56:17.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Test-Fatal # -# 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,10 +17,10 @@ Name: perl-Test-Fatal -Version: 0.010 +Version: 0.013 Release: 0 %define cpan_name Test-Fatal -Summary: Incredibly simple helpers for testing code with exceptions +Summary: incredibly simple helpers for testing code with exceptions License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Test-Fatal/ @@ -29,6 +29,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros +BuildRequires: perl(Test::More) >= 0.96 BuildRequires: perl(Try::Tiny) >= 0.07 #BuildRequires: perl(Test::Fatal) Requires: perl(Try::Tiny) >= 0.07 @@ -58,6 +59,6 @@ %files -f %{name}.files %defattr(-,root,root,755) -%doc Changes LICENSE README +%doc Changes examples LICENSE README %changelog ++++++ Test-Fatal-0.010.tar.gz -> Test-Fatal-0.013.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Fatal-0.010/Changes new/Test-Fatal-0.013/Changes --- old/Test-Fatal-0.010/Changes 2012-02-16 16:28:07.000000000 +0100 +++ new/Test-Fatal-0.013/Changes 2013-09-23 16:31:18.000000000 +0200 @@ -1,37 +1,51 @@ Revision history for Test-Fatal +0.013 2013-09-23 10:31:15 America/New_York + - rebuild to get a newer compile test that may work on 5.6.x + +0.012 2013-09-17 22:01:45 Asia/Tokyo + - go back to auto-detecting the required Test::More, reverting the + changes made for [rt.cpan.org #62699] + +0.011 2013-09-17 08:48:20 Asia/Tokyo + - more clearly (and correctly) document the way NOT to use Test::Fatal + (thanks, Karen Etheridge!) + + - try to fix $TODO not working when the user test uses $T::B::Level + (thanks, Jesse Luehrs) + 0.010 2012-02-16 10:27:54 America/New_York - avoid tickling an overloading bug in perl 5.6 during testing (thanks, + - avoid tickling an overloading bug in perl 5.6 during testing (thanks, Zefram) 0.009 2012-02-09 15:26:11 America/New_York - advise against using isnt(exception{...},undef) + - advise against using isnt(exception{...},undef) 0.008 2011-11-06 21:10:14 America/New_York - no changes since 0.007 + - no changes since 0.007 0.007 2011-10-31 23:22:47 America/New_York - revert the mistake by which 0.004 allowed blocks after "exception" as + - revert the mistake by which 0.004 allowed blocks after "exception" as well as "success" 0.006 2011-06-01 22:55:10 America/New_York - crank back the Test::More and Exporter requirements + - crank back the Test::More and Exporter requirements - add lives_ok and dies_ok emulation (thanks, Paul "LeoNerd" Evans) + - add lives_ok and dies_ok emulation (thanks, Paul "LeoNerd" Evans) 0.005 2011-04-26 07:50:48 America/New_York - fix the logic that picks tests for 5.13.1+ (thanks, Zefram) + - fix the logic that picks tests for 5.13.1+ (thanks, Zefram) 0.004 2011-04-25 11:57:59 America/New_York - success blocks now allow trailing blocks like finally, catch, etc. + - success blocks now allow trailing blocks like finally, catch, etc. (thanks, Joel Bernstein) 0.003 2010-10-28 22:10:59 America/New_York - more tests for false exceptions, especially on 5.13 + - more tests for false exceptions, especially on 5.13 0.002 2010-10-28 00:11:09 America/New_York - add tests for handling of false exceptions - fix precedence error in documentation (thanks, ether) + - add tests for handling of false exceptions + - fix precedence error in documentation (thanks, ether) 0.001 2010-10-24 00:23:24 America/New_York - first release + - first release diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Fatal-0.010/MANIFEST new/Test-Fatal-0.013/MANIFEST --- old/Test-Fatal-0.010/MANIFEST 2012-02-16 16:28:07.000000000 +0100 +++ new/Test-Fatal-0.013/MANIFEST 2013-09-23 16:31:18.000000000 +0200 @@ -6,7 +6,12 @@ Makefile.PL README dist.ini +examples/exception_like.t lib/Test/Fatal.pm +t/00-compile.t +t/000-report-versions-tiny.t t/basic.t t/like-exception.t -t/release-pod-syntax.t +t/todo.t +xt/release/changes_has_content.t +xt/release/pod-syntax.t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Fatal-0.010/META.json new/Test-Fatal-0.013/META.json --- old/Test-Fatal-0.010/META.json 2012-02-16 16:28:07.000000000 +0100 +++ new/Test-Fatal-0.013/META.json 2013-09-23 16:31:18.000000000 +0200 @@ -4,7 +4,7 @@ "Ricardo Signes <[email protected]>" ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 4.300007, CPAN::Meta::Converter version 2.120351", + "generated_by" : "Dist::Zilla version 4.300039, CPAN::Meta::Converter version 2.132620", "license" : [ "perl_5" ], @@ -19,6 +19,12 @@ "ExtUtils::MakeMaker" : "6.30" } }, + "develop" : { + "requires" : { + "Test::Pod" : "1.41", + "version" : "0.9901" + } + }, "runtime" : { "requires" : { "Carp" : "0", @@ -31,138 +37,177 @@ }, "test" : { "requires" : { + "File::Spec" : "0", + "IO::Handle" : "0", + "IPC::Open3" : "0", "Test::Builder::Tester" : "0", - "Test::More" : "0.47", + "Test::More" : "0.96", "overload" : "0" } } }, "release_status" : "stable", "resources" : { - "homepage" : "https://github.com/rjbs/test-fatal", + "bugtracker" : { + "web" : "https://github.com/rjbs/Test-Fatal/issues" + }, + "homepage" : "https://github.com/rjbs/Test-Fatal", "repository" : { "type" : "git", - "url" : "https://github.com/rjbs/test-fatal.git", - "web" : "https://github.com/rjbs/test-fatal" + "url" : "https://github.com/rjbs/Test-Fatal.git", + "web" : "https://github.com/rjbs/Test-Fatal" } }, - "version" : "0.010", + "version" : "0.013", "x_Dist_Zilla" : { + "perl" : { + "version" : "5.019003" + }, "plugins" : [ { + "class" : "Dist::Zilla::Plugin::Git::GatherDir", + "name" : "@RJBS/Git::GatherDir", + "version" : "2.014" + }, + { "class" : "Dist::Zilla::Plugin::CheckPrereqsIndexed", "name" : "@RJBS/CheckPrereqsIndexed", - "version" : "0.007" + "version" : "0.009" + }, + { + "class" : "Dist::Zilla::Plugin::CheckExtraTests", + "name" : "@RJBS/CheckExtraTests", + "version" : "0.011" }, { - "class" : "Dist::Zilla::Plugin::GatherDir", - "name" : "@RJBS/@Basic/GatherDir", - "version" : "4.300007" + "class" : "Dist::Zilla::Plugin::PromptIfStale", + "name" : "@RJBS/RJBS-Outdated", + "version" : "0.005" + }, + { + "class" : "Dist::Zilla::Plugin::PromptIfStale", + "name" : "@RJBS/CPAN-Outdated", + "version" : "0.005" }, { "class" : "Dist::Zilla::Plugin::PruneCruft", - "name" : "@RJBS/@Basic/PruneCruft", - "version" : "4.300007" + "name" : "@RJBS/@Filter/PruneCruft", + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::ManifestSkip", - "name" : "@RJBS/@Basic/ManifestSkip", - "version" : "4.300007" + "name" : "@RJBS/@Filter/ManifestSkip", + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", - "name" : "@RJBS/@Basic/MetaYAML", - "version" : "4.300007" + "name" : "@RJBS/@Filter/MetaYAML", + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::License", - "name" : "@RJBS/@Basic/License", - "version" : "4.300007" + "name" : "@RJBS/@Filter/License", + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::Readme", - "name" : "@RJBS/@Basic/Readme", - "version" : "4.300007" - }, - { - "class" : "Dist::Zilla::Plugin::ExtraTests", - "name" : "@RJBS/@Basic/ExtraTests", - "version" : "4.300007" + "name" : "@RJBS/@Filter/Readme", + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::ExecDir", - "name" : "@RJBS/@Basic/ExecDir", - "version" : "4.300007" + "name" : "@RJBS/@Filter/ExecDir", + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::ShareDir", - "name" : "@RJBS/@Basic/ShareDir", - "version" : "4.300007" + "name" : "@RJBS/@Filter/ShareDir", + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::MakeMaker", - "name" : "@RJBS/@Basic/MakeMaker", - "version" : "4.300007" + "name" : "@RJBS/@Filter/MakeMaker", + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::Manifest", - "name" : "@RJBS/@Basic/Manifest", - "version" : "4.300007" + "name" : "@RJBS/@Filter/Manifest", + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::TestRelease", - "name" : "@RJBS/@Basic/TestRelease", - "version" : "4.300007" + "name" : "@RJBS/@Filter/TestRelease", + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", - "name" : "@RJBS/@Basic/ConfirmRelease", - "version" : "4.300007" + "name" : "@RJBS/@Filter/ConfirmRelease", + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::UploadToCPAN", - "name" : "@RJBS/@Basic/UploadToCPAN", - "version" : "4.300007" + "name" : "@RJBS/@Filter/UploadToCPAN", + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::AutoPrereqs", "name" : "@RJBS/AutoPrereqs", - "version" : "4.300007" + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::Git::NextVersion", "name" : "@RJBS/Git::NextVersion", - "version" : "1.120370" + "version" : "2.014" }, { "class" : "Dist::Zilla::Plugin::PkgVersion", "name" : "@RJBS/PkgVersion", - "version" : "4.300007" + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::MetaConfig", "name" : "@RJBS/MetaConfig", - "version" : "4.300007" + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "@RJBS/MetaJSON", - "version" : "4.300007" + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::NextRelease", "name" : "@RJBS/NextRelease", - "version" : "4.300007" + "version" : "4.300039" + }, + { + "class" : "Dist::Zilla::Plugin::Test::ChangesHasContent", + "name" : "@RJBS/Test::ChangesHasContent", + "version" : "0.006" }, { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "@RJBS/PodSyntaxTests", - "version" : "4.300007" + "version" : "4.300039" + }, + { + "class" : "Dist::Zilla::Plugin::ReportVersions::Tiny", + "name" : "@RJBS/ReportVersions::Tiny", + "version" : "1.09" }, { - "class" : "Dist::Zilla::Plugin::Repository", - "name" : "@RJBS/Repository", - "version" : "0.18" + "class" : "Dist::Zilla::Plugin::Test::Compile", + "config" : { + "Dist::Zilla::Plugin::Test::Compile" : { + "module_finder" : [ + ":InstallModules" + ], + "script_finder" : [ + ":ExecFiles" + ] + } + }, + "name" : "@RJBS/Test::Compile", + "version" : "2.033" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -173,90 +218,67 @@ } }, "name" : "@RJBS/TestMoreWithSubtests", - "version" : "4.300007" + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::PodWeaver", "name" : "@RJBS/PodWeaver", - "version" : "3.101641" + "version" : "3.101642" }, { "class" : "Dist::Zilla::Plugin::GithubMeta", "name" : "@RJBS/GithubMeta", - "version" : "0.28" + "version" : "0.38" }, { "class" : "Dist::Zilla::Plugin::Git::Check", "name" : "@RJBS/@Git/Check", - "version" : "1.120370" + "version" : "2.014" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", "name" : "@RJBS/@Git/Commit", - "version" : "1.120370" + "version" : "2.014" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", "name" : "@RJBS/@Git/Tag", - "version" : "1.120370" + "version" : "2.014" }, { "class" : "Dist::Zilla::Plugin::Git::Push", "name" : "@RJBS/@Git/Push", - "version" : "1.120370" - }, - { - "class" : "Dist::Zilla::Plugin::RemovePrereqs", - "config" : { - "Dist::Zilla::Plugin::RemovePrereqs" : { - "modules_to_remove" : [ - "Test::More" - ] - } - }, - "name" : "RemovePrereqs", - "version" : "4.300007" - }, - { - "class" : "Dist::Zilla::Plugin::Prereqs", - "config" : { - "Dist::Zilla::Plugin::Prereqs" : { - "phase" : "test", - "type" : "requires" - } - }, - "name" : "TestRequires", - "version" : "4.300007" + "version" : "2.014" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", - "version" : "4.300007" + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":IncModules", - "version" : "4.300007" + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", - "version" : "4.300007" + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", - "version" : "4.300007" + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", - "version" : "4.300007" + "version" : "4.300039" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":MainModule", - "version" : "4.300007" + "version" : "4.300039" } ], "zilla" : { @@ -264,7 +286,7 @@ "config" : { "is_trial" : "0" }, - "version" : "4.300007" + "version" : "4.300039" } } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Fatal-0.010/META.yml new/Test-Fatal-0.013/META.yml --- old/Test-Fatal-0.010/META.yml 2012-02-16 16:28:07.000000000 +0100 +++ new/Test-Fatal-0.013/META.yml 2013-09-23 16:31:18.000000000 +0200 @@ -3,13 +3,16 @@ author: - 'Ricardo Signes <[email protected]>' build_requires: + File::Spec: 0 + IO::Handle: 0 + IPC::Open3: 0 Test::Builder::Tester: 0 - Test::More: 0.47 + Test::More: 0.96 overload: 0 configure_requires: ExtUtils::MakeMaker: 6.30 dynamic_config: 0 -generated_by: 'Dist::Zilla version 4.300007, CPAN::Meta::Converter version 2.120351' +generated_by: 'Dist::Zilla version 4.300039, CPAN::Meta::Converter version 2.132620' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -23,103 +26,128 @@ strict: 0 warnings: 0 resources: - homepage: https://github.com/rjbs/test-fatal - repository: https://github.com/rjbs/test-fatal.git -version: 0.010 + bugtracker: https://github.com/rjbs/Test-Fatal/issues + homepage: https://github.com/rjbs/Test-Fatal + repository: https://github.com/rjbs/Test-Fatal.git +version: 0.013 x_Dist_Zilla: + perl: + version: 5.019003 plugins: - + class: Dist::Zilla::Plugin::Git::GatherDir + name: '@RJBS/Git::GatherDir' + version: 2.014 + - class: Dist::Zilla::Plugin::CheckPrereqsIndexed name: '@RJBS/CheckPrereqsIndexed' - version: 0.007 + version: 0.009 - - class: Dist::Zilla::Plugin::GatherDir - name: '@RJBS/@Basic/GatherDir' - version: 4.300007 + class: Dist::Zilla::Plugin::CheckExtraTests + name: '@RJBS/CheckExtraTests' + version: 0.011 + - + class: Dist::Zilla::Plugin::PromptIfStale + name: '@RJBS/RJBS-Outdated' + version: 0.005 + - + class: Dist::Zilla::Plugin::PromptIfStale + name: '@RJBS/CPAN-Outdated' + version: 0.005 - class: Dist::Zilla::Plugin::PruneCruft - name: '@RJBS/@Basic/PruneCruft' - version: 4.300007 + name: '@RJBS/@Filter/PruneCruft' + version: 4.300039 - class: Dist::Zilla::Plugin::ManifestSkip - name: '@RJBS/@Basic/ManifestSkip' - version: 4.300007 + name: '@RJBS/@Filter/ManifestSkip' + version: 4.300039 - class: Dist::Zilla::Plugin::MetaYAML - name: '@RJBS/@Basic/MetaYAML' - version: 4.300007 + name: '@RJBS/@Filter/MetaYAML' + version: 4.300039 - class: Dist::Zilla::Plugin::License - name: '@RJBS/@Basic/License' - version: 4.300007 + name: '@RJBS/@Filter/License' + version: 4.300039 - class: Dist::Zilla::Plugin::Readme - name: '@RJBS/@Basic/Readme' - version: 4.300007 - - - class: Dist::Zilla::Plugin::ExtraTests - name: '@RJBS/@Basic/ExtraTests' - version: 4.300007 + name: '@RJBS/@Filter/Readme' + version: 4.300039 - class: Dist::Zilla::Plugin::ExecDir - name: '@RJBS/@Basic/ExecDir' - version: 4.300007 + name: '@RJBS/@Filter/ExecDir' + version: 4.300039 - class: Dist::Zilla::Plugin::ShareDir - name: '@RJBS/@Basic/ShareDir' - version: 4.300007 + name: '@RJBS/@Filter/ShareDir' + version: 4.300039 - class: Dist::Zilla::Plugin::MakeMaker - name: '@RJBS/@Basic/MakeMaker' - version: 4.300007 + name: '@RJBS/@Filter/MakeMaker' + version: 4.300039 - class: Dist::Zilla::Plugin::Manifest - name: '@RJBS/@Basic/Manifest' - version: 4.300007 + name: '@RJBS/@Filter/Manifest' + version: 4.300039 - class: Dist::Zilla::Plugin::TestRelease - name: '@RJBS/@Basic/TestRelease' - version: 4.300007 + name: '@RJBS/@Filter/TestRelease' + version: 4.300039 - class: Dist::Zilla::Plugin::ConfirmRelease - name: '@RJBS/@Basic/ConfirmRelease' - version: 4.300007 + name: '@RJBS/@Filter/ConfirmRelease' + version: 4.300039 - class: Dist::Zilla::Plugin::UploadToCPAN - name: '@RJBS/@Basic/UploadToCPAN' - version: 4.300007 + name: '@RJBS/@Filter/UploadToCPAN' + version: 4.300039 - class: Dist::Zilla::Plugin::AutoPrereqs name: '@RJBS/AutoPrereqs' - version: 4.300007 + version: 4.300039 - class: Dist::Zilla::Plugin::Git::NextVersion name: '@RJBS/Git::NextVersion' - version: 1.120370 + version: 2.014 - class: Dist::Zilla::Plugin::PkgVersion name: '@RJBS/PkgVersion' - version: 4.300007 + version: 4.300039 - class: Dist::Zilla::Plugin::MetaConfig name: '@RJBS/MetaConfig' - version: 4.300007 + version: 4.300039 - class: Dist::Zilla::Plugin::MetaJSON name: '@RJBS/MetaJSON' - version: 4.300007 + version: 4.300039 - class: Dist::Zilla::Plugin::NextRelease name: '@RJBS/NextRelease' - version: 4.300007 + version: 4.300039 + - + class: Dist::Zilla::Plugin::Test::ChangesHasContent + name: '@RJBS/Test::ChangesHasContent' + version: 0.006 - class: Dist::Zilla::Plugin::PodSyntaxTests name: '@RJBS/PodSyntaxTests' - version: 4.300007 + version: 4.300039 - - class: Dist::Zilla::Plugin::Repository - name: '@RJBS/Repository' - version: 0.18 + class: Dist::Zilla::Plugin::ReportVersions::Tiny + name: '@RJBS/ReportVersions::Tiny' + version: 1.09 + - + class: Dist::Zilla::Plugin::Test::Compile + config: + Dist::Zilla::Plugin::Test::Compile: + module_finder: + - ':InstallModules' + script_finder: + - ':ExecFiles' + name: '@RJBS/Test::Compile' + version: 2.033 - class: Dist::Zilla::Plugin::Prereqs config: @@ -127,73 +155,57 @@ phase: test type: requires name: '@RJBS/TestMoreWithSubtests' - version: 4.300007 + version: 4.300039 - class: Dist::Zilla::Plugin::PodWeaver name: '@RJBS/PodWeaver' - version: 3.101641 + version: 3.101642 - class: Dist::Zilla::Plugin::GithubMeta name: '@RJBS/GithubMeta' - version: 0.28 + version: 0.38 - class: Dist::Zilla::Plugin::Git::Check name: '@RJBS/@Git/Check' - version: 1.120370 + version: 2.014 - class: Dist::Zilla::Plugin::Git::Commit name: '@RJBS/@Git/Commit' - version: 1.120370 + version: 2.014 - class: Dist::Zilla::Plugin::Git::Tag name: '@RJBS/@Git/Tag' - version: 1.120370 + version: 2.014 - class: Dist::Zilla::Plugin::Git::Push name: '@RJBS/@Git/Push' - version: 1.120370 - - - class: Dist::Zilla::Plugin::RemovePrereqs - config: - Dist::Zilla::Plugin::RemovePrereqs: - modules_to_remove: - - Test::More - name: RemovePrereqs - version: 4.300007 - - - class: Dist::Zilla::Plugin::Prereqs - config: - Dist::Zilla::Plugin::Prereqs: - phase: test - type: requires - name: TestRequires - version: 4.300007 + version: 2.014 - class: Dist::Zilla::Plugin::FinderCode name: ':InstallModules' - version: 4.300007 + version: 4.300039 - class: Dist::Zilla::Plugin::FinderCode name: ':IncModules' - version: 4.300007 + version: 4.300039 - class: Dist::Zilla::Plugin::FinderCode name: ':TestFiles' - version: 4.300007 + version: 4.300039 - class: Dist::Zilla::Plugin::FinderCode name: ':ExecFiles' - version: 4.300007 + version: 4.300039 - class: Dist::Zilla::Plugin::FinderCode name: ':ShareFiles' - version: 4.300007 + version: 4.300039 - class: Dist::Zilla::Plugin::FinderCode name: ':MainModule' - version: 4.300007 + version: 4.300039 zilla: class: Dist::Zilla::Dist::Builder config: is_trial: 0 - version: 4.300007 + version: 4.300039 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Fatal-0.010/Makefile.PL new/Test-Fatal-0.013/Makefile.PL --- old/Test-Fatal-0.010/Makefile.PL 2012-02-16 16:28:07.000000000 +0100 +++ new/Test-Fatal-0.013/Makefile.PL 2013-09-23 16:31:18.000000000 +0200 @@ -11,11 +11,7 @@ my %WriteMakefileArgs = ( "ABSTRACT" => "incredibly simple helpers for testing code with exceptions", "AUTHOR" => "Ricardo Signes <rjbs\@cpan.org>", - "BUILD_REQUIRES" => { - "Test::Builder::Tester" => 0, - "Test::More" => "0.47", - "overload" => 0 - }, + "BUILD_REQUIRES" => {}, "CONFIGURE_REQUIRES" => { "ExtUtils::MakeMaker" => "6.30" }, @@ -31,13 +27,34 @@ "strict" => 0, "warnings" => 0 }, - "VERSION" => "0.010", + "TEST_REQUIRES" => { + "File::Spec" => 0, + "IO::Handle" => 0, + "IPC::Open3" => 0, + "Test::Builder::Tester" => 0, + "Test::More" => "0.96", + "overload" => 0 + }, + "VERSION" => "0.013", "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}; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Fatal-0.010/README new/Test-Fatal-0.013/README --- old/Test-Fatal-0.010/README 2012-02-16 16:28:07.000000000 +0100 +++ new/Test-Fatal-0.013/README 2013-09-23 16:31:18.000000000 +0200 @@ -1,7 +1,7 @@ This archive contains the distribution Test-Fatal, -version 0.010: +version 0.013: incredibly simple helpers for testing code with exceptions diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Fatal-0.010/dist.ini new/Test-Fatal-0.013/dist.ini --- old/Test-Fatal-0.010/dist.ini 2012-02-16 16:28:07.000000000 +0100 +++ new/Test-Fatal-0.013/dist.ini 2013-09-23 16:31:18.000000000 +0200 @@ -5,9 +5,3 @@ copyright_year = 2010 [@RJBS] - -[RemovePrereqs] -remove = Test::More - -[Prereqs / TestRequires] -Test::More = 0.47 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Fatal-0.010/examples/exception_like.t new/Test-Fatal-0.013/examples/exception_like.t --- old/Test-Fatal-0.010/examples/exception_like.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Test-Fatal-0.013/examples/exception_like.t 2013-09-23 16:31:18.000000000 +0200 @@ -0,0 +1,23 @@ +use strict; +use warnings FATAL => 'all'; + +use Test::More; +use Test::Fatal; +use Carp 'confess'; + +sub exception_like(&$;$) +{ + my ($code, $pattern, $name) = @_; + like( &exception($code), $pattern, $name ); +} + +exception_like(sub { confess 'blah blah' }, qr/foo/, 'foo seems to appear in the exception'); + +# the test only passes when we invert it +unlike( + ( exception { confess 'blah blah' } || '' ), + qr/foo/, + 'foo does NOT ACTUALLY appear in the exception', +); + +done_testing; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Fatal-0.010/lib/Test/Fatal.pm new/Test-Fatal-0.013/lib/Test/Fatal.pm --- old/Test-Fatal-0.010/lib/Test/Fatal.pm 2012-02-16 16:28:07.000000000 +0100 +++ new/Test-Fatal-0.013/lib/Test/Fatal.pm 2013-09-23 16:31:18.000000000 +0200 @@ -2,7 +2,7 @@ use warnings; package Test::Fatal; { - $Test::Fatal::VERSION = '0.010'; + $Test::Fatal::VERSION = '0.013'; } # ABSTRACT: incredibly simple helpers for testing code with exceptions @@ -16,10 +16,32 @@ our @EXPORT_OK = qw(exception success dies_ok lives_ok); +our ($REAL_TBL, $REAL_CALCULATED_TBL) = (1, 1); + sub exception (&) { my $code = shift; return try { + my $incremented = $Test::Builder::Level - $REAL_CALCULATED_TBL; + local $Test::Builder::Level = $REAL_CALCULATED_TBL; + if ($incremented) { + # each call to exception adds 5 stack frames + $Test::Builder::Level += 5; + for my $i (1..$incremented) { + # -2 because we want to see it from the perspective of the call to + # is() within the call to $code->() + my $caller = caller($Test::Builder::Level - 2); + if ($caller eq __PACKAGE__) { + # each call to exception adds 5 stack frames + $Test::Builder::Level = $Test::Builder::Level + 5; + } + else { + $Test::Builder::Level = $Test::Builder::Level + 1; + } + } + } + + local $REAL_CALCULATED_TBL = $Test::Builder::Level; $code->(); return undef; } catch { @@ -70,6 +92,7 @@ 1; __END__ + =pod =head1 NAME @@ -78,7 +101,7 @@ =head1 VERSION -version 0.010 +version 0.013 =head1 SYNOPSIS @@ -142,14 +165,19 @@ B<Achtung!> This is not a great idea: - like( exception { ... }, qr/foo/, "foo appears in the exception" ); + sub exception_like(&$;$) { + my ($code, $pattern, $name) = @_; + like( &exception($code), $pattern, $name ); + } + + exception_like(sub { }, qr/foo/, 'foo appears in the exception'); If the code in the C<...> is going to throw a stack trace with the arguments to -each subroutine in its call stack, the test name, "foo appears in the -exception" will itself be matched by the regex. Instead, write this: +each subroutine in its call stack (for example via C<Carp::confess>, +the test name, "foo appears in the exception" will itself be matched by the +regex. Instead, write this: - my $exception = exception { ... }; - like( $exception, qr/foo/, "foo appears in the exception" ); + like( exception { ... }, qr/foo/, 'foo appears in the exception' ); B<Achtung>: One final bad idea: @@ -210,4 +238,3 @@ the same terms as the Perl 5 programming language system itself. =cut - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Fatal-0.010/t/00-compile.t new/Test-Fatal-0.013/t/00-compile.t --- old/Test-Fatal-0.010/t/00-compile.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Test-Fatal-0.013/t/00-compile.t 2013-09-23 16:31:18.000000000 +0200 @@ -0,0 +1,46 @@ +use strict; +use warnings; + +# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.033 + +use Test::More tests => 1 + ($ENV{AUTHOR_TESTING} ? 1 : 0); + + + +my @module_files = ( + 'Test/Fatal.pm' +); + + + +# no fake home requested + +use File::Spec; +use IPC::Open3; +use IO::Handle; + +my @warnings; +for my $lib (@module_files) +{ + # see L<perlfaq8/How can I capture STDERR from an external command?> + open my $stdin, '<', File::Spec->devnull or die "can't open devnull: $!"; + my $stderr = IO::Handle->new; + + my $pid = open3($stdin, '>&STDERR', $stderr, $^X, '-Mblib', '-e', "require q[$lib]"); + binmode $stderr, ':crlf' if $^O eq 'MSWin32'; + my @_warnings = <$stderr>; + waitpid($pid, 0); + is($? >> 8, 0, "$lib loaded ok"); + + if (@_warnings) + { + warn @_warnings; + push @warnings, @_warnings; + } +} + + + +is(scalar(@warnings), 0, 'no warnings found') if $ENV{AUTHOR_TESTING}; + + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Fatal-0.010/t/000-report-versions-tiny.t new/Test-Fatal-0.013/t/000-report-versions-tiny.t --- old/Test-Fatal-0.010/t/000-report-versions-tiny.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Test-Fatal-0.013/t/000-report-versions-tiny.t 2013-09-23 16:31:18.000000000 +0200 @@ -0,0 +1,84 @@ +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.09\n"; + +eval { # no excuses! + # report our Perl details + my $want = "any version"; + $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('Carp','any version') }; +eval { $v .= pmver('Exporter','5.57') }; +eval { $v .= pmver('ExtUtils::MakeMaker','6.30') }; +eval { $v .= pmver('File::Spec','any version') }; +eval { $v .= pmver('IO::Handle','any version') }; +eval { $v .= pmver('IPC::Open3','any version') }; +eval { $v .= pmver('Test::Builder','any version') }; +eval { $v .= pmver('Test::Builder::Tester','any version') }; +eval { $v .= pmver('Test::More','0.96') }; +eval { $v .= pmver('Test::Pod','1.41') }; +eval { $v .= pmver('Try::Tiny','0.07') }; +eval { $v .= pmver('overload','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/Test-Fatal-0.010/t/release-pod-syntax.t new/Test-Fatal-0.013/t/release-pod-syntax.t --- old/Test-Fatal-0.010/t/release-pod-syntax.t 2012-02-16 16:28:07.000000000 +0100 +++ new/Test-Fatal-0.013/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/Test-Fatal-0.010/t/todo.t new/Test-Fatal-0.013/t/todo.t --- old/Test-Fatal-0.010/t/todo.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Test-Fatal-0.013/t/todo.t 2013-09-23 16:31:18.000000000 +0200 @@ -0,0 +1,131 @@ +#!/usr/bin/perl + +use strict; + +use Test::Builder::Tester tests => 4; + +use Test::More; +use Test::Fatal; + +{ + my $line = __LINE__ + 13; + my $out = <<FAIL; +not ok 1 - succeeded # TODO unimplemented +# Failed (TODO) test 'succeeded' +# at t/todo.t line $line. +# got: '0' +# expected: '1' +ok 2 - no exceptions # TODO unimplemented +FAIL + chomp($out); + test_out($out); + { + local $TODO = "unimplemented"; + is(exception { is(0, 1, "succeeded") }, undef, "no exceptions"); + } + test_test( "\$TODO works" ); +} + +{ + my $line = __LINE__ + 13; + my $out = <<FAIL; +not ok 1 - succeeded # TODO unimplemented +# Failed (TODO) test 'succeeded' +# at t/todo.t line $line. +# got: '0' +# expected: '1' +ok 2 - no exceptions # TODO unimplemented +FAIL + chomp($out); + test_out($out); + { + local $TODO = "unimplemented"; + stuff_is_ok(0, 1); + } + test_test( "\$TODO works" ); + + sub stuff_is_ok { + my ($got, $expected) = @_; + local $Test::Builder::Level = $Test::Builder::Level + 1; + is( + exception { is($got, $expected, "succeeded") }, + undef, + "no exceptions" + ); + } +} + +{ + my $line = __LINE__ + 13; + my $out = <<FAIL; +not ok 1 - succeeded # TODO unimplemented +# Failed (TODO) test 'succeeded' +# at t/todo.t line $line. +# got: '0' +# expected: '1' +ok 2 - no exceptions # TODO unimplemented +FAIL + chomp($out); + test_out($out); + { + local $TODO = "unimplemented"; + stuff_is_ok2(0, 1); + } + test_test( "\$TODO works" ); + + sub stuff_is_ok2 { + my ($got, $expected) = @_; + local $Test::Builder::Level = $Test::Builder::Level + 1; + _stuff_is_ok2(@_); + } + + sub _stuff_is_ok2 { + my ($got, $expected) = @_; + local $Test::Builder::Level = $Test::Builder::Level + 1; + is( + exception { is($got, $expected, "succeeded") }, + undef, + "no exceptions" + ); + } +} + +{ + my $line = __LINE__ + 14; + my $out = <<FAIL; +not ok 1 - succeeded # TODO unimplemented +# Failed (TODO) test 'succeeded' +# at t/todo.t line $line. +# got: '0' +# expected: '1' +ok 2 - no exceptions # TODO unimplemented +ok 3 - level 1 # TODO unimplemented +FAIL + chomp($out); + test_out($out); + { + local $TODO = "unimplemented"; + multi_level_ok(0, 1); + } + test_test( "\$TODO works" ); + + sub multi_level_ok { + my ($got, $expected) = @_; + local $Test::Builder::Level = $Test::Builder::Level + 1; + is( + exception { _multi_level_ok($got, $expected) }, + undef, + "level 1" + ); + } + + sub _multi_level_ok { + my ($got, $expected) = @_; + local $Test::Builder::Level = $Test::Builder::Level + 1; + is( + exception { is($got, $expected, "succeeded") }, + undef, + "no exceptions" + ); + } +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Fatal-0.010/xt/release/changes_has_content.t new/Test-Fatal-0.013/xt/release/changes_has_content.t --- old/Test-Fatal-0.010/xt/release/changes_has_content.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Test-Fatal-0.013/xt/release/changes_has_content.t 2013-09-23 16:31:18.000000000 +0200 @@ -0,0 +1,41 @@ +#!perl + +use Test::More tests => 2; + +note 'Checking Changes'; +my $changes_file = 'Changes'; +my $newver = '0.013'; +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/Test-Fatal-0.010/xt/release/pod-syntax.t new/Test-Fatal-0.013/xt/release/pod-syntax.t --- old/Test-Fatal-0.010/xt/release/pod-syntax.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Test-Fatal-0.013/xt/release/pod-syntax.t 2013-09-23 16:31:18.000000000 +0200 @@ -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: [email protected] For additional commands, e-mail: [email protected]
