pact 1.66.1 → 1.66.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/lib/pact/provider/request.rb +14 -1
- data/lib/pact/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02eee4d7bd2a7a04b184b4814bb8b100266faaba00b7a7e49b7c29a30828c6b4
|
4
|
+
data.tar.gz: 8304d327027f35c8feb14f95f0f256a9970c2f4a4b589676f6b0192d7a227c25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e278f323f6bce1117b0901f8045b596809478b509d71aa7da921efa9e06ede795a2f585d60a80e5ca5c85baf764468fa464935929029d412723f5e127196451
|
7
|
+
data.tar.gz: 4fb50dd10844143083b1387a4a2883291789332dec8c8b4a62c1f6ce476fe20b8307e9b6400b7d311990ef8a60ec6071752feba4381b6eaa9a2444dfc6347752
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
<a name="v1.66.2"></a>
|
2
|
+
### v1.66.2 (2025-10-03)
|
3
|
+
|
4
|
+
#### Bug Fixes
|
5
|
+
|
6
|
+
* **spec**
|
7
|
+
* update rspec keyword vs arg changes https://github.com/rspec/rspec-mocks/pull/1473 ([c1c17fc](/../../commit/c1c17fc))
|
8
|
+
|
9
|
+
* correct generators import and update specs ([d025342](/../../commit/d025342))
|
10
|
+
* example/animal-service/Gemfile to reduce vulnerabilities ([4dfb3f5](/../../commit/4dfb3f5))
|
11
|
+
* example/animal-service/Gemfile to reduce vulnerabilities ([3d8fa31](/../../commit/3d8fa31))
|
12
|
+
* example/zoo-app/Gemfile to reduce vulnerabilities ([5ff8945](/../../commit/5ff8945))
|
13
|
+
|
1
14
|
<a name="v1.66.1"></a>
|
2
15
|
### v1.66.1 (2025-01-20)
|
3
16
|
|
@@ -29,7 +29,7 @@ module Pact
|
|
29
29
|
when String then expected_request.body
|
30
30
|
when NullExpectation then ''
|
31
31
|
else
|
32
|
-
|
32
|
+
generated_body
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
@@ -60,6 +60,19 @@ module Pact
|
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
63
|
+
def generated_body
|
64
|
+
result = Pact::Generators.apply_generators(expected_request, "body", reified_body, @state_params)
|
65
|
+
|
66
|
+
case result
|
67
|
+
when Hash
|
68
|
+
result.to_json
|
69
|
+
when String
|
70
|
+
result
|
71
|
+
else
|
72
|
+
raise "Expected body to be a String or Hash, but was #{result.class} with value #{result.inspect}"
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
63
76
|
def rack_request_header_for header
|
64
77
|
with_http_prefix(header.to_s.upcase).tr('-', '_')
|
65
78
|
end
|
data/lib/pact/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pact
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.66.
|
4
|
+
version: 1.66.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Fraser
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
- Beth Skurrie
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rspec
|
@@ -459,7 +459,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
459
459
|
- !ruby/object:Gem::Version
|
460
460
|
version: '0'
|
461
461
|
requirements: []
|
462
|
-
rubygems_version: 3.
|
462
|
+
rubygems_version: 3.7.2
|
463
463
|
specification_version: 4
|
464
464
|
summary: Enables consumer driven contract testing, providing a mock service and DSL
|
465
465
|
for the consumer project, and interaction playback and verification for the service
|