pact-support 1.18.1 → 1.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/pact/consumer_contract/request.rb +5 -3
- data/lib/pact/support/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b14c4782f4f8ac5c6a2695b3328b8605a51af770e463ac55a3df41843b976677
|
4
|
+
data.tar.gz: 683323b4a276240ecfe2dc7cb650b0b232008f5904f9f59df071b5fe5e2ee291
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80825eb6afa2d2684c54e1805aaa2b19c14200ff516d72654a48ab5ee5b0df11ede5fb6a4cdd0761687e52489936c6b61bcaa8ecfbbc0b271957f5b9f46ae3f0
|
7
|
+
data.tar.gz: cebfe89b260425ca88e91a3594a4d84037444a0f3f490b0042d9991543a0afbdce7ea19c1ef94f241e64dd7648f07877ec61e8984a493673b080aef4752b957f
|
data/CHANGELOG.md
CHANGED
@@ -6,7 +6,7 @@ module Pact
|
|
6
6
|
class Expected < Pact::Request::Base
|
7
7
|
|
8
8
|
DEFAULT_OPTIONS = {:allow_unexpected_keys => false}.freeze
|
9
|
-
attr_accessor :options
|
9
|
+
attr_accessor :options, :generators
|
10
10
|
|
11
11
|
def self.from_hash(hash)
|
12
12
|
sym_hash = symbolize_keys hash
|
@@ -16,11 +16,13 @@ module Pact
|
|
16
16
|
headers = sym_hash.fetch(:headers, key_not_found)
|
17
17
|
body = sym_hash.fetch(:body, key_not_found)
|
18
18
|
options = sym_hash.fetch(:options, {})
|
19
|
-
|
19
|
+
generators = sym_hash.fetch(:generators, {})
|
20
|
+
new(method, path, headers, body, query, options, generators)
|
20
21
|
end
|
21
22
|
|
22
|
-
def initialize(method, path, headers, body, query, options = {})
|
23
|
+
def initialize(method, path, headers, body, query, options = {}, generators = {})
|
23
24
|
super(method, path, headers, body, query)
|
25
|
+
@generators = generators
|
24
26
|
@options = options
|
25
27
|
end
|
26
28
|
|
data/lib/pact/support/version.rb
CHANGED
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.
|
4
|
+
version: 1.19.0
|
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: 2022-
|
15
|
+
date: 2022-11-14 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rainbow
|
@@ -319,7 +319,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
319
319
|
- !ruby/object:Gem::Version
|
320
320
|
version: '0'
|
321
321
|
requirements: []
|
322
|
-
rubygems_version: 3.3.
|
322
|
+
rubygems_version: 3.3.25
|
323
323
|
signing_key:
|
324
324
|
specification_version: 4
|
325
325
|
summary: Shared code for Pact gems
|