pact-support 1.15.3 → 1.16.2

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: 77150437510b8051743d39e09cbcbabbcc26928bd9c2c9a2f4b188685827b944
4
- data.tar.gz: a47852ece83bfd36301ce8d4653b148336efe8b3b4c1273190fcfe37f09e8c68
3
+ metadata.gz: '08fdbf95ef7a621ff5ed92c8f7f3df4648cf1e7f71e0cb97cbe2a7fede2ec241'
4
+ data.tar.gz: 1a465b48953e7920ae8a8aacc068f718a64591564194abdad6276ba5fbb2d7b2
5
5
  SHA512:
6
- metadata.gz: 5368791e27bfba35b35f7ebc2f2a80885612279a25f21fdbc997c0f7ffbe0620021f83997567c666a3f89f19d3b27df427f776833db4998de5529274aed1a9c8
7
- data.tar.gz: 3418d9632455cc44dd54c979e2665fb024add6548904ff37552984952141b8041f74d46fdfdc81ce3e458900f2c49a0430838bb429e67e3cee8bf0f9afb10a78
6
+ metadata.gz: 275a49b60df2dac0a6359cfec90a14afd03eebba80d27c4e20b2998cf40f8fba4530dd7f07c15188455bd3ef4fa4070abeaad3f8a5f9f7fe788a245f00fe9bab
7
+ data.tar.gz: fe375660c6da415d00c0c132f9a50c3422a5b31e5157a9699a83474a08962c3efb608f875fb7fff9fc50610054213a37e954983b189f58d78399da1ee2473b3e
@@ -1,3 +1,39 @@
1
+ <a name="v1.16.2"></a>
2
+ ### v1.16.2 (2020-11-07)
3
+
4
+ #### Bug Fixes
5
+
6
+ * removed undefined depth from query ([53a373d](/../../commit/53a373d))
7
+
8
+ <a name="v1.16.1"></a>
9
+ ### v1.16.1 (2020-11-06)
10
+
11
+ #### Bug Fixes
12
+
13
+ * add missing params_hash_type? from Rack ([3195b0a](/../../commit/3195b0a))
14
+
15
+ <a name="v1.16.0"></a>
16
+ ### v1.16.0 (2020-11-04)
17
+
18
+ #### Features
19
+
20
+ * remove runtime dependency on rspec ([aca30e2](/../../commit/aca30e2))
21
+
22
+ <a name="v1.15.5"></a>
23
+ ### v1.15.5 (2020-11-04)
24
+
25
+ #### Bug Fixes
26
+
27
+ * add missing outputs to release workflow ([d565d0f](/../../commit/d565d0f))
28
+ * try different output syntax ([b11e8fb](/../../commit/b11e8fb))
29
+
30
+ <a name="v1.15.4"></a>
31
+ ### v1.15.4 (2020-11-04)
32
+
33
+ #### Bug Fixes
34
+
35
+ * update release gem action version ([9dead58](/../../commit/9dead58))
36
+
1
37
  <a name="v1.15.3"></a>
2
38
  ### v1.15.3 (2020-11-04)
3
39
 
@@ -99,12 +99,16 @@ module Pact
99
99
  else
100
100
  params[k] ||= {}
101
101
  raise ParameterTypeError, "expected Hash (got #{params[k].class.name}) for param `#{k}'" unless params_hash_type?(params[k])
102
- params[k] = normalize_params(params[k], after, v, depth - 1)
102
+ params[k] = normalize_params(params[k], after, v)
103
103
  end
104
104
 
105
105
  params
106
106
  end
107
107
 
108
+ def self.params_hash_type?(obj)
109
+ obj.is_a?(Hash)
110
+ end
111
+
108
112
  def self.unescape(s, encoding = Encoding::UTF_8)
109
113
  URI.decode_www_form_component(s, encoding)
110
114
  end
@@ -1,4 +1,3 @@
1
- require 'rspec'
2
1
  # This is horrible, must work out a better way of doing this
3
2
  module Pact
4
3
  module RSpec
@@ -19,7 +18,6 @@ module Pact
19
18
  require 'pact/provider/rspec/formatter_rspec_2'
20
19
  Pact::Provider::RSpec::Formatter2
21
20
  end
22
-
23
21
  end
24
22
 
25
23
  def self.full_description example
@@ -31,11 +29,11 @@ module Pact
31
29
  end
32
30
 
33
31
  def self.is_rspec_3
34
- ::RSpec::Core::Formatters.respond_to?(:register)
32
+ defined?(::RSpec) && ::RSpec::Core::Formatters.respond_to?(:register)
35
33
  end
36
34
 
37
35
  def self.is_rspec_2
38
- !is_rspec_3
36
+ defined?(::RSpec) && !is_rspec_3
39
37
  end
40
38
 
41
39
  def self.with_rspec_3
@@ -1,5 +1,5 @@
1
1
  module Pact
2
2
  module Support
3
- VERSION = "1.15.3"
3
+ VERSION = "1.16.2"
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.15.3
4
+ version: 1.16.2
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-04 00:00:00.000000000 Z
15
+ date: 2020-11-06 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: randexp
@@ -28,20 +28,6 @@ dependencies:
28
28
  - - "~>"
29
29
  - !ruby/object:Gem::Version
30
30
  version: 0.1.7
31
- - !ruby/object:Gem::Dependency
32
- name: rspec
33
- requirement: !ruby/object:Gem::Requirement
34
- requirements:
35
- - - ">="
36
- - !ruby/object:Gem::Version
37
- version: '2.14'
38
- type: :runtime
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- version: '2.14'
45
31
  - !ruby/object:Gem::Dependency
46
32
  name: term-ansicolor
47
33
  requirement: !ruby/object:Gem::Requirement
@@ -84,6 +70,26 @@ dependencies:
84
70
  - - "~>"
85
71
  - !ruby/object:Gem::Version
86
72
  version: '1.4'
73
+ - !ruby/object:Gem::Dependency
74
+ name: rspec
75
+ requirement: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: '2.14'
80
+ - - "<"
81
+ - !ruby/object:Gem::Version
82
+ version: '4.0'
83
+ type: :development
84
+ prerelease: false
85
+ version_requirements: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '2.14'
90
+ - - "<"
91
+ - !ruby/object:Gem::Version
92
+ version: '4.0'
87
93
  - !ruby/object:Gem::Dependency
88
94
  name: rake
89
95
  requirement: !ruby/object:Gem::Requirement