pact_broker-client 1.32.0 → 1.33.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 +8 -0
- data/lib/pact_broker/client/cli/broker.rb +3 -1
- data/lib/pact_broker/client/version.rb +1 -1
- data/pact-broker-client.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 032b2528b1b15b999a2824688a69cfd919727aaf04e5740114a0394073fb10ca
|
4
|
+
data.tar.gz: 615954f63d19d03e5da05ae4c5ee70b754f166d5c09778248fa95b160f057bab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c044af8573cf9fa6d42745eb19ebbb0b106f2581c8072666ec3969cee09d676a7bbf3d69d6c76f80ed7c53623e96c854a6124fc378140d3047fe7aaef69fe9b
|
7
|
+
data.tar.gz: a9fdfed90ff342d500b4dd10973bbf3a45b1c12a37cbc8a8f705f2d98770244f6da59c0a7615e48df77425d90a8870d32dcc6230271045b0f4f6de25292b2c5a
|
data/CHANGELOG.md
CHANGED
@@ -50,6 +50,7 @@ module PactBroker
|
|
50
50
|
method_option :broker_token, aliases: "-k", desc: "Pact Broker bearer token"
|
51
51
|
method_option :tag, aliases: "-t", type: :array, banner: "TAG", desc: "Tag name for consumer version. Can be specified multiple times."
|
52
52
|
method_option :tag_with_git_branch, aliases: "-g", type: :boolean, default: false, required: false, desc: "Tag consumer version with the name of the current git branch. Default: false"
|
53
|
+
method_option :merge, type: :boolean, default: false, require: false, desc: "If a pact already exists for this consumer version and provider, merge the contents. Useful when running Pact tests concurrently on different build nodes."
|
53
54
|
method_option :verbose, aliases: "-v", type: :boolean, default: false, required: false, desc: "Verbose output. Default: false"
|
54
55
|
|
55
56
|
def publish(*pact_files)
|
@@ -209,13 +210,14 @@ module PactBroker
|
|
209
210
|
|
210
211
|
def publish_pacts pact_files
|
211
212
|
require 'pact_broker/client/publish_pacts'
|
213
|
+
write_options = options[:merge] ? { write: :merge } : {}
|
212
214
|
|
213
215
|
PactBroker::Client::PublishPacts.call(
|
214
216
|
options.broker_base_url,
|
215
217
|
file_list(pact_files),
|
216
218
|
options.consumer_app_version,
|
217
219
|
tags,
|
218
|
-
pact_broker_client_options
|
220
|
+
pact_broker_client_options.merge(write_options)
|
219
221
|
)
|
220
222
|
end
|
221
223
|
|
data/pact-broker-client.gemspec
CHANGED
@@ -31,4 +31,5 @@ Gem::Specification.new do |gem|
|
|
31
31
|
gem.add_development_dependency 'webmock', '~> 3.0'
|
32
32
|
gem.add_development_dependency 'conventional-changelog', '~>1.3'
|
33
33
|
gem.add_development_dependency 'pact', '~> 1.16'
|
34
|
+
gem.add_development_dependency 'pact-support', '1.15.0'
|
34
35
|
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.33.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-10
|
11
|
+
date: 2020-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -142,6 +142,20 @@ dependencies:
|
|
142
142
|
- - "~>"
|
143
143
|
- !ruby/object:Gem::Version
|
144
144
|
version: '1.16'
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: pact-support
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - '='
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: 1.15.0
|
152
|
+
type: :development
|
153
|
+
prerelease: false
|
154
|
+
version_requirements: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - '='
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: 1.15.0
|
145
159
|
description: Client for the Pact Broker. Publish, retrieve and query pacts and verification
|
146
160
|
results.
|
147
161
|
email:
|