Skip to content

Commit

Permalink
Bump version to 2.7.0 & prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
floehopper committed Dec 7, 2024
1 parent b2b1773 commit 8faedac
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Release Notes

## 2.7.0

### 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.6.1

### External changes
Expand Down
2 changes: 1 addition & 1 deletion lib/mocha/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Mocha
VERSION = '2.6.1'.freeze
VERSION = '2.7.0'.freeze
end

0 comments on commit 8faedac

Please sign in to comment.