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: 1b32e0f72993161fa8918122714f8509ea1288feb4eca77bad6e2d25da3f9a21
4
- data.tar.gz: 598f084d3460c7bf7cdb93093dee8d856d259edd279ca4256629d194ff770fa8
3
+ metadata.gz: 97f93ae9f53a6939bd199b436a1353f5df26430a644a60c394b1e745aa079198
4
+ data.tar.gz: 11f74b6d092c1a3a0f9f3c126f4e9b836730ad33cadf2a17f25eb9bf37e2e2aa
5
5
  SHA512:
6
- metadata.gz: 6dd93bedc44439f13f9aa3c0e124af5811c3f19d4301a50b4023ab88dfd0835805af855942e8185b37e1b710a8470247efaafe30ed81f6edef819b5e07887ccb
7
- data.tar.gz: d88cd7285fd3978c07098b1383251e88c4c23c3c6db71f6ffd10ac4ae23c3ade9eb2eb5aa211d596ec66dde5d7384fb34a5016be0e214375d9da897bcf02b481
6
+ metadata.gz: 87d929daa49d8fa549d0645ce28cdad8cf7a5d2b6fd922cbc1390b5c36097d6755caee5483c50040c63ab34ce435d3cc699112e06f6d6d7045857d7c8539c37c
7
+ data.tar.gz: f23ad25e5d9c8b9e88d58d14bb4996379e6c71c43df5e6b592dd4d0e503c34f541bc0c5b258fb1e48a15f3f18134afc61508ee0a3297e24fc4d65141832cb962
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ <a name="v3.2.0"></a>
2
+ ### v3.2.0 (2019-09-19)
3
+
4
+
5
+ #### Features
6
+
7
+ * **skip writing to pact**
8
+ * Use writable_interactions when writing to pact file ([44ea0c3](/../../commit/44ea0c3))
9
+
10
+
1
11
  <a name="v3.1.0"></a>
2
12
  ### v3.1.0 (2019-05-01)
3
13
 
@@ -32,11 +32,11 @@ module Pact
32
32
 
33
33
  def sorted_interactions
34
34
  # Default order: chronological
35
- return consumer_contract.interactions if Pact.configuration.pactfile_write_order == :chronological
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.interactions.sort{|a, b| sortable_id(a) <=> sortable_id(b)}
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
 
@@ -1,5 +1,5 @@
1
1
  module Pact
2
2
  module MockService
3
- VERSION = "3.1.1"
3
+ VERSION = "3.2.0"
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.1.1
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-05-30 00:00:00.000000000 Z
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.2'
121
+ version: '1.12'
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: 1.2.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.2'
131
+ version: '1.12'
132
132
  - - ">="
133
133
  - !ruby/object:Gem::Version
134
- version: 1.2.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
- rubygems_version: 3.0.3
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