Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package perl-Carp-Assert-More for
openSUSE:Factory checked in at 2021-08-24 10:54:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Carp-Assert-More (Old)
and /work/SRC/openSUSE:Factory/.perl-Carp-Assert-More.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Carp-Assert-More"
Tue Aug 24 10:54:43 2021 rev:12 rq:913791 version:2.0.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-Carp-Assert-More/perl-Carp-Assert-More.changes
2021-01-04 19:10:09.699437296 +0100
+++
/work/SRC/openSUSE:Factory/.perl-Carp-Assert-More.new.1899/perl-Carp-Assert-More.changes
2021-08-24 10:55:37.580261069 +0200
@@ -1,0 +2,37 @@
+Sat Aug 14 03:06:07 UTC 2021 - Tina M??ller <[email protected]>
+
+- updated to 2.0.1
+ see /usr/share/doc/packages/perl-Carp-Assert-More/Changes
+
+ 2.0.1 Fri Aug 13 11:57:15 CDT 2021
+ [FIXES]
+ assert_all_keys_in() mistakenly required a non-empty list of
+ keys to check.
+ [ENHANCEMENTS]
+ Sped up assert_isa_in(), assert_is().
+ 2.0.0 Thu Aug 12 23:00::00 CDT 2021
+ [DIFFERENCES]
+ Now requires Perl 5.10 or higher. No longer requires Carp::Assert.
+ The numeric functions are more stringent now. If it expects
+ a number, then you need to pass a number. For example,
+ assert_nonnegative($x) would pass if $x was a non-numeric
+ string. Now it must be numeric.
+ assert_empty() and assert_nonempty() no longer gives a message
+ of "Not an array or hash reference". If you don't pass an array
+ or hash reference, the assertion will just fail with the message
+ passe3d in.
+ assert_aoh() and assert_datetime() no longer provide a default
+ message.
+ assert_in() is more strict. Each element of the target array
+ is checked to not be a reference.
+ assert_exists() and assert_lacks() are more strict. The list
+ of keys to check cannot be empty.
+ [ENHANCEMENTS]
+ Most of the functions are about twice as fast because of reduced
+ number of function calls internally.
+ Added assert_context_nonvoid() and assert_context_scalar()
+ to assert on how the executing function has been called.
+ assert_in() now lets you use undef as both the needle and one
+ of the values in the haystack.
+
+-------------------------------------------------------------------
Old:
----
Carp-Assert-More-1.26.tar.gz
New:
----
Carp-Assert-More-2.0.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Carp-Assert-More.spec ++++++
--- /var/tmp/diff_new_pack.WSRVhD/_old 2021-08-24 10:55:37.968260555 +0200
+++ /var/tmp/diff_new_pack.WSRVhD/_new 2021-08-24 10:55:37.972260550 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-Carp-Assert-More
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,9 +18,9 @@
%define cpan_name Carp-Assert-More
Name: perl-Carp-Assert-More
-Version: 1.26
+Version: 2.0.1
Release: 0
-Summary: Convenience wrappers around Carp::Assert
+Summary: Convenience assertions for common situations
License: Artistic-2.0
URL: https://metacpan.org/release/%{cpan_name}
Source0:
https://cpan.metacpan.org/authors/id/P/PE/PETDANCE/%{cpan_name}-%{version}.tar.gz
@@ -28,27 +28,25 @@
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
-BuildRequires: perl(Carp::Assert)
BuildRequires: perl(Test::Exception)
-Requires: perl(Carp::Assert)
Requires: perl(Test::Exception)
%{perl_requires}
%description
-Carp::Assert::More is a set of wrappers around the Carp::Assert functions
-to make the habit of writing assertions even easier.
+Carp::Assert::More is a convenient set of assertions to make the habit of
+writing assertions even easier.
Everything in here is effectively syntactic sugar. There's no technical
-reason to use
+difference between calling one of these functions:
- assert_isa( $foo, 'HTML::Lint' );
+ assert_datetime( $foo );
+ assert_isa( $foo, 'DateTime' );
-instead of
+that are provided by Carp::Assert::More and calling these assertions from
+Carp::Assert
assert( defined $foo );
- assert( ref($foo) eq 'HTML::Lint' );
-
-other than readability and simplicity of the code.
+ assert( ref($foo) eq 'DateTime' );
My intent here is to make common assertions easy so that we as programmers
have no excuse to not use them.
++++++ Carp-Assert-More-1.26.tar.gz -> Carp-Assert-More-2.0.1.tar.gz ++++++
++++ 2275 lines of diff (skipped)