pact-mock_service 3.1.1 → 3.2.0
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: 97f93ae9f53a6939bd199b436a1353f5df26430a644a60c394b1e745aa079198
|
4
|
+
data.tar.gz: 11f74b6d092c1a3a0f9f3c126f4e9b836730ad33cadf2a17f25eb9bf37e2e2aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87d929daa49d8fa549d0645ce28cdad8cf7a5d2b6fd922cbc1390b5c36097d6755caee5483c50040c63ab34ce435d3cc699112e06f6d6d7045857d7c8539c37c
|
7
|
+
data.tar.gz: f23ad25e5d9c8b9e88d58d14bb4996379e6c71c43df5e6b592dd4d0e503c34f541bc0c5b258fb1e48a15f3f18134afc61508ee0a3297e24fc4d65141832cb962
|
data/CHANGELOG.md
CHANGED
@@ -32,11 +32,11 @@ module Pact
|
|
32
32
|
|
33
33
|
def sorted_interactions
|
34
34
|
# Default order: chronological
|
35
|
-
return consumer_contract.
|
35
|
+
return consumer_contract.writable_interactions if Pact.configuration.pactfile_write_order == :chronological
|
36
36
|
# We are supporting only chronological or alphabetical order
|
37
37
|
raise NotImplementedError if Pact.configuration.pactfile_write_order != :alphabetical
|
38
38
|
|
39
|
-
consumer_contract.
|
39
|
+
consumer_contract.writable_interactions.sort{|a, b| sortable_id(a) <=> sortable_id(b)}
|
40
40
|
end
|
41
41
|
|
42
42
|
def sortable_id interaction
|
@@ -17,6 +17,7 @@ module Pact
|
|
17
17
|
hash[:providerState] = interaction.provider_state if interaction.provider_state
|
18
18
|
hash[:request] = decorate_request.as_json(options)
|
19
19
|
hash[:response] = decorate_response.as_json(options)
|
20
|
+
hash[:metadata] = interaction.metadata
|
20
21
|
fix_all_the_things hash
|
21
22
|
end
|
22
23
|
|
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.
|
4
|
+
version: 3.2.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: 2019-
|
15
|
+
date: 2019-10-15 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rack
|
@@ -118,20 +118,20 @@ dependencies:
|
|
118
118
|
requirements:
|
119
119
|
- - "~>"
|
120
120
|
- !ruby/object:Gem::Version
|
121
|
-
version: '1.
|
121
|
+
version: '1.12'
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 1.
|
124
|
+
version: 1.12.0
|
125
125
|
type: :runtime
|
126
126
|
prerelease: false
|
127
127
|
version_requirements: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '1.
|
131
|
+
version: '1.12'
|
132
132
|
- - ">="
|
133
133
|
- !ruby/object:Gem::Version
|
134
|
-
version: 1.
|
134
|
+
version: 1.12.0
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
136
|
name: filelock
|
137
137
|
requirement: !ruby/object:Gem::Requirement
|
@@ -399,7 +399,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
399
399
|
- !ruby/object:Gem::Version
|
400
400
|
version: '0'
|
401
401
|
requirements: []
|
402
|
-
|
402
|
+
rubyforge_project:
|
403
|
+
rubygems_version: 2.7.7
|
403
404
|
signing_key:
|
404
405
|
specification_version: 4
|
405
406
|
summary: Provides a mock service for use with Pact
|