Hello community, here is the log from the commit of package perl-Test-Fatal for openSUSE:Factory checked in at Tue May 31 13:14:28 CEST 2011.
-------- --- perl-Test-Fatal/perl-Test-Fatal.changes 2010-12-01 14:55:31.000000000 +0100 +++ /mounts/work_src_done/STABLE/perl-Test-Fatal/perl-Test-Fatal.changes 2011-04-28 07:42:07.000000000 +0200 @@ -1,0 +2,7 @@ +Thu Apr 28 05:37:16 UTC 2011 - [email protected] + +- update to 0.005: no user-visible changes +- changes from 0.004: + * success blocks now allow trailing blocks like finally, catch, etc. + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- Test-Fatal-0.003.tar.gz New: ---- Test-Fatal-0.005.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Test-Fatal.spec ++++++ --- /var/tmp/diff_new_pack.1dnCUL/_old 2011-05-31 13:12:58.000000000 +0200 +++ /var/tmp/diff_new_pack.1dnCUL/_new 2011-05-31 13:12:58.000000000 +0200 @@ -1,7 +1,7 @@ # -# spec file for package perl-Test-Fatal (Version 0.003) +# spec file for package perl-Test-Fatal # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2011 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 @@ -21,12 +21,12 @@ Name: perl-Test-Fatal %define cpan_name Test-Fatal Summary: Incredibly simple helpers for testing code with exceptions -Version: 0.003 -Release: 2 +Version: 0.005 +Release: 1 License: GPL+ or Artistic Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Test-Fatal/ -Source: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Test-Fatal-0.003.tar.gz +Source: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Test-Fatal-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build %{perl_requires} ++++++ Test-Fatal-0.003.tar.gz -> Test-Fatal-0.005.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Fatal-0.003/Changes new/Test-Fatal-0.005/Changes --- old/Test-Fatal-0.003/Changes 2010-10-29 04:11:02.000000000 +0200 +++ new/Test-Fatal-0.005/Changes 2011-04-26 13:50:56.000000000 +0200 @@ -1,5 +1,12 @@ Revision history for Test-Fatal +0.005 2011-04-26 07:50:48 America/New_York + 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. + (thanks, Joel Bernstein) + 0.003 2010-10-28 22:10:59 America/New_York more tests for false exceptions, especially on 5.13 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Fatal-0.003/META.json new/Test-Fatal-0.005/META.json --- old/Test-Fatal-0.003/META.json 2010-10-29 04:11:02.000000000 +0200 +++ new/Test-Fatal-0.005/META.json 2011-04-26 13:50:56.000000000 +0200 @@ -4,7 +4,7 @@ "Ricardo Signes <[email protected]>" ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 4.102342, CPAN::Meta::Converter version 2.102400", + "generated_by" : "Dist::Zilla version 4.200005, CPAN::Meta::Converter version 2.110930", "license" : [ "perl_5" ], @@ -40,118 +40,123 @@ "url" : "git://git.codesimply.com/Test-Fatal.git" } }, - "version" : "0.003", + "version" : "0.005", "x_Dist_Zilla" : { "plugins" : [ { + "class" : "Dist::Zilla::Plugin::CheckPrereqsIndexed", + "name" : "@RJBS/CheckPrereqsIndexed", + "version" : "0.002" + }, + { "class" : "Dist::Zilla::Plugin::GatherDir", "name" : "@RJBS/@Basic/GatherDir", - "version" : "4.102342" + "version" : "4.200005" }, { "class" : "Dist::Zilla::Plugin::PruneCruft", "name" : "@RJBS/@Basic/PruneCruft", - "version" : "4.102342" + "version" : "4.200005" }, { "class" : "Dist::Zilla::Plugin::ManifestSkip", "name" : "@RJBS/@Basic/ManifestSkip", - "version" : "4.102342" + "version" : "4.200005" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", "name" : "@RJBS/@Basic/MetaYAML", - "version" : "4.102342" + "version" : "4.200005" }, { "class" : "Dist::Zilla::Plugin::License", "name" : "@RJBS/@Basic/License", - "version" : "4.102342" + "version" : "4.200005" }, { "class" : "Dist::Zilla::Plugin::Readme", "name" : "@RJBS/@Basic/Readme", - "version" : "4.102342" + "version" : "4.200005" }, { "class" : "Dist::Zilla::Plugin::ExtraTests", "name" : "@RJBS/@Basic/ExtraTests", - "version" : "4.102342" + "version" : "4.200005" }, { "class" : "Dist::Zilla::Plugin::ExecDir", "name" : "@RJBS/@Basic/ExecDir", - "version" : "4.102342" + "version" : "4.200005" }, { "class" : "Dist::Zilla::Plugin::ShareDir", "name" : "@RJBS/@Basic/ShareDir", - "version" : "4.102342" + "version" : "4.200005" }, { "class" : "Dist::Zilla::Plugin::MakeMaker", "name" : "@RJBS/@Basic/MakeMaker", - "version" : "4.102342" + "version" : "4.200005" }, { "class" : "Dist::Zilla::Plugin::Manifest", "name" : "@RJBS/@Basic/Manifest", - "version" : "4.102342" + "version" : "4.200005" }, { "class" : "Dist::Zilla::Plugin::TestRelease", "name" : "@RJBS/@Basic/TestRelease", - "version" : "4.102342" + "version" : "4.200005" }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", "name" : "@RJBS/@Basic/ConfirmRelease", - "version" : "4.102342" + "version" : "4.200005" }, { "class" : "Dist::Zilla::Plugin::UploadToCPAN", "name" : "@RJBS/@Basic/UploadToCPAN", - "version" : "4.102342" + "version" : "4.200005" }, { "class" : "Dist::Zilla::Plugin::AutoPrereqs", "name" : "@RJBS/AutoPrereqs", - "version" : "4.102342" + "version" : "4.200005" }, { "class" : "Dist::Zilla::Plugin::Git::NextVersion", "name" : "@RJBS/Git::NextVersion", - "version" : "1.102810" + "version" : "1.110500" }, { "class" : "Dist::Zilla::Plugin::PkgVersion", "name" : "@RJBS/PkgVersion", - "version" : "4.102342" + "version" : "4.200005" }, { "class" : "Dist::Zilla::Plugin::MetaConfig", "name" : "@RJBS/MetaConfig", - "version" : "4.102342" + "version" : "4.200005" }, { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "@RJBS/MetaJSON", - "version" : "4.102342" + "version" : "4.200005" }, { "class" : "Dist::Zilla::Plugin::NextRelease", "name" : "@RJBS/NextRelease", - "version" : "4.102342" + "version" : "4.200005" }, { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "@RJBS/PodSyntaxTests", - "version" : "4.102342" + "version" : "4.200005" }, { "class" : "Dist::Zilla::Plugin::Repository", "name" : "@RJBS/Repository", - "version" : "0.14" + "version" : "0.18" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -162,7 +167,7 @@ } }, "name" : "@RJBS/TestMoreWithSubtests", - "version" : "4.102342" + "version" : "4.200005" }, { "class" : "Dist::Zilla::Plugin::PodWeaver", @@ -172,42 +177,42 @@ { "class" : "Dist::Zilla::Plugin::Git::Check", "name" : "@RJBS/@Git/Check", - "version" : "1.102810" + "version" : "1.110500" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", "name" : "@RJBS/@Git/Commit", - "version" : "1.102810" + "version" : "1.110500" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", "name" : "@RJBS/@Git/Tag", - "version" : "1.102810" + "version" : "1.110500" }, { "class" : "Dist::Zilla::Plugin::Git::Push", "name" : "@RJBS/@Git/Push", - "version" : "1.102810" + "version" : "1.110500" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", - "version" : "4.102342" + "version" : "4.200005" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", - "version" : "4.102342" + "version" : "4.200005" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", - "version" : "4.102342" + "version" : "4.200005" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", - "version" : "4.102342" + "version" : "4.200005" } ], "zilla" : { @@ -215,7 +220,7 @@ "config" : { "is_trial" : 0 }, - "version" : "4.102342" + "version" : "4.200005" } } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Fatal-0.003/META.yml new/Test-Fatal-0.005/META.yml --- old/Test-Fatal-0.003/META.yml 2010-10-29 04:11:02.000000000 +0200 +++ new/Test-Fatal-0.005/META.yml 2011-04-26 13:50:56.000000000 +0200 @@ -8,7 +8,7 @@ configure_requires: ExtUtils::MakeMaker: 6.31 dynamic_config: 0 -generated_by: 'Dist::Zilla version 4.102342, CPAN::Meta::Converter version 2.102400' +generated_by: 'Dist::Zilla version 4.200005, CPAN::Meta::Converter version 2.110930' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -20,97 +20,101 @@ Try::Tiny: 0.07 resources: repository: git://git.codesimply.com/Test-Fatal.git -version: 0.003 +version: 0.005 x_Dist_Zilla: plugins: - + class: Dist::Zilla::Plugin::CheckPrereqsIndexed + name: '@RJBS/CheckPrereqsIndexed' + version: 0.002 + - class: Dist::Zilla::Plugin::GatherDir name: '@RJBS/@Basic/GatherDir' - version: 4.102342 + version: 4.200005 - class: Dist::Zilla::Plugin::PruneCruft name: '@RJBS/@Basic/PruneCruft' - version: 4.102342 + version: 4.200005 - class: Dist::Zilla::Plugin::ManifestSkip name: '@RJBS/@Basic/ManifestSkip' - version: 4.102342 + version: 4.200005 - class: Dist::Zilla::Plugin::MetaYAML name: '@RJBS/@Basic/MetaYAML' - version: 4.102342 + version: 4.200005 - class: Dist::Zilla::Plugin::License name: '@RJBS/@Basic/License' - version: 4.102342 + version: 4.200005 - class: Dist::Zilla::Plugin::Readme name: '@RJBS/@Basic/Readme' - version: 4.102342 + version: 4.200005 - class: Dist::Zilla::Plugin::ExtraTests name: '@RJBS/@Basic/ExtraTests' - version: 4.102342 + version: 4.200005 - class: Dist::Zilla::Plugin::ExecDir name: '@RJBS/@Basic/ExecDir' - version: 4.102342 + version: 4.200005 - class: Dist::Zilla::Plugin::ShareDir name: '@RJBS/@Basic/ShareDir' - version: 4.102342 + version: 4.200005 - class: Dist::Zilla::Plugin::MakeMaker name: '@RJBS/@Basic/MakeMaker' - version: 4.102342 + version: 4.200005 - class: Dist::Zilla::Plugin::Manifest name: '@RJBS/@Basic/Manifest' - version: 4.102342 + version: 4.200005 - class: Dist::Zilla::Plugin::TestRelease name: '@RJBS/@Basic/TestRelease' - version: 4.102342 + version: 4.200005 - class: Dist::Zilla::Plugin::ConfirmRelease name: '@RJBS/@Basic/ConfirmRelease' - version: 4.102342 + version: 4.200005 - class: Dist::Zilla::Plugin::UploadToCPAN name: '@RJBS/@Basic/UploadToCPAN' - version: 4.102342 + version: 4.200005 - class: Dist::Zilla::Plugin::AutoPrereqs name: '@RJBS/AutoPrereqs' - version: 4.102342 + version: 4.200005 - class: Dist::Zilla::Plugin::Git::NextVersion name: '@RJBS/Git::NextVersion' - version: 1.102810 + version: 1.110500 - class: Dist::Zilla::Plugin::PkgVersion name: '@RJBS/PkgVersion' - version: 4.102342 + version: 4.200005 - class: Dist::Zilla::Plugin::MetaConfig name: '@RJBS/MetaConfig' - version: 4.102342 + version: 4.200005 - class: Dist::Zilla::Plugin::MetaJSON name: '@RJBS/MetaJSON' - version: 4.102342 + version: 4.200005 - class: Dist::Zilla::Plugin::NextRelease name: '@RJBS/NextRelease' - version: 4.102342 + version: 4.200005 - class: Dist::Zilla::Plugin::PodSyntaxTests name: '@RJBS/PodSyntaxTests' - version: 4.102342 + version: 4.200005 - class: Dist::Zilla::Plugin::Repository name: '@RJBS/Repository' - version: 0.14 + version: 0.18 - class: Dist::Zilla::Plugin::Prereqs config: @@ -118,7 +122,7 @@ phase: test type: requires name: '@RJBS/TestMoreWithSubtests' - version: 4.102342 + version: 4.200005 - class: Dist::Zilla::Plugin::PodWeaver name: '@RJBS/PodWeaver' @@ -126,37 +130,37 @@ - class: Dist::Zilla::Plugin::Git::Check name: '@RJBS/@Git/Check' - version: 1.102810 + version: 1.110500 - class: Dist::Zilla::Plugin::Git::Commit name: '@RJBS/@Git/Commit' - version: 1.102810 + version: 1.110500 - class: Dist::Zilla::Plugin::Git::Tag name: '@RJBS/@Git/Tag' - version: 1.102810 + version: 1.110500 - class: Dist::Zilla::Plugin::Git::Push name: '@RJBS/@Git/Push' - version: 1.102810 + version: 1.110500 - class: Dist::Zilla::Plugin::FinderCode name: ':InstallModules' - version: 4.102342 + version: 4.200005 - class: Dist::Zilla::Plugin::FinderCode name: ':TestFiles' - version: 4.102342 + version: 4.200005 - class: Dist::Zilla::Plugin::FinderCode name: ':ExecFiles' - version: 4.102342 + version: 4.200005 - class: Dist::Zilla::Plugin::FinderCode name: ':ShareFiles' - version: 4.102342 + version: 4.200005 zilla: class: Dist::Zilla::Dist::Builder config: is_trial: 0 - version: 4.102342 + version: 4.200005 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Fatal-0.003/Makefile.PL new/Test-Fatal-0.005/Makefile.PL --- old/Test-Fatal-0.003/Makefile.PL 2010-10-29 04:11:02.000000000 +0200 +++ new/Test-Fatal-0.005/Makefile.PL 2011-04-26 13:50:56.000000000 +0200 @@ -27,7 +27,7 @@ 'Exporter' => '5.59', 'Try::Tiny' => '0.07' }, - 'VERSION' => '0.003', + 'VERSION' => '0.005', 'test' => { 'TESTS' => 't/*.t' } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Fatal-0.003/README new/Test-Fatal-0.005/README --- old/Test-Fatal-0.003/README 2010-10-29 04:11:02.000000000 +0200 +++ new/Test-Fatal-0.005/README 2011-04-26 13:50:56.000000000 +0200 @@ -1,7 +1,7 @@ This archive contains the distribution Test-Fatal, -version 0.003: +version 0.005: incredibly simple helpers for testing code with exceptions diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Fatal-0.003/lib/Test/Fatal.pm new/Test-Fatal-0.005/lib/Test/Fatal.pm --- old/Test-Fatal-0.003/lib/Test/Fatal.pm 2010-10-29 04:11:02.000000000 +0200 +++ new/Test-Fatal-0.005/lib/Test/Fatal.pm 2011-04-26 13:50:56.000000000 +0200 @@ -2,7 +2,7 @@ use warnings; package Test::Fatal; BEGIN { - $Test::Fatal::VERSION = '0.003'; + $Test::Fatal::VERSION = '0.005'; } # ABSTRACT: incredibly simple helpers for testing code with exceptions @@ -16,27 +16,27 @@ our @EXPORT_OK = qw(exception success); -sub exception (&) { - my ($code) = @_; +sub exception (&;@) { + my $code = shift; return try { $code->(); return undef; - } catch { + } catch( sub { return $_ if $_; my $problem = defined $_ ? 'false' : 'undef'; Carp::confess("$problem exception caught by Test::Fatal::exception"); - }; + }, @_); } -sub success (&) { - my ($code) = @_; - return finally { +sub success (&;@) { + my $code = shift; + return finally( sub { return if @_; # <-- only run on success $code->(); - } + }, @_ ); } 1; @@ -50,7 +50,7 @@ =head1 VERSION -version 0.003 +version 0.005 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Fatal-0.003/t/basic.t new/Test-Fatal-0.005/t/basic.t --- old/Test-Fatal-0.003/t/basic.t 2010-10-29 04:11:02.000000000 +0200 +++ new/Test-Fatal-0.005/t/basic.t 2011-04-26 13:50:56.000000000 +0200 @@ -1,6 +1,6 @@ use strict; use warnings; -use Test::More tests => 5 + ($] >= 5.013001 ? 0 : 1); +use Test::More tests => 7 + ($] < 5.013001 ? 1 : 0); use Test::Fatal qw(exception success); use Try::Tiny 0.07; @@ -31,6 +31,22 @@ pass("a success block runs, passing"); }; +{ + my $i = 0; + try { + die { foo => 42 }; + } catch { + 1; + } success { + fail("never get here"); + } finally { + $i++; + pass("finally block after success block"); + }; + + is($i, 1, "finally block after success block still runs"); +}; + # TODO: test for fatality of undef exception? { @@ -38,7 +54,7 @@ sub DESTROY { eval { my $x = 'o no'; } } } -if ($] <= 5.013001) { +if ($] < 5.013001) { like( exception { exception { my $blackguard = bless {}, 'BreakException'; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
