mocha 3.0.0 → 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 +4 -4
- data/README.md +1 -1
- data/RELEASE.md +12 -0
- data/lib/mocha/hooks.rb +6 -1
- data/lib/mocha/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 46d45199cc8a186e47613514bcb563c823c1c7b4703029950871419a9eee7579
|
|
4
|
+
data.tar.gz: 0cc0dc31d17c0c88d305526b7efd248d79514d115945c64b0da745128a46199e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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,5 +1,11 @@
|
|
|
1
1
|
# Release Notes
|
|
2
2
|
|
|
3
|
+
## 3.0.1
|
|
4
|
+
|
|
5
|
+
### External changes
|
|
6
|
+
|
|
7
|
+
* Fix Mocha/RSpec integration by reinstating argument default value for `Hooks#mocha_setup` (#768 & #769) - thanks to @mackuba for reporting.
|
|
8
|
+
|
|
3
9
|
## 3.0.0
|
|
4
10
|
|
|
5
11
|
### External changes
|
|
@@ -56,6 +62,12 @@ for reporting
|
|
|
56
62
|
* Auto-correct `Style/RedundantParentheses` violations (0277a592)
|
|
57
63
|
* Automatically retry failed CI builds (9bbdbc66)
|
|
58
64
|
|
|
65
|
+
## 2.8.2
|
|
66
|
+
|
|
67
|
+
### External changes
|
|
68
|
+
|
|
69
|
+
* Improve source location of deprecation warning for `ParameterMatchers` matcher classes (c5171488)
|
|
70
|
+
|
|
59
71
|
## 2.8.1
|
|
60
72
|
|
|
61
73
|
### External changes
|
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
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.
|
|
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-12-
|
|
11
|
+
date: 2025-12-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ruby2_keywords
|