pact_broker 2.93.1 → 2.93.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/pact_broker/metrics/service.rb +1 -1
- data/lib/pact_broker/pacts/service.rb +3 -3
- data/lib/pact_broker/pacts/sort_content.rb +1 -1
- data/lib/pact_broker/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: 6014e4f21b22b1055f87d7f937b7d7942cb62f1ab7e6501299c8787e83986e22
|
4
|
+
data.tar.gz: 58b9668d0f34631533a507bce423d80fd0a1a8e2f98c04838a69ac83dc290f18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f26bd4ebafd8e30a3b8d96c2eb7c2ed5f594ef8cdfb477b89260169db34b77a32f01605b74f0a75e7f118eea1f8364e0c4f3e8d93df76617b041b526a3ff99e5
|
7
|
+
data.tar.gz: 807f0c5055108dfd8b8057a64580943dc6b1aeedb669156c1dcdad09cd4926ca8d6616646af62721f12ec2ab285a9cd9556d2821fc35177c7d04768a85c66347
|
data/CHANGELOG.md
CHANGED
@@ -18,7 +18,7 @@ module PactBroker
|
|
18
18
|
withMainBranchSetCount: PactBroker::Domain::Pacticipant.with_main_branch_set.count
|
19
19
|
},
|
20
20
|
integrations: {
|
21
|
-
count: PactBroker::
|
21
|
+
count: PactBroker::Pacts::PactPublication.select(:consumer_id, :provider_id).distinct.count
|
22
22
|
},
|
23
23
|
pactPublications: {
|
24
24
|
count: PactBroker::Pacts::PactPublication.count,
|
@@ -43,7 +43,7 @@ module PactBroker
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def delete params
|
46
|
-
logger.info "Deleting pact version
|
46
|
+
logger.info "Deleting pact version", payload: params
|
47
47
|
pacts = pact_repository.find_all_revisions(params[:consumer_name], params[:consumer_version_number], params[:provider_name])
|
48
48
|
webhook_service.delete_all_webhook_related_objects_by_pact_publication_ids(pacts.collect(&:id))
|
49
49
|
pact_repository.delete(params)
|
@@ -156,7 +156,7 @@ module PactBroker
|
|
156
156
|
|
157
157
|
# Overwriting an existing pact with the same consumer/provider/consumer version number
|
158
158
|
def create_pact_revision params, existing_pact
|
159
|
-
logger.info "Updating existing pact publication", payload: params.
|
159
|
+
logger.info "Updating existing pact publication", payload: params.without(:json_content)
|
160
160
|
logger.debug "Content #{params[:json_content]}"
|
161
161
|
pact_version_sha = generate_sha(params[:json_content])
|
162
162
|
json_content = add_interaction_ids(params[:json_content])
|
@@ -185,7 +185,7 @@ module PactBroker
|
|
185
185
|
|
186
186
|
# When no publication for the given consumer/provider/consumer version number exists
|
187
187
|
def create_pact params, version, provider
|
188
|
-
logger.info "Creating new pact publication
|
188
|
+
logger.info "Creating new pact publication", payload: params.without(:json_content)
|
189
189
|
logger.debug "Content #{params[:json_content]}"
|
190
190
|
pact_version_sha = generate_sha(params[:json_content])
|
191
191
|
json_content = add_interaction_ids(params[:json_content])
|
@@ -34,7 +34,7 @@ module PactBroker
|
|
34
34
|
# You never can tell what people will do...
|
35
35
|
if probably_array.is_a?(Array)
|
36
36
|
array_with_ordered_hashes = order_hash_keys(probably_array)
|
37
|
-
array_with_ordered_hashes.
|
37
|
+
array_with_ordered_hashes.sort_by(&:to_json)
|
38
38
|
else
|
39
39
|
probably_array
|
40
40
|
end
|
data/lib/pact_broker/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pact_broker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.93.
|
4
|
+
version: 2.93.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bethany Skurrie
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-12-
|
13
|
+
date: 2021-12-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: httparty
|
@@ -1223,7 +1223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1223
1223
|
- !ruby/object:Gem::Version
|
1224
1224
|
version: '0'
|
1225
1225
|
requirements: []
|
1226
|
-
rubygems_version: 3.
|
1226
|
+
rubygems_version: 3.3.1
|
1227
1227
|
signing_key:
|
1228
1228
|
specification_version: 4
|
1229
1229
|
summary: See description
|