pact-mock_service 3.12.0 → 3.12.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64862fa7aeff31038543176f65e51a7e54872db833afd6088509670f622a7001
|
4
|
+
data.tar.gz: dd20947a6c2e06ebf6e4141053241ef0fc42bbcc49a07dd7ede18961f107425f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 473d51cd8704266332cdae9af9888343a08db864f8761758a367d5d70a096ccb67b29facbae67fd5544ee793270bb50a4a745500a089c04162b5ba4255ed2b25
|
7
|
+
data.tar.gz: 32e94ebf4a2c84a67b3fe1ea7fad869237fbdcb84ac6824360385ba3689b5db3476ae2c33382089c4f39e9cb786cfbe8f2917614790d6b561fca7418b791f527
|
data/CHANGELOG.md
CHANGED
@@ -23,7 +23,7 @@ module Pact
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def respond env
|
26
|
-
request_body = JSON.load(env['rack.input'].
|
26
|
+
request_body = JSON.load(env['rack.input'].read)
|
27
27
|
parsing_options = { pact_specification_version: pact_specification_version }
|
28
28
|
interactions = request_body['interactions'].collect { | hash | Interaction.from_hash(hash, parsing_options) }
|
29
29
|
begin
|
@@ -25,7 +25,7 @@ module Pact
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def respond env
|
28
|
-
body = env['rack.input'].
|
28
|
+
body = env['rack.input'].read
|
29
29
|
consumer_contract_details = body.size > 0 ? JSON.parse(body, symbolize_names: true) : {}
|
30
30
|
consumer_contract_params = default_options.merge(consumer_contract_details.merge(interactions: verified_interactions))
|
31
31
|
consumer_contract_writer = ConsumerContractWriter.new(consumer_contract_params, logger)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pact-mock_service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.12.
|
4
|
+
version: 3.12.1
|
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: 2023-10-
|
15
|
+
date: 2023-10-19 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rack
|