pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/p5-Carp-Assert-More



Module Name:    pkgsrc
Committed By:   mef
Date:           Wed Dec 13 13:57:15 UTC 2023

Modified Files:
        pkgsrc/devel/p5-Carp-Assert-More: Makefile distinfo

Log Message:
(devel/p5-Carp-Assert-More) Updated 1.20 to 2.3.0

2.3.0   Tue May 30 21:52:20 CDT 2023
        [ENHANCEMENTS]
        Added assert_arrayref_of() to verify that all of the elements
        in an arrayref are of a given type. For example:

            my $users = get_users();
            assert_arrayref_of( $users, 'My::User' );

2.2.0   Sun Jan 29 20:23:59 CST 2023
        [ENHANCEMENTS]
        Added assert_cmp( $x, $op, $y [, $msg] ), analogous to cmp_ok in Test::More, so you can do
            assert_cmp( $n, '>', 10 );
        which will give better diagnostics than just
            assert( $n > 10 );
        Operators supported are: lt le gt ge == != > >= < <=

        assert_all_keys_in() now lists all key failures in the message, not just the first one.

        assert_keys_are() now lists all key failures in the message, not just the first one.

2.1.0   Mon Aug 15 19:54:27 CDT 2022
        [ENHANCEMENTS]
        Add diagnostic strings to the failures. For example:

            assert_nonblank( [ 'foo' ], 'This should be nonblank' );

        would fail with:

            Assertion (This should be nonblank) failed!

        but now fails with:

            Assertion (This should be nonblank) failed!
            Value is a reference to ARRAY.

        Similar changes have been made to:
        * assert_all_keys_in
        * assert_keys_are
        * assert_empty
        * assert_nonempty

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.

1.26    Sat Dec 26 00:26:23 CST 2020
        [ENHANCEMENTS]
        Add assert_arrayref_nonempty().

        Add assert_hashref_nonempty().

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.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 pkgsrc/devel/p5-Carp-Assert-More/Makefile
cvs rdiff -u -r1.7 -r1.8 pkgsrc/devel/p5-Carp-Assert-More/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/p5-Carp-Assert-More/Makefile
diff -u pkgsrc/devel/p5-Carp-Assert-More/Makefile:1.24 pkgsrc/devel/p5-Carp-Assert-More/Makefile:1.25
--- pkgsrc/devel/p5-Carp-Assert-More/Makefile:1.24      Thu Jul  6 09:38:43 2023
+++ pkgsrc/devel/p5-Carp-Assert-More/Makefile   Wed Dec 13 13:57:15 2023
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.24 2023/07/06 09:38:43 wiz Exp $
+# $NetBSD: Makefile,v 1.25 2023/12/13 13:57:15 mef Exp $
 
-DISTNAME=      Carp-Assert-More-1.20
+DISTNAME=      Carp-Assert-More-2.3.0
 PKGNAME=       p5-${DISTNAME}
-PKGREVISION=   4
 CATEGORIES=    devel perl5
 MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=Carp/}
 

Index: pkgsrc/devel/p5-Carp-Assert-More/distinfo
diff -u pkgsrc/devel/p5-Carp-Assert-More/distinfo:1.7 pkgsrc/devel/p5-Carp-Assert-More/distinfo:1.8
--- pkgsrc/devel/p5-Carp-Assert-More/distinfo:1.7       Tue Oct 26 10:16:09 2021
+++ pkgsrc/devel/p5-Carp-Assert-More/distinfo   Wed Dec 13 13:57:15 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.7 2021/10/26 10:16:09 nia Exp $
+$NetBSD: distinfo,v 1.8 2023/12/13 13:57:15 mef Exp $
 
-BLAKE2s (Carp-Assert-More-1.20.tar.gz) = 67a70b128aa076f2c1b6453b5232a0baf432bdda9994f1972b3bf6aa40c6ebf0
-SHA512 (Carp-Assert-More-1.20.tar.gz) = 9caacf2cc4acb190b071a7312e5e1cdee5a0b7a0e9db0efc6dca0fa19167524a3bd6beecc4bb8e68eace719fc1d918063e9d259a24cb28e81dd628ea75ba541b
-Size (Carp-Assert-More-1.20.tar.gz) = 13282 bytes
+BLAKE2s (Carp-Assert-More-2.3.0.tar.gz) = 9ea7fe924ab7bc84da6db6f29170026e242b94137c8806495458da35e9abdc1c
+SHA512 (Carp-Assert-More-2.3.0.tar.gz) = ba0da716230e17d6711698c5909a096df992aacaf64e5dd9ea12795ecb4c86e66e71d6967bd0fdbfb20f202e5fd0e582befb3145f52f89af09a681263046354d
+Size (Carp-Assert-More-2.3.0.tar.gz) = 21086 bytes



Home | Main Index | Thread Index | Old Index