mocha 2.2.0 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a37edfad5feabba14a5fe1b5c1d9d7a7f367f412c73a464dc2d20404ad42fea0
4
- data.tar.gz: de9748735df4300f10a724b1eb6309f5262138ac3bc85bb0adbe6a9e64d09ec5
3
+ metadata.gz: d39bbef9363c1fb12001142111cd1e324a7c304100f456d0c723e9d839a15de4
4
+ data.tar.gz: 9a91ce33d3fcacd82f4f4461da86042f66e9c0e0efdba61fbaf588aaddb0ce91
5
5
  SHA512:
6
- metadata.gz: b2b4635c867e2670144fe93b7b9f2822429fb3f9df7ad7242fb5242832cd775c392eb624dc45706fd5c4d55802a921381ce801bf1ccc3050c9ef912eb9641d07
7
- data.tar.gz: 56a349f9e87ab72e3e1a34d006c02bfef4afdffdc22991c9b1cd450f65d644203fdbc73a7559990eca6dea7a25dbc3765364c02ad86560b5968f7cb75a72e3ec
6
+ metadata.gz: 0662556bb9f093c581bdea78f4484a0d8472dd63a7ee4589ebcdd4564628780e1cc68c32e9a4ae334d08ebe4bab75a9b9aeffe177a560e2e5424d9ff5349f4c7
7
+ data.tar.gz: ecabbed8691ddaea029cb0272705c1701c5b2815bfca4236baa559ea6f53eef3e8f650be861b81a43b3e9dff59edcca8a195ccaea7e2ef31f0990e8873753ed4
data/RELEASE.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Release Notes
2
2
 
3
+ ## 2.3.0
4
+
5
+ ### External changes
6
+
7
+ * Fix nested parameter matching for keyword arguments (f94e2504, #648) - thanks to @CodingAnarchy for reporting
8
+
3
9
  ## 2.2.0
4
10
 
5
11
  ### External changes
@@ -13,7 +13,8 @@ module Mocha
13
13
 
14
14
  def matches?(available_parameters)
15
15
  parameter, is_last_parameter = extract_parameter(available_parameters)
16
- return false unless parameter == @value
16
+
17
+ return false unless HasEntries.new(@value).matches?([parameter])
17
18
 
18
19
  if is_last_parameter && !same_type_of_hash?(parameter, @value)
19
20
  return false if Mocha.configuration.strict_keyword_argument_matching?
data/lib/mocha/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mocha
2
- VERSION = '2.2.0'.freeze
2
+ VERSION = '2.3.0'.freeze
3
3
  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: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Mead
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-10 00:00:00.000000000 Z
11
+ date: 2024-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby2_keywords