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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 687ab091422717162f63b7fd2ee9dc336bd73f24c48b48f5e0a1299ab88dc036
4
- data.tar.gz: 32fcd370558280287bf284ff4306f36ccfea94359278fd157a4db32ec5d7911f
3
+ metadata.gz: 71ffd6b9522aa3c9ccb2bff18e3fa9b0a723aa480e312be3aa659ff3d7f07e32
4
+ data.tar.gz: 4e6d7034e9bb8b1a85e64afda22fe1ee723842da63c5d67d5586c37b41a4c9a5
5
5
  SHA512:
6
- metadata.gz: 290ee48f43fffa0b48c467a37e8433ada2f1abfde564d0aad62e9eb3adf27bc3ac957decf233c0de6e6373b0c74183e76b2c709335fc3692d2932fcf7e4305e7
7
- data.tar.gz: 9a64e0d22fbcb7e82fb586f5f463b41fc13df73e32be1ce64358b871dc41a1dbbd034c4971b411858537eb561063f66a8fee010b83e008170ea9a23e7559a0ba
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
@@ -1,5 +1,5 @@
1
1
  module PactBroker
2
2
  module Client
3
- VERSION = '1.39.0'
3
+ VERSION = '1.40.0'
4
4
  end
5
5
  end
@@ -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
@@ -1,6 +1,6 @@
1
1
  require 'webmock/rspec'
2
2
 
3
- ENV['PACT_BROKER_FEATURES'] = 'deployments'
3
+ ENV['PACT_BROKER_FEATURES'] = 'deployments publish_contracts'
4
4
 
5
5
  WebMock.disable_net_connect!(allow_localhost: true)
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pact_broker-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.39.0
4
+ version: 1.40.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Beth Skurrie