pact-mock_service 2.5.1 → 2.5.3

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: ae5356aaf0c1c1c950b02ad91e2e6349f0e1fda9
4
- data.tar.gz: 5de111235dfda856927e1cf51b654a08b932fe0d
3
+ metadata.gz: ab6fd88bc600e593af07957cbb2ff7efd8aa845d
4
+ data.tar.gz: c29c9e321fc17fc345b496c1176e4b45ba19c8d5
5
5
  SHA512:
6
- metadata.gz: fb8cd95dd42a4948308d0255666f0b471a9d978fb36cf28cbef0d1034267872c33136c95a622e57c08e484a480d406db074ade24a007aa1a01bdf602e86d857c
7
- data.tar.gz: 42ec5dc104372b1f4d8d664f6112efa09bfec2d1cbaa2e0c662ed92abbb9b1d694af472cf67f42d72aabea8c25ac7cea7cd0aa023688f526496b6207243405f8
6
+ metadata.gz: 6fbbb2bc30bd94805bf05fd7079a18fce175a7094af8f49f044956d97bfb1b0142f3e02fad79e1991ac489e758cc828b7b0969806dd4b61320f0736dc93816a9
7
+ data.tar.gz: 597d6b28224da407eb1d749e0569e7177156e1526d621f4813083a9b840df0b50f9bf01ed61dbbf375ed9b3314765769c55084b66b9a47fd4b83769e45e0ce11
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@ 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.5.3 (2017-10-30)
6
+ * 9ad0d10 - fix: read existing pact file before truncating it (Beth Skurrie, Mon Oct 30 09:43:42 2017 +1100)
7
+
8
+ ### 2.5.2 (2017-10-30)
9
+ * 12f02b4 - fix: avoid corrupting pact file when writing to it (Beth Skurrie, Mon Oct 30 08:31:15 2017 +1100)
10
+
5
11
  ### 2.5.0 (2017-10-28)
6
12
  * bc15e21 - feat(pact-stub-service): handle case where multiple responses match (Beth Skurrie, Sat Oct 28 09:15:55 2017 +1100)
7
13
 
@@ -57,7 +57,9 @@ module Pact
57
57
  logger.info log_message
58
58
  FileUtils.mkdir_p File.dirname(pactfile_path)
59
59
  Filelock pactfile_path do | file |
60
- file.write pact_json
60
+ new_contents = pact_json
61
+ file.truncate 0
62
+ file.write new_contents
61
63
  end
62
64
  end
63
65
 
@@ -1,5 +1,5 @@
1
1
  module Pact
2
2
  module MockService
3
- VERSION = "2.5.1"
3
+ VERSION = "2.5.3"
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: 2.5.1
4
+ version: 2.5.3
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-10-27 00:00:00.000000000 Z
15
+ date: 2017-10-29 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rack