pact_broker-client 1.52.0 → 1.53.0

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: c645adf22b85e738f227eec38baf09fe06241aeaeb4c75abc4c4558c66c2716f
4
- data.tar.gz: e32efad31615c7335df1c36dea365fcc5e001574143a3df3d98e23c1c5c84c71
3
+ metadata.gz: d6662ad835f144252e2a6fd78f98e52b381794629dcbfb8085fa1acb0b28ece0
4
+ data.tar.gz: b0ec70c258bb01ae05801070596dbb02fe23a8f674d2bab53117c40b75a6d59f
5
5
  SHA512:
6
- metadata.gz: 02c18bab0a1d08d568524ccd0a48d526e2aebf3d17db29dc83884f82db4c4ebf9864fd2e6d3de01ab6b11febc658d94efe28a817f351266059771fff8a95a446
7
- data.tar.gz: d647f077b021640b520babbc4e7ba5ed8bd4d460ebe826e98900f356bbd79dda96ee7c425d0ee6eeff7aa2648f996ded578f22a24708b8efdf5725cfd8fd97b9
6
+ metadata.gz: 0f20176d5773873c3cd9a41711a7d4405721f95017132702e6be84430a63baef7101aefcb2b43e05546536d974306c7677b529bd8c2d6e32701432de67e0fe44
7
+ data.tar.gz: b4fc4fa3bd5096b5281d98478cc59d8732a31c29ec7f959922c064193135fd613740220230449e2c5ea3b98611f555b372545549fd22fb52050cc7710a582023
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ <a name="v1.53.0"></a>
2
+ ### v1.53.0 (2021-09-29)
3
+
4
+ #### Features
5
+
6
+ * allow pacts to be published using the old API by setting the environment variable PACT_BROKER_FEATURES=publish_pacts_using_old_api ([7c34132](/../../commit/7c34132))
7
+
1
8
  <a name="v1.52.0"></a>
2
9
  ### v1.52.0 (2021-09-29)
3
10
 
@@ -28,7 +28,7 @@ module PactBroker
28
28
 
29
29
  def call
30
30
  validate
31
- if index_resource.can?("pb:publish-contracts")
31
+ if !force_use_old_api? && index_resource.can?("pb:publish-contracts")
32
32
  publish_pacts
33
33
  PactBroker::Client::CommandResult.new(success?, message)
34
34
  else
@@ -40,6 +40,10 @@ module PactBroker
40
40
 
41
41
  attr_reader :pact_broker_base_url, :pact_file_paths, :consumer_version_params, :consumer_version_number, :branch, :tags, :build_url, :options, :pact_broker_client_options, :response_entities
42
42
 
43
+ def force_use_old_api?
44
+ ENV.fetch("PACT_BROKER_FEATURES", "").include?("publish_pacts_using_old_api")
45
+ end
46
+
43
47
  def request_body_for(consumer_name)
44
48
  {
45
49
  pacticipantName: consumer_name,
@@ -1,5 +1,5 @@
1
1
  module PactBroker
2
2
  module Client
3
- VERSION = '1.52.0'
3
+ VERSION = '1.53.0'
4
4
  end
5
5
  end
@@ -1,5 +1,6 @@
1
1
  export PACT_BROKER_BASE_URL="http://localhost:9292"
2
2
  export PACT_BROKER_TOKEN="localhost"
3
+ #export PACT_BROKER_FEATURES=publish_pacts_using_old_api
3
4
 
4
5
  # bundle exec bin/pact-broker create-or-update-webhook http://localhost:9393 \
5
6
  # --uuid d40f38c3-aaa3-47f5-9161-95c07bc16b14 \
@@ -16,7 +16,6 @@ bundle exec bin/pact-broker record-undeployment --pacticipant Foo --environment
16
16
  bundle exec bin/pact-broker record-release --pacticipant Foo --version 2 --environment test
17
17
  bundle exec bin/pact-broker record-support-ended --pacticipant Foo --version 2 --environment test
18
18
 
19
-
20
19
  bundle exec bin/pact-broker record-deployment --pacticipant Foo --version 2 --environment test
21
20
  bundle exec bin/pact-broker record-deployment --pacticipant Foo --version 2 --environment test --application-instance customer-1
22
21
  bundle exec bin/pact-broker record-deployment --pacticipant Foo --version 2 --environment test --application-instance customer-1
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.52.0
4
+ version: 1.53.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Beth Skurrie