pact_broker-client 1.39.0 → 1.40.0
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 +8 -0
- data/lib/pact_broker/client/publish_pacts.rb +1 -1
- data/lib/pact_broker/client/version.rb +1 -1
- data/script/publish-pact.sh +15 -0
- data/spec/spec_helper.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 71ffd6b9522aa3c9ccb2bff18e3fa9b0a723aa480e312be3aa659ff3d7f07e32
|
|
4
|
+
data.tar.gz: 4e6d7034e9bb8b1a85e64afda22fe1ee723842da63c5d67d5586c37b41a4c9a5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9139f502e90e33eb8f617aac7f49a3ca0ee92f149bc7b81849530956fb861b88425bd63a1fb9f0a7fdc0ff687112dee2c8b297832083146d88266fc5e7c8608a
|
|
7
|
+
data.tar.gz: bff2cfc3be3e1032462afc67d34fcc1afbfdb42ceebd1c79abfe440f7f8f1f6c17e74a07b6cb9c6a0cc83df99d578cb0eb78afa99fab73871a4c23c7be24def9
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
<a name="v1.40.0"></a>
|
|
2
|
+
### v1.40.0 (2021-04-26)
|
|
3
|
+
|
|
4
|
+
#### Features
|
|
5
|
+
|
|
6
|
+
* use the pb:publish-contracts relation and endpoint to publish pacts ([19f1b0b](/../../commit/19f1b0b))
|
|
7
|
+
* update publish pacts command to use new 'all in one' contract publishing endpoint ([50dfb11](/../../commit/50dfb11))
|
|
8
|
+
|
|
1
9
|
<a name="v1.39.0"></a>
|
|
2
10
|
### v1.39.0 (2021-04-27)
|
|
3
11
|
|
|
@@ -27,7 +27,7 @@ module PactBroker
|
|
|
27
27
|
|
|
28
28
|
def call
|
|
29
29
|
validate
|
|
30
|
-
if index_resource.can?("pb:publish-contracts")
|
|
30
|
+
if ENV.fetch("PACT_BROKER_FEATURES", "").include?("publish_contracts") && index_resource.can?("pb:publish-contracts")
|
|
31
31
|
publish_pacts
|
|
32
32
|
PactBroker::Client::CommandResult.new(success?, message)
|
|
33
33
|
else
|
data/script/publish-pact.sh
CHANGED
|
@@ -18,3 +18,18 @@ bundle exec bin/pact-broker publish spec/pacts/pact_broker_client-pact_broker.js
|
|
|
18
18
|
--build-url http://mybuild \
|
|
19
19
|
--branch master --tag foo5
|
|
20
20
|
|
|
21
|
+
# bundle exec bin/pact-broker create-or-update-webhook http://localhost:9393 \
|
|
22
|
+
# --uuid d40f38c3-aaa3-47f5-9161-95c07bc16555 \
|
|
23
|
+
# --provider Bar \
|
|
24
|
+
# --request POST \
|
|
25
|
+
# --contract-published
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
PACT_BROKER_FEATURES=publish_contracts bundle exec bin/pact-broker publish spec/pacts/pact_broker_client-pact_broker.json \
|
|
29
|
+
--consumer-app-version 1.2.26 \
|
|
30
|
+
--broker-base-url http://localhost:9292 \
|
|
31
|
+
--broker-token localhost \
|
|
32
|
+
--auto-detect-version-properties \
|
|
33
|
+
--build-url http://mybuild \
|
|
34
|
+
--branch master --tag foo5 --tag foo6
|
|
35
|
+
|
data/spec/spec_helper.rb
CHANGED