Hello community,

here is the log from the commit of package perl-Try-Tiny for openSUSE:Factory 
checked in at 2015-12-16 17:42:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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-07-24 06:59:02.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.perl-Try-Tiny.new/perl-Try-Tiny.changes 
2015-12-16 17:42:47.000000000 +0100
@@ -1,0 +2,16 @@
+Fri Dec 11 10:21:11 UTC 2015 - [email protected]
+
+- updated to 0.24
+   see /usr/share/doc/packages/perl-Try-Tiny/Changes
+
+  0.24      2015-12-11 05:20:09Z
+    - fix prereq errors in 0.23
+  
+  0.23      2015-12-11 04:04:35Z
+    - fix syntax of example code (Rudolf Leermakers, PR#22)
+    - 'perl' removed from prerequisite recommendations, to avoid tripping up
+      CPAN clients (Graham Knop)
+    - Sub::Util is used preferentially to Sub::Name in most cases (Graham Knop,
+      PR#27)
+
+-------------------------------------------------------------------

Old:
----
  Try-Tiny-0.22.tar.gz

New:
----
  Try-Tiny-0.24.tar.gz
  cpanspec.yml

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-Try-Tiny.spec ++++++
--- /var/tmp/diff_new_pack.8P6wmo/_old  2015-12-16 17:42:48.000000000 +0100
+++ /var/tmp/diff_new_pack.8P6wmo/_new  2015-12-16 17:42:48.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Try-Tiny
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,44 +17,41 @@
 
 
 Name:           perl-Try-Tiny
-Version:        0.22
+Version:        0.24
 Release:        0
 %define cpan_name Try-Tiny
-Summary:        Minimal try/catch with proper preservation of $@
+Summary:        Minimal Try/Catch with Proper Preservation of $@
 License:        MIT
 Group:          Development/Libraries/Perl
 Url:            http://search.cpan.org/dist/Try-Tiny/
-Source:         
http://www.cpan.org/authors/id/D/DO/DOY/%{cpan_name}-%{version}.tar.gz
+Source0:        
http://www.cpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{version}.tar.gz
+Source1:        cpanspec.yml
 BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl
 BuildRequires:  perl-macros
-BuildRequires:  perl(Capture::Tiny)
-BuildRequires:  perl(Sub::Name)
-BuildRequires:  perl(Test::More) >= 0.88
 %{perl_requires}
 
 %description
 This module provides bare bones 'try'/'catch'/'finally' statements that are
 designed to minimize common mistakes with eval blocks, and NOTHING else.
 
-This is unlike the TryCatch manpage which provides a nice syntax and avoids
-adding another call stack layer, and supports calling 'return' from the
-'try' block to return from the parent subroutine. These extra features come
-at a cost of a few dependencies, namely the Devel::Declare manpage and the
-Scope::Upper manpage which are occasionally problematic, and the additional
-catch filtering uses the Moose manpage type constraints which may not be
-desirable either.
+This is unlike TryCatch which provides a nice syntax and avoids adding
+another call stack layer, and supports calling 'return' from the 'try'
+block to return from the parent subroutine. These extra features come at a
+cost of a few dependencies, namely Devel::Declare and Scope::Upper which
+are occasionally problematic, and the additional catch filtering uses Moose
+type constraints which may not be desirable either.
 
 The main focus of this module is to provide simple and reliable error
-handling for those having a hard time installing the TryCatch manpage, but
-who still want to write correct 'eval' blocks without 5 lines of
-boilerplate each time.
+handling for those having a hard time installing TryCatch, but who still
+want to write correct 'eval' blocks without 5 lines of boilerplate each
+time.
 
 It's designed to work as correctly as possible in light of the various
-pathological edge cases (see the /BACKGROUND manpage) and to be compatible
-with any style of error values (simple strings, references, objects,
-overloaded objects, etc).
+pathological edge cases (see BACKGROUND) and to be compatible with any
+style of error values (simple strings, references, objects, overloaded
+objects, etc).
 
 If the 'try' block dies, it returns the value of the last statement
 executed in the 'catch' block, if there is one. Otherwise, it returns
@@ -62,8 +59,8 @@
 examples all assign '"bar"' to '$x':
 
   my $x = try { die "foo" } catch { "bar" };
-  my $x = try { die "foo" } || { "bar" };
-  my $x = (try { die "foo" }) // { "bar" };
+  my $x = try { die "foo" } || "bar";
+  my $x = (try { die "foo" }) // "bar";
 
   my $x = eval { die "foo" } || "bar";
 
@@ -77,6 +74,13 @@
 which cannot be handled using local. You can add as many 'finally' blocks
 to a given 'try' block as you like.
 
+Note that adding a 'finally' block without a preceding 'catch' block
+suppresses any errors. This behaviour is consistent with using a standalone
+'eval', but it is not consistent with 'try'/'finally' patterns found in
+other programming languages, such as Java, Python, Javascript or C#. If you
+learnt the 'try'/'finally' pattern from one of these languages, watch out
+for this.
+
 %prep
 %setup -q -n %{cpan_name}-%{version}
 
@@ -94,6 +98,6 @@
 
 %files -f %{name}.files
 %defattr(-,root,root,755)
-%doc Changes LICENSE maint README
+%doc Changes CONTRIBUTING LICENCE README
 
 %changelog

++++++ Try-Tiny-0.22.tar.gz -> Try-Tiny-0.24.tar.gz ++++++
++++ 3903 lines of diff (skipped)

++++++ cpanspec.yml ++++++
---
#description_paragraphs: 3
#description: |-
#  override description from CPAN
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
#  - source1
#  - source2
#patches:
#  foo.patch: -p1
#  bar.patch:
#preamble: |-
# BuildRequires:  gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s,  *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL 
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module

Reply via email to