pact_broker-client 1.29.1 → 1.30.0
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/Gemfile +0 -4
- data/README.md +8 -1
- data/lib/pact_broker/client/publish_pacts.rb +1 -1
- data/lib/pact_broker/client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7be73ef3705005ce0808a1d74dba560c4f590fce09871ae7597c06479ce2316
|
4
|
+
data.tar.gz: ec3b757187ce7c60dbc4835933debbe68fa2f5fb2b08ffdb6f9e5cb7141943e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f035fa2d68c909fc2d3865ebcd76be24ae9af0a0a4bc4cd0e2503f3a1da822456a6439b61364a83a73ff6e9021a5fa5caa24addeb4f9d9a10980ab33e1ffb74
|
7
|
+
data.tar.gz: 2fe9a489c6c2824f1d218b693559bf1be1713d2989c62283979acc7ddda0684a0b60607fce0abd5d813dbb279c7ff5a4b5ca6bb186c79af3911855803f79837a
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -6,10 +6,6 @@ gemspec
|
|
6
6
|
# even thought it's in the development dependencies. Trying it here.
|
7
7
|
gem 'rake', '~> 13.0'
|
8
8
|
|
9
|
-
group :release do
|
10
|
-
gem 'bump', git: 'https://github.com/bethesque/bump.git'
|
11
|
-
end
|
12
|
-
|
13
9
|
if ENV['X_PACT_DEVELOPMENT'] == 'true'
|
14
10
|
gem 'pact-mock_service', path: '../pact-mock_service'
|
15
11
|
gem 'pact-support', path: '../pact-support'
|
data/README.md
CHANGED
@@ -153,7 +153,7 @@ Can I deploy the latest version of the application Foo that has the tag "test" t
|
|
153
153
|
|
154
154
|
If you are unable to use tags, or there is some other limitation that stops you from using the recommended approach, you can specify one or more of the dependencies explictly. You must also do this if you want to use the `--all TAG` option for any of the pacticipants.
|
155
155
|
|
156
|
-
You can specify as many application versions as you like, and you can even specify multiple versions of the same application (repeat the `--pacticipant` name and supply a different version.
|
156
|
+
You can specify as many application versions as you like, and you can even specify multiple versions of the same application (repeat the `--pacticipant` name and supply a different version). If you have a monorepo and you deploy a group of applications together, you can either call `can-i-deploy` once for each application, or you can group them all together by specifying a `--pacticipant` and `--version` for each sub-application.
|
157
157
|
|
158
158
|
You can use explictly declared dependencies with or without the `--to ENVIRONMENT`. For example, if you declare two (or more) application versions with no `--to ENVIRONMENT`, then only the applications you specify will be taken into account when determining if it is safe to deploy. If you declare two (or more) application versions _as well as_ a `--to ENVIRONMENT`, then the Pact Broker will work out what integrations your declared applications will have in that environment when determining if it safe to deploy. When using this script for a production release, and you are using tags, it is always the most future-proof option to use the `--to` if possible, as it will catch any newly added consumers or providers.
|
159
159
|
|
@@ -182,6 +182,13 @@ Can I deploy the latest version of Foo with tag "master" and the latest version
|
|
182
182
|
--pacticipant Bar --latest master \
|
183
183
|
--broker-base-url BROKER_BASE_URL
|
184
184
|
|
185
|
+
Can I deploy all the applications in my monorepo to prod?
|
186
|
+
|
187
|
+
$ pact-broker can-i-deploy --pacticipant A --version a7e28207 \
|
188
|
+
--pacticipant B --version a7e28207 \
|
189
|
+
--pacticipant C --version a7e28207 \
|
190
|
+
--to prod \
|
191
|
+
--broker-base-url BROKER_BASE_URL
|
185
192
|
|
186
193
|
Mobile provider use case - can I deploy version b80e7b1b of Bar, all versions of Foo with tag "prod", and the latest version tagged "prod" of any other automatically calculated dependencies together? (Eg. where Bar is a provider and Foo is a mobile consumer with multiple versions in production, and Bar also has its own providers it needs to be compatible with.)
|
187
194
|
|
@@ -95,7 +95,7 @@ module PactBroker
|
|
95
95
|
end
|
96
96
|
|
97
97
|
latest_pact_url = pacts.publish(pact_hash: pact, consumer_version: consumer_version)
|
98
|
-
$stdout.puts "The latest version of this pact can be accessed at the following URL
|
98
|
+
$stdout.puts "The latest version of this pact can be accessed at the following URL:\n#{latest_pact_url}"
|
99
99
|
true
|
100
100
|
end
|
101
101
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pact_broker-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.30.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Beth Skurrie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|