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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f7b163125f31e90906834f1862b956cfb7da2304
4
- data.tar.gz: e9161370ca1e3f29af3310ce4d30edd8e36482a4
3
+ metadata.gz: 5fd4b4e88ad8deef2d16808ea9da2a063c19e483
4
+ data.tar.gz: ea1cc4439f20ee2d24b79dc347f66b368b120419
5
5
  SHA512:
6
- metadata.gz: 7a2406a9a3ede444da95b63ed485b99cd372a41877996744f982bbee859f0621eb2d0e643b324aba9270a2e1d142d5a3ed4d852ac8330631d2d8db15ca68d67e
7
- data.tar.gz: 944fb460336e8cccd99d979faac38dac84c4b65d70331a9aafafec2e244821b39439a4808ffe0579f1031eee43e2b2b87739b7941d70b6d91ca144620693cb04
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
- update_pactfile unless pactfile_write_mode == :none
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
 
@@ -1,5 +1,5 @@
1
1
  module Pact
2
2
  module MockService
3
- VERSION = "0.9.0"
3
+ VERSION = "0.10.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: 0.9.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-05-26 00:00:00.000000000 Z
15
+ date: 2016-06-20 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rack