Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

perl-Carp-Assert-More-2.0.1-bp154.1.21 RPM for noarch

From OpenSuSE Leap 15.4 for noarch

Name: perl-Carp-Assert-More Distribution: SUSE Linux Enterprise 15 SP4
Version: 2.0.1 Vendor: openSUSE
Release: bp154.1.21 Build date: Mon May 9 11:08:08 2022
Group: Unspecified Build host: hci-cnode1-m0
Size: 46047 Source RPM: perl-Carp-Assert-More-2.0.1-bp154.1.21.src.rpm
Packager: https://bugs.opensuse.org
Url: https://metacpan.org/release/Carp-Assert-More
Summary: Convenience assertions for common situations
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
difference between calling one of these functions:

    assert_datetime( $foo );
    assert_isa( $foo, 'DateTime' );

that are provided by Carp::Assert::More and calling these assertions from
Carp::Assert

    assert( defined $foo );
    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.

Provides

Requires

License

Artistic-2.0

Changelog

* Sat Aug 14 2021 Tina Müller <timueller+perl@suse.de>
  - 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.
* Sun Dec 27 2020 Tina Müller <timueller+perl@suse.de>
  - updated to 1.26
    see /usr/share/doc/packages/perl-Carp-Assert-More/Changes
    1.26    Sat Dec 26 00:26:23 CST 2020
      [ENHANCEMENTS]
      Add assert_arrayref_nonempty().
      Add assert_hashref_nonempty().
* Thu Oct 08 2020 Tina Müller <timueller+perl@suse.de>
  - updated to 1.24
    see /usr/share/doc/packages/perl-Carp-Assert-More/Changes
    1.24    Tue Oct  6 22:37:06 CDT 2020
      [ENHANCEMENTS]
      The requirement for Perl 5.10 has been reverted to 5.6.1.
    1.22    Tue Oct  6 22:03:55 CDT 2020
      [ENHANCEMENTS]
      Add assert_keys_are() for asserting an exact list of keys.
* Sat Aug 10 2019 Stephan Kulow <coolo@suse.com>
  - updated to 1.20
    see /usr/share/doc/packages/perl-Carp-Assert-More/Changes
    1.20    Fri Aug  9 10:10:06 CDT 2019
      [ENHANCEMENTS]
      Add assert_datetime() for asserting DateTime objects.
* Sun Jul 21 2019 Stephan Kulow <coolo@suse.com>
  - updated to 1.18
    see /usr/share/doc/packages/perl-Carp-Assert-More/Changes
    1.18    Fri Jul 19 17:12:32 CDT 2019
      [ENHANCEMENTS]
      Added assert_aoh() for asserting an array of hashrefs.
* Sat Aug 05 2017 coolo@suse.com
  - updated to 1.16
    see /usr/share/doc/packages/perl-Carp-Assert-More/Changes
    1.16    Fri Aug  4 14:18:51 CDT 2017
      [ENHANCEMENTS]
      Added the following functions:
    * assert_numeric( $n )
    * assert_all_keys_in( \%hash, \@keylist )
    * assert_empty( [\%hash|\@list] )
    * assert_coderef( $ref )
    * assert_isa_in( $ref, \@class_list )
      Thanks to Eric A. Zarko for some of them.  The rest were migrated
      from a private code project.
      Renamed assert_listref() to assert_arrayref(), but keep
      assert_listref() as backward compatibility.  assert_listref()
      may go away in the future.
      [DOCUMENTATION]
      Fixed a goof in the assert_integer() docs.  Thanks, Randy Lauen.
* Mon Jun 03 2013 coolo@suse.com
  - updated to 1.14
      [ENHANCEMENTS]
      Added assert_undefined() for Ben Hengst.
      Added assert_unlike().
      [FIXES]
      assert_nonblank() wasn't using the correct message.  Thanks to
      Leland Johnson.
      assert_nonempty() wouldn't work on blessed arrays and refs.
      Now it will.
* Mon Jan 17 2011 coolo@novell.com
  - initial package 1.12
    * created by cpanspec 1.78.03

Files

/usr/lib/perl5/vendor_perl/5.26.1/Carp
/usr/lib/perl5/vendor_perl/5.26.1/Carp/Assert
/usr/lib/perl5/vendor_perl/5.26.1/Carp/Assert/More.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-Carp-Assert-More
/usr/share/doc/packages/perl-Carp-Assert-More/Changes
/usr/share/doc/packages/perl-Carp-Assert-More/README.md
/usr/share/man/man3/Carp::Assert::More.3pm.gz


Generated by rpm2html 1.8.1

Fabrice Bellet, Tue Apr 9 17:06:41 2024