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: 8df83bcc8595050f2a3a625966e7d2e43b4c75cdc634dc95c8b67eb4b7358d93
4
- data.tar.gz: b09a1fc63348ec662c472353311c37036042093a40c6fe8f37561ab01fdbd11b
3
+ metadata.gz: 64862fa7aeff31038543176f65e51a7e54872db833afd6088509670f622a7001
4
+ data.tar.gz: dd20947a6c2e06ebf6e4141053241ef0fc42bbcc49a07dd7ede18961f107425f
5
5
  SHA512:
6
- metadata.gz: 60405d58990da42e85ea1853c6ff760ab2949f74fefe6af3b809e7b9e876102e9a63f59ec55c2319ed7d67cb5a0f1c9689a76c3e6404be283d0d3e7aeb95fbd1
7
- data.tar.gz: 73118d1f9c52a59e655753e0c5a96bb16143b15fe6333d67350379cc5566550cdc5365062d1ea4237364bc3b3ca4bad9201b90434a923403cd018aac6b60e421
6
+ metadata.gz: 473d51cd8704266332cdae9af9888343a08db864f8761758a367d5d70a096ccb67b29facbae67fd5544ee793270bb50a4a745500a089c04162b5ba4255ed2b25
7
+ data.tar.gz: 32e94ebf4a2c84a67b3fe1ea7fad869237fbdcb84ac6824360385ba3689b5db3476ae2c33382089c4f39e9cb786cfbe8f2917614790d6b561fca7418b791f527
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ <a name="v3.12.1"></a>
2
+ ### v3.12.1 (2023-10-19)
3
+
4
+ #### Bug Fixes
5
+
6
+ * use .read instead of .string for reading stream from rack.input ([000e3fd](/../../commit/000e3fd))
7
+
1
8
  <a name="v3.12.0"></a>
2
9
  ### v3.12.0 (2023-10-18)
3
10
 
@@ -23,7 +23,7 @@ module Pact
23
23
  end
24
24
 
25
25
  def respond env
26
- request_body = JSON.load(env['rack.input'].string)
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'].string
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)
@@ -1,5 +1,5 @@
1
1
  module Pact
2
2
  module MockService
3
- VERSION = "3.12.0"
3
+ VERSION = "3.12.1"
4
4
  end
5
5
  end
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.0
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-18 00:00:00.000000000 Z
15
+ date: 2023-10-19 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rack