pact-support 1.21.1 → 1.21.2

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
  SHA256:
3
- metadata.gz: 52290425c9eb827bf11c7b843eaeaa0fdd4db4557db29a997204869f89448467
4
- data.tar.gz: ccbc81de3bfe1545b139d9f70544ea4d094cfb7a77feb2048b9223eb24ccfc68
3
+ metadata.gz: cf24b11040a74287c7fd78dd17dae5f87e1945835f40dcd9baff79e7887dec4a
4
+ data.tar.gz: 047adc871be1d33c163552891f17859680b68651eee8c5a465ea04289e671141
5
5
  SHA512:
6
- metadata.gz: 8bfad709827f74beb3c4c72da3ef1ed9140f8b0db1a9824dd5a1bf42b8b3cf1d8b10997f41fba7267f0015a86d0421ee9edb96bcb4e8e9239ef4e9e9cbea2d12
7
- data.tar.gz: f696db8fd1d417c05b5f58e47a04c950be78e4aa91c0ae70600c66f6026c59fb61617469830787450eccd888b34c3326061b5a1185c03da3ea0e68cb1187af50
6
+ metadata.gz: d541d6bb087c6eff129682c44a2918e646745f48cff163a8f6185821e00297d4b85b7c1bd07c7b5852c73bed961b0e921c53159a4e8a10ca81b79372906e59d1
7
+ data.tar.gz: b76bf798118b2cd244b337bd9af708582fc73bc122903aba6720ab7702bb2b1ea66e96a69301c8d3b6bc385e7af4b627e77f307c14982dabcf6cdfff01a81618
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ <a name="v1.21.2"></a>
2
+ ### v1.21.2 (2024-12-04)
3
+
4
+ #### Bug Fixes
5
+
6
+ * prevent insertion of extra new lines in JSON ([50189f2](/../../commit/50189f2))
7
+
1
8
  <a name="v1.21.1"></a>
2
9
  ### v1.21.1 (2024-11-29)
3
10
 
@@ -66,9 +66,9 @@ module Pact
66
66
  private
67
67
 
68
68
  def fix_empty_hash_and_array json
69
- json = json.gsub(/({\s*})/, "{\n }")
70
- json.gsub(/\[\s*\]/, "[\n ]")
71
69
  json
70
+ .gsub(/({\s*})(?=,?$)/, "{\n }")
71
+ .gsub(/\[\s*\](?=,?$)/, "[\n ]")
72
72
  end
73
73
  end
74
74
  end
@@ -1,5 +1,5 @@
1
1
  module Pact
2
2
  module Support
3
- VERSION = "1.21.1"
3
+ VERSION = "1.21.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pact-support
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.21.1
4
+ version: 1.21.2
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: 2024-11-29 00:00:00.000000000 Z
15
+ date: 2024-12-05 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rainbow