pact-mock_service 2.0.1 → 2.1.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6c3b3cd0d4b633ce3a95b86f9e32f7ffa3111ee
|
4
|
+
data.tar.gz: c7664be7b98c9a003312d5386756b06f2e3d2b30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d13741f947caeb81921a90156acdb4ef41813908d3da83c293f57693af92cd28aebe521ea21a55047a45dde1a7146fcbce4d37d4c31ee499e9e0e2859938c51d
|
7
|
+
data.tar.gz: 935a0c04938be72338e03e797e810a0c1190c6207be120240a1495f8db27d0b95723003f4f650edc86546ef2cc0eacb94814ca03e767e47377bfe311ae5ae857
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@ 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
|
+
### 2.1.0 (12 May 2017)
|
6
|
+
* 5b89d95 - Updated location of pact specification version in pact to metadata.pactSpecification.version. As per issue #137 (Beth Skurrie, Fri May 12 11:03:54 2017 +1000)
|
7
|
+
* b85ad94 - Update mock service interaction decorator to use providerState between the consumer DSL and the mock service, just to avoid any further confusion! (Beth Skurrie, Fri May 12 08:41:56 2017 +1000)
|
8
|
+
|
5
9
|
### 2.0.1 (11 May 2017)
|
6
10
|
* 2c106b9 - Fix serialisation of request in pact for pact spec 2. (Beth Skurrie, Thu May 11 09:32:43 2017 +1000)
|
7
11
|
|
@@ -17,7 +17,9 @@ module Pact
|
|
17
17
|
provider: consumer_contract.provider.as_json,
|
18
18
|
interactions: sorted_interactions.collect{ |i| InteractionDecorator.new(i, @decorator_options).as_json},
|
19
19
|
metadata: {
|
20
|
-
|
20
|
+
pactSpecification: {
|
21
|
+
version: pact_specification_version
|
22
|
+
}
|
21
23
|
}
|
22
24
|
)
|
23
25
|
end
|
@@ -14,7 +14,7 @@ module Pact
|
|
14
14
|
|
15
15
|
def as_json options = {}
|
16
16
|
hash = { :description => interaction.description }
|
17
|
-
hash[:
|
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
20
|
fix_all_the_things hash
|
@@ -25,7 +25,7 @@ module Pact
|
|
25
25
|
|
26
26
|
def to_hash
|
27
27
|
hash = { :description => interaction.description }
|
28
|
-
hash[:
|
28
|
+
hash[:providerState] = interaction.provider_state if interaction.provider_state
|
29
29
|
hash[:request] = decorate_request.as_json
|
30
30
|
hash[:response] = decorate_response.as_json
|
31
31
|
hash
|
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: 2.0
|
4
|
+
version: 2.1.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: 2017-05-
|
15
|
+
date: 2017-05-12 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rack
|