pact 1.9.6 → 1.10.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 +3 -0
- data/lib/pact/consumer/consumer_contract_builder.rb +3 -1
- data/lib/pact/version.rb +1 -1
- data/pact.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9378cd5f3e2ab7ab08e17c560a84552ffacfcc03
|
4
|
+
data.tar.gz: 1b71020e0ccd0bfed0d0a441011d94c6b606dbd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c2cf217850f8f2f352a46721f568a2f0cca9fe87df3a4730eaeecace556dd9cdbf7a65233cf5cf00caabace898d77f9f86ac73129393cc71c18809349c5f4fc
|
7
|
+
data.tar.gz: edddf39dd4748d0e07a235737289bbccd040c8f16c5a5d3f5a441583fb651b3c20e9521fbb91e15b5d0111e0dd2e7d3d3d9a4da02497551c237972f27c5f9878
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,9 @@ Do this to generate your change history
|
|
2
2
|
|
3
3
|
git log --pretty=format:' * %h - %s (%an, %ad)' vX.Y.Z..HEAD
|
4
4
|
|
5
|
+
## 1.10.0 (14 Nov 2016)
|
6
|
+
* 1e8c0bc - Updating pact-support and pact-mock_service versions (Beth Skurrie, Mon Nov 14 10:16:38 2016 +1100)
|
7
|
+
|
5
8
|
## 1.9.6 (12 Nov 2016)
|
6
9
|
* 63d4b81 - Fix bug in default interactions replay order (Yury Tsarev, Sat Nov 12 17:53:14 2016 +1100)
|
7
10
|
|
@@ -51,7 +51,9 @@ module Pact
|
|
51
51
|
mock_service_client.wait_for_interactions wait_max_seconds, poll_interval
|
52
52
|
end
|
53
53
|
|
54
|
+
# @raise Pact::InvalidInteractionError
|
54
55
|
def handle_interaction_fully_defined interaction
|
56
|
+
interaction.validate!
|
55
57
|
mock_service_client.add_expected_interaction interaction #TODO: What will happen if duplicate added?
|
56
58
|
self.interaction_builder = nil
|
57
59
|
end
|
@@ -65,7 +67,7 @@ module Pact
|
|
65
67
|
@interaction_builder ||=
|
66
68
|
begin
|
67
69
|
interaction_builder = InteractionBuilder.new do | interaction |
|
68
|
-
|
70
|
+
handle_interaction_fully_defined(interaction)
|
69
71
|
end
|
70
72
|
interaction_builder
|
71
73
|
end
|
data/lib/pact/version.rb
CHANGED
data/pact.gemspec
CHANGED
@@ -28,8 +28,8 @@ Gem::Specification.new do |gem|
|
|
28
28
|
gem.add_runtime_dependency 'webrick'
|
29
29
|
gem.add_runtime_dependency 'term-ansicolor', '~> 1.0'
|
30
30
|
|
31
|
-
gem.add_runtime_dependency 'pact-support', '~> 0.
|
32
|
-
gem.add_runtime_dependency 'pact-mock_service', '~> 0.
|
31
|
+
gem.add_runtime_dependency 'pact-support', '~> 0.6'
|
32
|
+
gem.add_runtime_dependency 'pact-mock_service', '~> 0.11'
|
33
33
|
|
34
34
|
gem.add_development_dependency 'rake', '~> 10.0.3'
|
35
35
|
gem.add_development_dependency 'webmock', '~> 1.18.0'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pact
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.10.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: 2016-11-
|
15
|
+
date: 2016-11-15 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: randexp
|
@@ -118,12 +118,12 @@ dependencies:
|
|
118
118
|
requirements:
|
119
119
|
- - "~>"
|
120
120
|
- !ruby/object:Gem::Version
|
121
|
-
version: 0.
|
121
|
+
version: '0.6'
|
122
122
|
requirement: !ruby/object:Gem::Requirement
|
123
123
|
requirements:
|
124
124
|
- - "~>"
|
125
125
|
- !ruby/object:Gem::Version
|
126
|
-
version: 0.
|
126
|
+
version: '0.6'
|
127
127
|
prerelease: false
|
128
128
|
type: :runtime
|
129
129
|
- !ruby/object:Gem::Dependency
|
@@ -132,12 +132,12 @@ dependencies:
|
|
132
132
|
requirements:
|
133
133
|
- - "~>"
|
134
134
|
- !ruby/object:Gem::Version
|
135
|
-
version: '0.
|
135
|
+
version: '0.11'
|
136
136
|
requirement: !ruby/object:Gem::Requirement
|
137
137
|
requirements:
|
138
138
|
- - "~>"
|
139
139
|
- !ruby/object:Gem::Version
|
140
|
-
version: '0.
|
140
|
+
version: '0.11'
|
141
141
|
prerelease: false
|
142
142
|
type: :runtime
|
143
143
|
- !ruby/object:Gem::Dependency
|