Hello community, here is the log from the commit of package perl-Try-Tiny for openSUSE:Factory checked in at 2014-02-12 07:07:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Try-Tiny (Old) and /work/SRC/openSUSE:Factory/.perl-Try-Tiny.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Try-Tiny" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Try-Tiny/perl-Try-Tiny.changes 2014-01-23 15:52:29.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Try-Tiny.new/perl-Try-Tiny.changes 2014-02-12 07:07:26.000000000 +0100 @@ -1,0 +2,8 @@ +Sun Feb 9 13:34:21 UTC 2014 - [email protected] + +- updated to 0.19 + - fix an obscure issue with loading modules during global destruction + (ilmari, #11) + - documentation updates (anaxagoras, #12) + +------------------------------------------------------------------- Old: ---- Try-Tiny-0.18.tar.gz New: ---- Try-Tiny-0.19.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Try-Tiny.spec ++++++ --- /var/tmp/diff_new_pack.f2D6tI/_old 2014-02-12 07:07:27.000000000 +0100 +++ /var/tmp/diff_new_pack.f2D6tI/_new 2014-02-12 07:07:27.000000000 +0100 @@ -17,21 +17,19 @@ Name: perl-Try-Tiny -Version: 0.18 +Version: 0.19 Release: 0 %define cpan_name Try-Tiny Summary: Minimal try/catch with proper preservation of $@ License: MIT Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Try-Tiny/ -Source: %{cpan_name}-%{version}.tar.gz +Source: http://www.cpan.org/authors/id/D/DO/DOY/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -#BuildRequires: perl(Benchmark::Dumb) -#BuildRequires: perl(Sub::Name) -#BuildRequires: perl(Try::Tiny) +BuildRequires: perl(Test::More) >= 0.88 %{perl_requires} %description ++++++ Try-Tiny-0.18.tar.gz -> Try-Tiny-0.19.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Try-Tiny-0.18/Changes new/Try-Tiny-0.19/Changes --- old/Try-Tiny-0.18/Changes 2013-08-17 20:33:18.000000000 +0200 +++ new/Try-Tiny-0.19/Changes 2014-01-23 02:52:39.000000000 +0100 @@ -1,5 +1,10 @@ Revision history for Try-Tiny +0.19 2014-01-22 + - fix an obscure issue with loading modules during global destruction + (ilmari, #11) + - documentation updates (anaxagoras, #12) + 0.18 2013-08-17 - fix tests for pre-Test-More-0.88 (Paul Howarth, #10) @@ -29,47 +34,47 @@ - warn loudly on exceptions in finally() blocks - dzilify -0.12 +0.12 2013-01-02 - doc fixes -0.11 +0.11 2011-08-30 - fix broken dist -0.10 +0.10 2011-04-27 - clarify some docs -0.09 +0.09 2010-11-28 - don't index Try::Tiny::ScopeGuard -0.08 +0.08 2010-11-28 - fix require vs use issue in blead (RT63410) -0.07 +0.07 2010-10-21 - allow multiple finally blocks - pass the error, if any, to finally blocks when called -0.06 +0.06 2010-05-27 - in t/given_when.t use a plan instead of done_testing for more backwards compatibility -0.05 +0.05 2010-05-26 - Documentation fixes and clarifications -0.04 +0.04 2010-01-22 - Restore list context propagation for catch blocks - Fix a bug where finally blocks weren't always invoked -0.03 +0.03 2010-01-22 - Support for 'finally' blocks (Andy Yates) - More documentation and tests (many people) - Sets $@ to the previous value at the beginning of the eval, to allow the capture of an error stack when calling die. -0.02 +0.02 2009-09-02 - Doc fixes from chromatic - Various minor fixes from Adam Kennedy - Additional documentation and code clarifications - 5.005_04 compatibility -0.01 +0.01 2009-08-31 - Initial release diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Try-Tiny-0.18/LICENSE new/Try-Tiny-0.19/LICENSE --- old/Try-Tiny-0.18/LICENSE 2013-08-17 20:33:18.000000000 +0200 +++ new/Try-Tiny-0.19/LICENSE 2014-01-23 02:52:39.000000000 +0100 @@ -1,4 +1,4 @@ -This software is Copyright (c) 2013 by Yuval Kogman. +This software is Copyright (c) 2014 by Yuval Kogman. This is free software, licensed under: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Try-Tiny-0.18/MANIFEST new/Try-Tiny-0.19/MANIFEST --- old/Try-Tiny-0.18/MANIFEST 2013-08-17 20:33:18.000000000 +0200 +++ new/Try-Tiny-0.19/MANIFEST 2014-01-23 02:52:39.000000000 +0100 @@ -1,3 +1,4 @@ +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.012. Changes LICENSE MANIFEST @@ -15,6 +16,8 @@ t/finally.t t/given_when.t t/global_destruction_forked.t +t/global_destruction_load.t +t/lib/TryUser.pm t/named.t t/when.t xt/release/eol.t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Try-Tiny-0.18/META.json new/Try-Tiny-0.19/META.json --- old/Try-Tiny-0.18/META.json 2013-08-17 20:33:18.000000000 +0200 +++ new/Try-Tiny-0.19/META.json 2014-01-23 02:52:39.000000000 +0100 @@ -5,7 +5,7 @@ "Jesse Luehrs <[email protected]>" ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 4.300034, CPAN::Meta::Converter version 2.120921", + "generated_by" : "Dist::Zilla version 5.012, CPAN::Meta::Converter version 2.120921", "license" : [ "mit" ], @@ -30,8 +30,7 @@ "runtime" : { "requires" : { "Carp" : "0", - "Exporter" : "0", - "base" : "0", + "Exporter" : "5.57", "constant" : "0", "perl" : "5.006", "strict" : "0", @@ -39,14 +38,24 @@ } }, "test" : { + "recommends" : { + "Capture::Tiny" : "0.12" + }, "requires" : { - "File::Find" : "0", - "File::Temp" : "0", - "Test::More" : "0", + "File::Spec" : "0", + "IO::Handle" : "0", + "IPC::Open3" : "0", + "Test::More" : "0.88", "if" : "0" } } }, + "provides" : { + "Try::Tiny" : { + "file" : "lib/Try/Tiny.pm", + "version" : "0.19" + } + }, "release_status" : "stable", "resources" : { "bugtracker" : { @@ -59,7 +68,7 @@ "web" : "https://github.com/doy/try-tiny" } }, - "version" : "0.18", + "version" : "0.19", "x_Dist_Zilla" : { "perl" : { "version" : "5.018001" @@ -68,32 +77,32 @@ { "class" : "Dist::Zilla::Plugin::GatherDir", "name" : "@DOY/GatherDir", - "version" : "4.300034" + "version" : "5.012" }, { "class" : "Dist::Zilla::Plugin::PruneCruft", "name" : "@DOY/PruneCruft", - "version" : "4.300034" + "version" : "5.012" }, { "class" : "Dist::Zilla::Plugin::ManifestSkip", "name" : "@DOY/ManifestSkip", - "version" : "4.300034" + "version" : "5.012" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", "name" : "@DOY/MetaYAML", - "version" : "4.300034" + "version" : "5.012" }, { "class" : "Dist::Zilla::Plugin::License", "name" : "@DOY/License", - "version" : "4.300034" + "version" : "5.012" }, { "class" : "Dist::Zilla::Plugin::Readme", "name" : "@DOY/Readme", - "version" : "4.300034" + "version" : "5.012" }, { "class" : "Dist::Zilla::Plugin::RunExtraTests", @@ -103,47 +112,47 @@ { "class" : "Dist::Zilla::Plugin::ExecDir", "name" : "@DOY/ExecDir", - "version" : "4.300034" + "version" : "5.012" }, { "class" : "Dist::Zilla::Plugin::ShareDir", "name" : "@DOY/ShareDir", - "version" : "4.300034" + "version" : "5.012" }, { "class" : "Dist::Zilla::Plugin::MakeMaker", "name" : "@DOY/MakeMaker", - "version" : "4.300034" + "version" : "5.012" }, { "class" : "Dist::Zilla::Plugin::Manifest", "name" : "@DOY/Manifest", - "version" : "4.300034" + "version" : "5.012" }, { "class" : "Dist::Zilla::Plugin::TestRelease", "name" : "@DOY/TestRelease", - "version" : "4.300034" + "version" : "5.012" }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", "name" : "@DOY/ConfirmRelease", - "version" : "4.300034" + "version" : "5.012" }, { "class" : "Dist::Zilla::Plugin::MetaConfig", "name" : "@DOY/MetaConfig", - "version" : "4.300034" + "version" : "5.012" }, { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "@DOY/MetaJSON", - "version" : "4.300034" + "version" : "5.012" }, { "class" : "Dist::Zilla::Plugin::NextRelease", "name" : "@DOY/NextRelease", - "version" : "4.300034" + "version" : "5.012" }, { "class" : "Dist::Zilla::Plugin::CheckChangesHasContent", @@ -153,7 +162,7 @@ { "class" : "Dist::Zilla::Plugin::PkgVersion", "name" : "@DOY/PkgVersion", - "version" : "4.300034" + "version" : "5.012" }, { "class" : "Dist::Zilla::Plugin::Authority", @@ -163,12 +172,12 @@ { "class" : "Dist::Zilla::Plugin::PodCoverageTests", "name" : "@DOY/PodCoverageTests", - "version" : "4.300034" + "version" : "5.012" }, { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "@DOY/PodSyntaxTests", - "version" : "4.300034" + "version" : "5.012" }, { "class" : "Dist::Zilla::Plugin::NoTabsTests", @@ -182,8 +191,18 @@ }, { "class" : "Dist::Zilla::Plugin::Test::Compile", + "config" : { + "Dist::Zilla::Plugin::Test::Compile" : { + "module_finder" : [ + ":InstallModules" + ], + "script_finder" : [ + ":ExecFiles" + ] + } + }, "name" : "@DOY/Test::Compile", - "version" : "2.002" + "version" : "2.021" }, { "class" : "Dist::Zilla::Plugin::Metadata", @@ -193,37 +212,47 @@ { "class" : "Dist::Zilla::Plugin::MetaResources", "name" : "@DOY/MetaResources", - "version" : "4.300034" + "version" : "5.012" }, { "class" : "Dist::Zilla::Plugin::Git::Check", "name" : "@DOY/Git::Check", - "version" : "2.013" + "version" : "2.014" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", "name" : "@DOY/Git::Commit", - "version" : "2.013" + "version" : "2.014" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", "name" : "@DOY/Git::Tag", - "version" : "2.013" + "version" : "2.014" }, { "class" : "Dist::Zilla::Plugin::Git::NextVersion", "name" : "@DOY/Git::NextVersion", - "version" : "2.013" + "version" : "2.014" + }, + { + "class" : "Dist::Zilla::Plugin::ContributorsFromGit", + "name" : "@DOY/ContributorsFromGit", + "version" : "0.006" + }, + { + "class" : "Dist::Zilla::Plugin::MetaProvides::Package", + "name" : "@DOY/MetaProvides::Package", + "version" : "1.14000003" }, { "class" : "Dist::Zilla::Plugin::PodWeaver", "name" : "@DOY/PodWeaver", - "version" : "3.101641" + "version" : "3.101642" }, { "class" : "Dist::Zilla::Plugin::UploadToCPAN", "name" : "@DOY/UploadToCPAN", - "version" : "4.300034" + "version" : "5.012" }, { "class" : "Dist::Zilla::Plugin::ContributorsFromGit", @@ -233,7 +262,7 @@ { "class" : "Dist::Zilla::Plugin::AutoPrereqs", "name" : "AutoPrereqs", - "version" : "4.300034" + "version" : "5.012" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -244,37 +273,58 @@ } }, "name" : "Prereqs", - "version" : "4.300034" + "version" : "5.012" + }, + { + "class" : "Dist::Zilla::Plugin::Prereqs", + "config" : { + "Dist::Zilla::Plugin::Prereqs" : { + "phase" : "test", + "type" : "recommends" + } + }, + "name" : "TestRecommends", + "version" : "5.012" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", - "version" : "4.300034" + "version" : "5.012" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":IncModules", - "version" : "4.300034" + "version" : "5.012" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", - "version" : "4.300034" + "version" : "5.012" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", - "version" : "4.300034" + "version" : "5.012" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", - "version" : "4.300034" + "version" : "5.012" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":MainModule", - "version" : "4.300034" + "version" : "5.012" + }, + { + "class" : "Dist::Zilla::Plugin::FinderCode", + "name" : ":AllFiles", + "version" : "5.012" + }, + { + "class" : "Dist::Zilla::Plugin::FinderCode", + "name" : ":NoFiles", + "version" : "5.012" } ], "zilla" : { @@ -282,13 +332,14 @@ "config" : { "is_trial" : "0" }, - "version" : "4.300034" + "version" : "5.012" } }, "x_authority" : "cpan:NUFFIN", "x_contributors" : [ "Alex <alex@koban.(none)>", "Andrew Yates <[email protected]>", + "Dagfinn Ilmari Manns\u00e5ker <[email protected]>", "Glenn Fowler <[email protected]>", "Graham Knop <[email protected]>", "Hans Dieter Pearcey <[email protected]>", @@ -300,6 +351,8 @@ "Paul Howarth <[email protected]>", "Peter Rabbitson <[email protected]>", "Ricardo Signes <[email protected]>", + "anaxagoras <[email protected]>", + "awalker <[email protected]>", "chromatic <[email protected]>" ] } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Try-Tiny-0.18/META.yml new/Try-Tiny-0.19/META.yml --- old/Try-Tiny-0.18/META.yml 2013-08-17 20:33:18.000000000 +0200 +++ new/Try-Tiny-0.19/META.yml 2014-01-23 02:52:39.000000000 +0100 @@ -4,23 +4,27 @@ - 'Yuval Kogman <[email protected]>' - 'Jesse Luehrs <[email protected]>' build_requires: - File::Find: 0 - File::Temp: 0 - Test::More: 0 + File::Spec: 0 + IO::Handle: 0 + IPC::Open3: 0 + Test::More: 0.88 if: 0 configure_requires: ExtUtils::MakeMaker: 6.30 dynamic_config: 0 -generated_by: 'Dist::Zilla version 4.300034, CPAN::Meta::Converter version 2.120921' +generated_by: 'Dist::Zilla version 5.012, CPAN::Meta::Converter version 2.120921' license: mit meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: 1.4 name: Try-Tiny +provides: + Try::Tiny: + file: lib/Try/Tiny.pm + version: 0.19 requires: Carp: 0 - Exporter: 0 - base: 0 + Exporter: 5.57 constant: 0 perl: 5.006 strict: 0 @@ -29,7 +33,7 @@ bugtracker: https://github.com/doy/try-tiny/issues homepage: http://metacpan.org/release/Try-Tiny repository: git://github.com/doy/try-tiny.git -version: 0.18 +version: 0.19 x_Dist_Zilla: perl: version: 5.018001 @@ -37,27 +41,27 @@ - class: Dist::Zilla::Plugin::GatherDir name: '@DOY/GatherDir' - version: 4.300034 + version: 5.012 - class: Dist::Zilla::Plugin::PruneCruft name: '@DOY/PruneCruft' - version: 4.300034 + version: 5.012 - class: Dist::Zilla::Plugin::ManifestSkip name: '@DOY/ManifestSkip' - version: 4.300034 + version: 5.012 - class: Dist::Zilla::Plugin::MetaYAML name: '@DOY/MetaYAML' - version: 4.300034 + version: 5.012 - class: Dist::Zilla::Plugin::License name: '@DOY/License' - version: 4.300034 + version: 5.012 - class: Dist::Zilla::Plugin::Readme name: '@DOY/Readme' - version: 4.300034 + version: 5.012 - class: Dist::Zilla::Plugin::RunExtraTests name: '@DOY/RunExtraTests' @@ -65,39 +69,39 @@ - class: Dist::Zilla::Plugin::ExecDir name: '@DOY/ExecDir' - version: 4.300034 + version: 5.012 - class: Dist::Zilla::Plugin::ShareDir name: '@DOY/ShareDir' - version: 4.300034 + version: 5.012 - class: Dist::Zilla::Plugin::MakeMaker name: '@DOY/MakeMaker' - version: 4.300034 + version: 5.012 - class: Dist::Zilla::Plugin::Manifest name: '@DOY/Manifest' - version: 4.300034 + version: 5.012 - class: Dist::Zilla::Plugin::TestRelease name: '@DOY/TestRelease' - version: 4.300034 + version: 5.012 - class: Dist::Zilla::Plugin::ConfirmRelease name: '@DOY/ConfirmRelease' - version: 4.300034 + version: 5.012 - class: Dist::Zilla::Plugin::MetaConfig name: '@DOY/MetaConfig' - version: 4.300034 + version: 5.012 - class: Dist::Zilla::Plugin::MetaJSON name: '@DOY/MetaJSON' - version: 4.300034 + version: 5.012 - class: Dist::Zilla::Plugin::NextRelease name: '@DOY/NextRelease' - version: 4.300034 + version: 5.012 - class: Dist::Zilla::Plugin::CheckChangesHasContent name: '@DOY/CheckChangesHasContent' @@ -105,7 +109,7 @@ - class: Dist::Zilla::Plugin::PkgVersion name: '@DOY/PkgVersion' - version: 4.300034 + version: 5.012 - class: Dist::Zilla::Plugin::Authority name: '@DOY/Authority' @@ -113,11 +117,11 @@ - class: Dist::Zilla::Plugin::PodCoverageTests name: '@DOY/PodCoverageTests' - version: 4.300034 + version: 5.012 - class: Dist::Zilla::Plugin::PodSyntaxTests name: '@DOY/PodSyntaxTests' - version: 4.300034 + version: 5.012 - class: Dist::Zilla::Plugin::NoTabsTests name: '@DOY/NoTabsTests' @@ -128,8 +132,14 @@ version: 0.02 - class: Dist::Zilla::Plugin::Test::Compile + config: + Dist::Zilla::Plugin::Test::Compile: + module_finder: + - ':InstallModules' + script_finder: + - ':ExecFiles' name: '@DOY/Test::Compile' - version: 2.002 + version: 2.021 - class: Dist::Zilla::Plugin::Metadata name: '@DOY/Metadata' @@ -137,31 +147,39 @@ - class: Dist::Zilla::Plugin::MetaResources name: '@DOY/MetaResources' - version: 4.300034 + version: 5.012 - class: Dist::Zilla::Plugin::Git::Check name: '@DOY/Git::Check' - version: 2.013 + version: 2.014 - class: Dist::Zilla::Plugin::Git::Commit name: '@DOY/Git::Commit' - version: 2.013 + version: 2.014 - class: Dist::Zilla::Plugin::Git::Tag name: '@DOY/Git::Tag' - version: 2.013 + version: 2.014 - class: Dist::Zilla::Plugin::Git::NextVersion name: '@DOY/Git::NextVersion' - version: 2.013 + version: 2.014 + - + class: Dist::Zilla::Plugin::ContributorsFromGit + name: '@DOY/ContributorsFromGit' + version: 0.006 + - + class: Dist::Zilla::Plugin::MetaProvides::Package + name: '@DOY/MetaProvides::Package' + version: 1.14000003 - class: Dist::Zilla::Plugin::PodWeaver name: '@DOY/PodWeaver' - version: 3.101641 + version: 3.101642 - class: Dist::Zilla::Plugin::UploadToCPAN name: '@DOY/UploadToCPAN' - version: 4.300034 + version: 5.012 - class: Dist::Zilla::Plugin::ContributorsFromGit name: ContributorsFromGit @@ -169,7 +187,7 @@ - class: Dist::Zilla::Plugin::AutoPrereqs name: AutoPrereqs - version: 4.300034 + version: 5.012 - class: Dist::Zilla::Plugin::Prereqs config: @@ -177,40 +195,57 @@ phase: runtime type: requires name: Prereqs - version: 4.300034 + version: 5.012 + - + class: Dist::Zilla::Plugin::Prereqs + config: + Dist::Zilla::Plugin::Prereqs: + phase: test + type: recommends + name: TestRecommends + version: 5.012 - class: Dist::Zilla::Plugin::FinderCode name: ':InstallModules' - version: 4.300034 + version: 5.012 - class: Dist::Zilla::Plugin::FinderCode name: ':IncModules' - version: 4.300034 + version: 5.012 - class: Dist::Zilla::Plugin::FinderCode name: ':TestFiles' - version: 4.300034 + version: 5.012 - class: Dist::Zilla::Plugin::FinderCode name: ':ExecFiles' - version: 4.300034 + version: 5.012 - class: Dist::Zilla::Plugin::FinderCode name: ':ShareFiles' - version: 4.300034 + version: 5.012 - class: Dist::Zilla::Plugin::FinderCode name: ':MainModule' - version: 4.300034 + version: 5.012 + - + class: Dist::Zilla::Plugin::FinderCode + name: ':AllFiles' + version: 5.012 + - + class: Dist::Zilla::Plugin::FinderCode + name: ':NoFiles' + version: 5.012 zilla: class: Dist::Zilla::Dist::Builder config: is_trial: 0 - version: 4.300034 + version: 5.012 x_authority: cpan:NUFFIN x_contributors: - 'Alex <alex@koban.(none)>' - 'Andrew Yates <[email protected]>' + - 'Dagfinn Ilmari Mannsåker <[email protected]>' - 'Glenn Fowler <[email protected]>' - 'Graham Knop <[email protected]>' - 'Hans Dieter Pearcey <[email protected]>' @@ -222,4 +257,6 @@ - 'Paul Howarth <[email protected]>' - 'Peter Rabbitson <[email protected]>' - 'Ricardo Signes <[email protected]>' + - 'anaxagoras <[email protected]>' + - 'awalker <[email protected]>' - 'chromatic <[email protected]>' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Try-Tiny-0.18/Makefile.PL new/Try-Tiny-0.19/Makefile.PL --- old/Try-Tiny-0.18/Makefile.PL 2013-08-17 20:33:18.000000000 +0200 +++ new/Try-Tiny-0.19/Makefile.PL 2014-01-23 02:52:39.000000000 +0100 @@ -1,4 +1,5 @@ +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.012. use strict; use warnings; @@ -21,49 +22,43 @@ "NAME" => "Try::Tiny", "PREREQ_PM" => { "Carp" => 0, - "Exporter" => 0, - "base" => 0, + "Exporter" => "5.57", "constant" => 0, "strict" => 0, "warnings" => 0 }, "TEST_REQUIRES" => { - "File::Find" => 0, - "File::Temp" => 0, - "Test::More" => 0, + "File::Spec" => 0, + "IO::Handle" => 0, + "IPC::Open3" => 0, + "Test::More" => "0.88", "if" => 0 }, - "VERSION" => "0.18", + "VERSION" => "0.19", "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}; - } - } -} +my %FallbackPrereqs = ( + "Carp" => 0, + "Exporter" => "5.57", + "File::Spec" => 0, + "IO::Handle" => 0, + "IPC::Open3" => 0, + "Test::More" => "0.88", + "constant" => 0, + "if" => 0, + "strict" => 0, + "warnings" => 0 +); -unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) { - my $br = delete $WriteMakefileArgs{BUILD_REQUIRES}; - my $pp = $WriteMakefileArgs{PREREQ_PM}; - for my $mod ( keys %$br ) { - if ( exists $pp->{$mod} ) { - $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod}; - } - else { - $pp->{$mod} = $br->{$mod}; - } - } + +unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) { + delete $WriteMakefileArgs{TEST_REQUIRES}; + delete $WriteMakefileArgs{BUILD_REQUIRES}; + $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs; } delete $WriteMakefileArgs{CONFIGURE_REQUIRES} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Try-Tiny-0.18/README new/Try-Tiny-0.19/README --- old/Try-Tiny-0.18/README 2013-08-17 20:33:18.000000000 +0200 +++ new/Try-Tiny-0.19/README 2014-01-23 02:52:39.000000000 +0100 @@ -1,14 +1,16 @@ This archive contains the distribution Try-Tiny, -version 0.18: +version 0.19: minimal try/catch with proper preservation of $@ -This software is Copyright (c) 2013 by Yuval Kogman. +This software is Copyright (c) 2014 by Yuval Kogman. This is free software, licensed under: The MIT (X11) License +This README file was generated by Dist::Zilla::Plugin::Readme v5.012. + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Try-Tiny-0.18/dist.ini new/Try-Tiny-0.19/dist.ini --- old/Try-Tiny-0.18/dist.ini 2013-08-17 20:33:18.000000000 +0200 +++ new/Try-Tiny-0.19/dist.ini 2014-01-23 02:52:39.000000000 +0100 @@ -5,7 +5,7 @@ copyright_holder = Yuval Kogman [@DOY] -:version = 0.12 +:version = 0.14 dist = Try-Tiny repository = github authority = cpan:NUFFIN @@ -22,6 +22,11 @@ skip = ^perl$ ; tests for optional Sub::Name stuff skip = ^Sub::Name$ +; tests optionally require Capture::Tiny +skip = ^Capture::Tiny$ [Prereqs] perl = 5.006 + +[Prereqs / TestRecommends] +Capture::Tiny = 0.12 ; capture_stderr diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Try-Tiny-0.18/lib/Try/Tiny.pm new/Try-Tiny-0.19/lib/Try/Tiny.pm --- old/Try-Tiny-0.18/lib/Try/Tiny.pm 2013-08-17 20:33:18.000000000 +0200 +++ new/Try-Tiny-0.19/lib/Try/Tiny.pm 2014-01-23 02:52:39.000000000 +0100 @@ -2,16 +2,14 @@ BEGIN { $Try::Tiny::AUTHORITY = 'cpan:NUFFIN'; } -{ - $Try::Tiny::VERSION = '0.18'; -} +$Try::Tiny::VERSION = '0.19'; use 5.006; # ABSTRACT: minimal try/catch with proper preservation of $@ use strict; use warnings; -use base 'Exporter'; +use Exporter 5.57 'import'; our @EXPORT = our @EXPORT_OK = qw(try catch finally); use Carp; @@ -182,7 +180,7 @@ =head1 VERSION -version 0.18 +version 0.19 =head1 SYNOPSIS @@ -514,6 +512,20 @@ say "This text WILL NEVER appear!"; } + # OR + sub parent_sub_with_catch { + my $success = try { + die; + 1; + } + catch { + # do something with $_ + return undef; #see note + }; + return unless $success; + + say "This text WILL NEVER appear!"; + } Note that if you have a C<catch> block, it must return C<undef> for this to work, since if a C<catch> block exists, its return value is returned in place of C<undef> @@ -647,7 +659,7 @@ =head1 COPYRIGHT AND LICENSE -This software is Copyright (c) 2013 by Yuval Kogman. +This software is Copyright (c) 2014 by Yuval Kogman. This is free software, licensed under: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Try-Tiny-0.18/t/00-compile.t new/Try-Tiny-0.19/t/00-compile.t --- old/Try-Tiny-0.18/t/00-compile.t 2013-08-17 20:33:18.000000000 +0200 +++ new/Try-Tiny-0.19/t/00-compile.t 2014-01-23 02:52:39.000000000 +0100 @@ -1,74 +1,48 @@ -#!perl - use strict; use warnings; -use Test::More; +# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.021 +use Test::More 0.88; -use File::Find; -use File::Temp qw{ tempdir }; -my @modules; -find( - sub { - return if $File::Find::name !~ /\.pm\z/; - my $found = $File::Find::name; - $found =~ s{^lib/}{}; - $found =~ s{[/\\]}{::}g; - $found =~ s/\.pm$//; - # nothing to skip - push @modules, $found; - }, - 'lib', +my @module_files = ( + 'Try/Tiny.pm' ); -sub _find_scripts { - my $dir = shift @_; +my @scripts = ( + +); - 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, - ); +# no fake home requested - return @found_scripts; +use IPC::Open3; +use IO::Handle; +use File::Spec; + +my @warnings; +for my $lib (@module_files) +{ + open my $stdout, '>', File::Spec->devnull or die $!; + open my $stdin, '<', File::Spec->devnull or die $!; + my $stderr = IO::Handle->new; + + my $pid = open3($stdin, $stdout, $stderr, qq{$^X -Mblib -e"require q[$lib]"}); + waitpid($pid, 0); + is($? >> 8, 0, "$lib loaded ok"); + + if (my @_warnings = <$stderr>) + { + warn @_warnings; + push @warnings, @_warnings; + } } -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 ); +is(scalar(@warnings), 0, 'no warnings found') if $ENV{AUTHOR_TESTING}; - 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" ); - } - } -} +done_testing; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Try-Tiny-0.18/t/global_destruction_load.t new/Try-Tiny-0.19/t/global_destruction_load.t --- old/Try-Tiny-0.18/t/global_destruction_load.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Try-Tiny-0.19/t/global_destruction_load.t 2014-01-23 02:52:39.000000000 +0100 @@ -0,0 +1,18 @@ +use strict; +use warnings; +use Test::More; + +BEGIN { + plan skip_all => 'Capture::Tiny required' + unless eval { require Capture::Tiny; 1 }; + plan tests => 3; + Capture::Tiny->import(qw(capture_stderr)); +} + +for my $func (qw(try catch finally)) { + is capture_stderr { + system $^X, qw(-It/lib -we), + qq{sub DESTROY { require TryUser; TryUser->test_$func }} . + q{our $o; $o = bless []}; + }, '', "$func gets installed when loading Try::Tiny during global destruction"; +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Try-Tiny-0.18/t/lib/TryUser.pm new/Try-Tiny-0.19/t/lib/TryUser.pm --- old/Try-Tiny-0.18/t/lib/TryUser.pm 1970-01-01 01:00:00.000000000 +0100 +++ new/Try-Tiny-0.19/t/lib/TryUser.pm 2014-01-23 02:52:39.000000000 +0100 @@ -0,0 +1,9 @@ +package TryUser; + +use Try::Tiny; + +sub test_try { try { } } +sub test_catch { try { } catch { } } +sub test_finally { try { } finally { } } + +1; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Try-Tiny-0.18/t/named.t new/Try-Tiny-0.19/t/named.t --- old/Try-Tiny-0.18/t/named.t 2013-08-17 20:33:18.000000000 +0200 +++ new/Try-Tiny-0.19/t/named.t 2014-01-23 02:52:39.000000000 +0100 @@ -8,10 +8,10 @@ BEGIN { plan skip_all => "Sub::Name required" unless eval { require Sub::Name; 1 }; - plan tests => 4; + plan tests => 3; } -BEGIN { use_ok 'Try::Tiny' } +use Try::Tiny; my $name; try { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Try-Tiny-0.18/xt/release/pod-coverage.t new/Try-Tiny-0.19/xt/release/pod-coverage.t --- old/Try-Tiny-0.18/xt/release/pod-coverage.t 2013-08-17 20:33:18.000000000 +0200 +++ new/Try-Tiny-0.19/xt/release/pod-coverage.t 2014-01-23 02:52:39.000000000 +0100 @@ -1,4 +1,5 @@ #!perl +# This file was automatically generated by Dist::Zilla::Plugin::PodCoverageTests. use Test::More; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Try-Tiny-0.18/xt/release/pod-syntax.t new/Try-Tiny-0.19/xt/release/pod-syntax.t --- old/Try-Tiny-0.18/xt/release/pod-syntax.t 2013-08-17 20:33:18.000000000 +0200 +++ new/Try-Tiny-0.19/xt/release/pod-syntax.t 2014-01-23 02:52:39.000000000 +0100 @@ -1,4 +1,5 @@ #!perl +# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. use Test::More; eval "use Test::Pod 1.41"; -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
