pact-support 1.16.2 → 1.16.3

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: '08fdbf95ef7a621ff5ed92c8f7f3df4648cf1e7f71e0cb97cbe2a7fede2ec241'
4
- data.tar.gz: 1a465b48953e7920ae8a8aacc068f718a64591564194abdad6276ba5fbb2d7b2
3
+ metadata.gz: 21b34941c3f361a8b7de218ebbbcd6327da07bdbc751a44a05fec1a3b9c1c54b
4
+ data.tar.gz: 7b0fa37d00fcafe3850b22ce19657e1cbef146d3d9ee77d1cc92503376409289
5
5
  SHA512:
6
- metadata.gz: 275a49b60df2dac0a6359cfec90a14afd03eebba80d27c4e20b2998cf40f8fba4530dd7f07c15188455bd3ef4fa4070abeaad3f8a5f9f7fe788a245f00fe9bab
7
- data.tar.gz: fe375660c6da415d00c0c132f9a50c3422a5b31e5157a9699a83474a08962c3efb608f875fb7fff9fc50610054213a37e954983b189f58d78399da1ee2473b3e
6
+ metadata.gz: aa6230402d114538c81e6d1a90bed0267f86a21a18e9bda1cd75545a8853e9bebce1b1babb965e2eb07a50cb863f9c2567720f31efd884e3aeca8d74cd442094
7
+ data.tar.gz: 7b35d7033cba46c342f0eba471e5bbb3409875a9715fed8e4033903e1332d601d449d505b9d0ebd9ae789607abcdf8398cae4df65b9834542407c29c83b451ff
@@ -1,3 +1,10 @@
1
+ <a name="v1.16.3"></a>
2
+ ### v1.16.3 (2020-11-10)
3
+
4
+ #### Bug Fixes
5
+
6
+ * add missing params_hash_has_key ([700efa7](/../../commit/700efa7))
7
+
1
8
  <a name="v1.16.2"></a>
2
9
  ### v1.16.2 (2020-11-07)
3
10
 
@@ -109,6 +109,18 @@ module Pact
109
109
  obj.is_a?(Hash)
110
110
  end
111
111
 
112
+ def self.params_hash_has_key?(hash, key)
113
+ return false if /\[\]/.match?(key)
114
+
115
+ key.split(/[\[\]]+/).inject(hash) do |h, part|
116
+ next h if part == ''
117
+ return false unless params_hash_type?(h) && h.key?(part)
118
+ h[part]
119
+ end
120
+
121
+ true
122
+ end
123
+
112
124
  def self.unescape(s, encoding = Encoding::UTF_8)
113
125
  URI.decode_www_form_component(s, encoding)
114
126
  end
@@ -1,5 +1,5 @@
1
1
  module Pact
2
2
  module Support
3
- VERSION = "1.16.2"
3
+ VERSION = "1.16.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pact-support
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.2
4
+ version: 1.16.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Fraser
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2020-11-06 00:00:00.000000000 Z
15
+ date: 2020-11-10 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: randexp