mocha 3.0.0.pre.rc.2 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 89867d8324e0ff09c1b10c13bb46ecbc68215098b8abd916d5be2ebe165d91fe
4
- data.tar.gz: 835f460adaa854163671e2a2222f68e8674edb1eb80d714f8e7e58ce26705391
3
+ metadata.gz: 46d45199cc8a186e47613514bcb563c823c1c7b4703029950871419a9eee7579
4
+ data.tar.gz: 0cc0dc31d17c0c88d305526b7efd248d79514d115945c64b0da745128a46199e
5
5
  SHA512:
6
- metadata.gz: 4ead2dc30052a85e96ad27728852ee61c120b40229c376508595a09eeee10c863fae71644c4abe917d2a2ae400690d67fd32774a2c4dc6d79fbacc443171d55a
7
- data.tar.gz: 3cc439692bc5163961fc2cd44aee804634fdb903d01b245e1101c99818f92cb760c51d3a0dd0a8927bc7c29ccf1c0c202bda4cbd70a058c1c21c1a5beb341edb
6
+ metadata.gz: e971d120e4eae10d6d5ca5cd4628635a8227df3c84b3667200b6e13e1008ae730e0c8ad331a0f5903b4404158e35a5dd64e1e6cca8311b70cd94eea7245d3ca3
7
+ data.tar.gz: 52f8b945fd5c433d3a1cec5d31c5c385357acf498992920ab7ee8249844ff36552600e31a3492f30f93d661e5ed7448343fbdfd9e39a3e6ccef4d2130700c403
data/README.md CHANGED
@@ -330,7 +330,7 @@ See this [list of contributors](https://github.com/freerange/mocha/graphs/contri
330
330
  ```bash
331
331
  $ MOCHA_GENERATE_DOCS=true bundle install
332
332
 
333
- $ MOCHA_GENERATE_DOCS=true rake generate_docs
333
+ $ MOCHA_GENERATE_DOCS=true rake docs
334
334
  ```
335
335
  * Commit documentation & push to GitHub
336
336
  * Sign in to rubygems.org and find API key - https://rubygems.org/profile/edit
data/RELEASE.md CHANGED
@@ -1,33 +1,12 @@
1
1
  # Release Notes
2
2
 
3
- ## 3.0.0-rc.2
3
+ ## 3.0.1
4
4
 
5
5
  ### External changes
6
6
 
7
- * Fix compatibility with Ruby 3.5 (#755) - thanks to @Earlopain
8
- * Add missing quotes to docs for `Mocha::ParameterMatchers::Methods#equivalent_uri` (#757) - thanks to @bensherman
9
- * Increment assertion count on never expected invocation (#763 & #764)
10
- * Remove deprecated `ParameterMatchers::Base` class; include `ParameterMatchers::BaseMethods` module instead (415ae768)
11
- * Remove deprecated `ParameterMatcher` methods now available in `ParameterMatcher::Methods` (8de49979)
12
- * Removed deprecated access to `ParameterMatcher` classes (6ea9e3f5)
13
-
14
- ### Internal changes
15
-
16
- * Remove workaround for JRuby jar-dependencies issue (#737)
17
- * Add benchmark to `Gemfile` to fix warning (#733 & #740) - thanks to @nitishr
18
- * Add documentation coverage check (#707, #743 & #745) - thanks to @nitishr
19
- * Fix `Lint/LiteralAsCondition` violation (#746) - thanks to @nitishr
20
- * Fix rdoc-related warning when running doc rake task (#741 & #747)
21
- * Fail fast in CI builds on any Ruby warnings (#729 & #741) - thanks to @nitishr
22
- * Add `ObjectMethods#stubba_respond_to?` and use instead of `Object#respond_to?` (#713, #742 & #750) - thanks to @nitishr
23
- * Rename `#stubbee` -> `#stubba_object` and `#mock_owner` -> `#stubbee` (#463 & #751) - thanks to @nitishr
24
- * Fix `enable-frozen-string-literal` in CI build (#752) - thanks to @nitishr
25
- * Various rubocop fixed (#754 & #756)
26
- * Fix `Layout/EmptyLinesAfterModuleInclusion` violations (3f683220)
27
- * Auto-correct `Style/RedundantParentheses` violations (0277a592)
28
- * Automatically retry failed CI builds (9bbdbc66)
7
+ * Fix Mocha/RSpec integration by reinstating argument default value for `Hooks#mocha_setup` (#768 & #769) - thanks to @mackuba for reporting.
29
8
 
30
- ## 3.0.0-rc.1
9
+ ## 3.0.0
31
10
 
32
11
  ### External changes
33
12
 
@@ -42,9 +21,14 @@
42
21
  * Improve `#mocha_inspect` for empty keyword argument `Hash` (#588 & #720) - thanks to @herwinw for reporting
43
22
  * Improve error if `Mockery.teardown` called before `Mockery.setup` (#611, #646 & #721) - thanks to @riniculous for reporting
44
23
  * Freeze string literals (#722)
45
- * Remove support for running tests with Minitest < v5 (#727)
46
24
  * Allow keyword arguments to match an expectation expecting *only* positional arguments (#593 & #732) - thanks to @seandilda
47
25
  for reporting
26
+ * Fix compatibility with Ruby 3.5 (#755) - thanks to @Earlopain
27
+ * Add missing quotes to docs for `Mocha::ParameterMatchers::Methods#equivalent_uri` (#757) - thanks to @bensherman
28
+ * Increment assertion count on never expected invocation (#763 & #764)
29
+ * Remove deprecated `ParameterMatchers::Base` class; include `ParameterMatchers::BaseMethods` module instead (415ae768)
30
+ * Remove deprecated `ParameterMatcher` methods now available in `ParameterMatcher::Methods` (8de49979)
31
+ * Removed deprecated access to `ParameterMatcher` classes (6ea9e3f5)
48
32
 
49
33
  ### Internal changes
50
34
 
@@ -63,6 +47,33 @@ for reporting
63
47
  * Remove duplicate `DefaultReceiverTest` (39d99954)
64
48
  * Improvements to keyword argument matching tests (#730)
65
49
  * Improvements to keyword argument matcher unit test (#731)
50
+ * Remove support for running tests with Minitest < v5 (#727)
51
+ * Remove workaround for JRuby jar-dependencies issue (#737)
52
+ * Add benchmark to `Gemfile` to fix warning (#733 & #740) - thanks to @nitishr
53
+ * Add documentation coverage check (#707, #743 & #745) - thanks to @nitishr
54
+ * Fix `Lint/LiteralAsCondition` violation (#746) - thanks to @nitishr
55
+ * Fix rdoc-related warning when running doc rake task (#741 & #747)
56
+ * Fail fast in CI builds on any Ruby warnings (#729 & #741) - thanks to @nitishr
57
+ * Add `ObjectMethods#stubba_respond_to?` and use instead of `Object#respond_to?` (#713, #742 & #750) - thanks to @nitishr
58
+ * Rename `#stubbee` -> `#stubba_object` and `#mock_owner` -> `#stubbee` (#463 & #751) - thanks to @nitishr
59
+ * Fix `enable-frozen-string-literal` in CI build (#752) - thanks to @nitishr
60
+ * Various rubocop fixed (#754 & #756)
61
+ * Fix `Layout/EmptyLinesAfterModuleInclusion` violations (3f683220)
62
+ * Auto-correct `Style/RedundantParentheses` violations (0277a592)
63
+ * Automatically retry failed CI builds (9bbdbc66)
64
+
65
+ ## 2.8.2
66
+
67
+ ### External changes
68
+
69
+ * Improve source location of deprecation warning for `ParameterMatchers` matcher classes (c5171488)
70
+
71
+ ## 2.8.1
72
+
73
+ ### External changes
74
+
75
+ * Restore unqualified access to `ParameterMatchers` matcher classes, but deprecate such access (5231a4f7)
76
+ * Restore unqualified access to `ParameterMatchers::BaseMethods`, but deprecate such access (8a898567)
66
77
 
67
78
  ## 2.8.0
68
79
 
data/lib/mocha/hooks.rb CHANGED
@@ -18,10 +18,15 @@ module Mocha
18
18
  # @see Mocha::ExpectationErrorFactory
19
19
  # @see Mocha::API
20
20
  module Hooks
21
+ # @private
22
+ class NullAssertionCounter
23
+ def increment; end
24
+ end
25
+
21
26
  # Prepares Mocha before a test (only for use by authors of test libraries).
22
27
  #
23
28
  # This method should be called before each individual test starts (including before any "setup" code).
24
- def mocha_setup(assertion_counter)
29
+ def mocha_setup(assertion_counter = NullAssertionCounter.new)
25
30
  Mockery.setup(assertion_counter)
26
31
  end
27
32
 
data/lib/mocha/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mocha
4
- VERSION = '3.0.0-rc.2'
4
+ VERSION = '3.0.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mocha
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.pre.rc.2
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Mead
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-11-11 00:00:00.000000000 Z
11
+ date: 2025-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby2_keywords