pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/ruby-flexmock
Module Name: pkgsrc
Committed By: taca
Date: Wed Sep 18 15:09:33 UTC 2024
Modified Files:
pkgsrc/devel/ruby-flexmock: Makefile distinfo
Log Message:
devel/ruby-flexmock: update to 3.0.1
3.0.0 (2024-07-18)
* Added keyword argument and explicit proc support. Keyword argument
support is Ruby 3.0+ only, getting the support to work on Ruby 2.7 deemed
to be too complicated. See the release notes for 2.4 below for
information about how migration can be done smoothly
* with now expects all expected keyword arguments to be explicitly given in
a natural way, for instance:
mock.should_receive(:m).with("some", "args", with: 42)
The values given to the arguments can be any matcher valid for the
positional arguments
* note that not giving any keyword arguments to with is interpreted as a
negative (no keyword arguments are expected), and will fail if some
arguments are given. Call with_any_kw_args after the with if you do not
desire validation of keyword arguments:
mock.should_receive(:m).with("some", "args").with_any_kw_args
* for more complex matches, pass a match object to the with_kw_args method.
For instance, to match only some keyword arguments, do
mock.should_receive(:m).with("some", "args").with_kw_args(hsh(with: 42))
* this release also makes matching procs explicit. Instead of passing Proc
at the end of with as in 2.x, call with_block or with_no_block. If
neither are called, flexmock won't validate either way (ignore whether or
not a block was given). The default is to not match blocks, that is
working
* The default is to assume that blocks are optional (i.e. flexmock will
match either way). Nonetheless, the method with_optional_block is
implemented to help migration from flexmock 2.4.0 (but is a no-op).
3.0.1 (2024-09-09)
* fix: handling of blocks in pass_thru (v3.0)
To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 pkgsrc/devel/ruby-flexmock/Makefile
cvs rdiff -u -r1.26 -r1.27 pkgsrc/devel/ruby-flexmock/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/ruby-flexmock/Makefile
diff -u pkgsrc/devel/ruby-flexmock/Makefile:1.25 pkgsrc/devel/ruby-flexmock/Makefile:1.26
--- pkgsrc/devel/ruby-flexmock/Makefile:1.25 Sat Aug 26 13:29:48 2023
+++ pkgsrc/devel/ruby-flexmock/Makefile Wed Sep 18 15:09:33 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.25 2023/08/26 13:29:48 taca Exp $
+# $NetBSD: Makefile,v 1.26 2024/09/18 15:09:33 taca Exp $
-DISTNAME= flexmock-2.3.8
+DISTNAME= flexmock-3.0.1
CATEGORIES= devel
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
Index: pkgsrc/devel/ruby-flexmock/distinfo
diff -u pkgsrc/devel/ruby-flexmock/distinfo:1.26 pkgsrc/devel/ruby-flexmock/distinfo:1.27
--- pkgsrc/devel/ruby-flexmock/distinfo:1.26 Sat Aug 26 13:29:48 2023
+++ pkgsrc/devel/ruby-flexmock/distinfo Wed Sep 18 15:09:33 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.26 2023/08/26 13:29:48 taca Exp $
+$NetBSD: distinfo,v 1.27 2024/09/18 15:09:33 taca Exp $
-BLAKE2s (flexmock-2.3.8.gem) = 568ca193a49b13ff0c2e3efc66abd79ee1ffaccc22f895a266a1b9c487a46e2b
-SHA512 (flexmock-2.3.8.gem) = 9fd9925ceb7e6a8389b88fe788119e0d79199d5d6dc3654d588dc9f108a4fdf6a19cc5cc6528c706124a3e89ad626b4b67afd588ea49ff27ca6bf1245efe4816
-Size (flexmock-2.3.8.gem) = 68096 bytes
+BLAKE2s (flexmock-3.0.1.gem) = 135a730fd3f1e40d560a69eaf209c010764a4004d47b7c136c77e77e67861bd2
+SHA512 (flexmock-3.0.1.gem) = 3cc339d553b60b827ef970054a6afbb45b607697b74dca5850031bbf7520de9251092fe09f49a8c7c34aa49441080e847ac6a63bfc8e6124f2d2f10a14ac5734
+Size (flexmock-3.0.1.gem) = 69632 bytes
Home |
Main Index |
Thread Index |
Old Index