pact-mock_service 0.9.0 → 0.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_contract/consumer_contract_writer.rb +7 -1
- data/lib/pact/mock_service/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fd4b4e88ad8deef2d16808ea9da2a063c19e483
|
4
|
+
data.tar.gz: ea1cc4439f20ee2d24b79dc347f66b368b120419
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bddf8dbbe162d47b44c0080138b3d75ed31bdaf9adc7316d82864a04a4a6fc03e4639e4c668fbafe77564e1dbf220444a625b12f4f1b886ff27ea64d014f06d6
|
7
|
+
data.tar.gz: 98994d5fa8c7d7067753f184e17337f1ff3d1c31817667d0afed2d3367db3887fbe630df2462ef3fdcca93c901b34a6a2bee08207d99c0d13b0b4b089b3d5da0
|
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
|
+
### 0.10.0 (10 June 2016)
|
6
|
+
* 9ebcd9e - Only write pact file when there are interactions (Robin Daugherty, Thu Jun 16 16:13:57 2016 -0400)
|
7
|
+
|
5
8
|
### 0.9.0 (26 May 2016)
|
6
9
|
* 28ab905 - Merge pull request #46 from reevoo/order_interactions_by_provider_state (Sergei Matheson, Thu May 26 14:52:08 2016 +1000)
|
7
10
|
* d58507c - Add ability to record interactions in alphabetical order. Order key: description + response.status + provider_state Default order: chronological (as it was before) (Alex Malkov, Mon May 23 11:52:39 2016 +0100)
|
@@ -34,7 +34,7 @@ module Pact
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def write
|
37
|
-
|
37
|
+
update_pactfile_if_needed
|
38
38
|
pact_json
|
39
39
|
end
|
40
40
|
|
@@ -46,6 +46,12 @@ module Pact
|
|
46
46
|
|
47
47
|
attr_reader :consumer_contract_details, :pactfile_write_mode, :interactions, :logger, :pact_specification_version
|
48
48
|
|
49
|
+
def update_pactfile_if_needed
|
50
|
+
return if pactfile_write_mode == :none
|
51
|
+
return if interactions.count == 0
|
52
|
+
update_pactfile
|
53
|
+
end
|
54
|
+
|
49
55
|
def update_pactfile
|
50
56
|
logger.info log_message
|
51
57
|
|
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: 0.
|
4
|
+
version: 0.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-
|
15
|
+
date: 2016-06-20 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rack
|