Skip to content

Commit

Permalink
devel/ruby-mocha: update to 2.7.0
Browse files Browse the repository at this point in the history
2.6.0 (2024-11-24)

External changes

* Expectation with never cardinality should display deprecation warning
  (#681) - thanks to @ducmtran for reporting and testing

WARNING: This release results in some incorrect deprecation warnings:

* The logic for displaying the deprecation warnings is fixed in v2.6.1
  (#686).

Internal changes

* Simplify backtrace related assertions (#680)
* Remove unused ExpectationList#match_but_out_of_order (f2fa9919)


2.6.1 (2024-11-28)

External changes

* Fix logic for displaying deprecation warning for expectation with never
  cardinality (#686) - thanks to @davidstosik for reporting

2.7.0 (2024-12-07)

External changes

* Fail fast if invocation matches never expectation (#679, #678, #490, #131
  & #44) - thanks to @ducmtran & @davidstosik for reporting

Internal changes

* Workaround for JRuby jar-dependencies issue (#690)
* Ruby v3.4 stacktrace uses single-quote vs backtick (#688 & #689) - thanks
  to Vít Ondruch

WARNING: This release fixes a very old bug

* The bug relates to the use of Expectation#never in combination with other
  expectations on the same method.

* Please ensure you fix the relevant deprecation warnings when running
  against v2.6.1 before upgrading to v2.7.0.

* Previously, the following test would have passed, but now it will fail
  with an unexpected invocation error on the foo.bar line.

	foo = mock('foo') foo.stubs(:bar) foo.expects(:bar).never foo.bar


2.7.1 (2024-12-09)

External changes

* Deprecate Configuration#stubbing_method_on_nil= (#694)
* Indicate when parameter matcher logic is defined by block passed to
  Expectation#with (#698, b30e4434)
* Improve documentation for Expectation#with, especially when it is passed a
  block (#698, #682, #606 & #681)
  • Loading branch information
taca committed Dec 9, 2024
1 parent d6e4fa5 commit 6214199
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions devel/ruby-mocha/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.41 2024/10/27 13:37:32 taca Exp $
# $NetBSD: Makefile,v 1.42 2024/12/09 13:53:10 taca Exp $

DISTNAME= mocha-2.5.0
DISTNAME= mocha-2.7.1
CATEGORIES= devel

MAINTAINER= [email protected]
Expand Down
8 changes: 4 additions & 4 deletions devel/ruby-mocha/distinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.43 2024/10/27 13:37:32 taca Exp $
$NetBSD: distinfo,v 1.44 2024/12/09 13:53:10 taca Exp $

BLAKE2s (mocha-2.5.0.gem) = c43276ab7b65919f183b1d28e49114d7e6ec06c75b778f37c8d87bde975993d6
SHA512 (mocha-2.5.0.gem) = 9f9ffa048fca3c3870fdf946c45f891c41043fd17e3f2250b56cb58fe08693b75489aac0f3170756df8a0473aa51a0fdcbab48bb19194933cb7b0a3a05786184
Size (mocha-2.5.0.gem) = 68096 bytes
BLAKE2s (mocha-2.7.1.gem) = 4fadb4aca1ad789cd25bd2f9082a94883e51cfa53293da907d8aa5cedcf89731
SHA512 (mocha-2.7.1.gem) = d60af903e47e9f402a1fff7b39baeda4bae0f6240d0ebfa5d0e28875e5c4dabd0f47ef8753502bab7ef4f8e3dfbabf3cb650b91521ceeefebc4b8f1427d01fa3
Size (mocha-2.7.1.gem) = 69632 bytes

0 comments on commit 6214199

Please sign in to comment.