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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9fc996a2d95d7c3755d063cd244b273fa5924f6956cf18b26ebe9531fa59e304
4
- data.tar.gz: '018d1d764a83f040d57d6ef504a6b4229f34f3fff38cf938c8c3f2202e03cc7a'
3
+ metadata.gz: 032b2528b1b15b999a2824688a69cfd919727aaf04e5740114a0394073fb10ca
4
+ data.tar.gz: 615954f63d19d03e5da05ae4c5ee70b754f166d5c09778248fa95b160f057bab
5
5
  SHA512:
6
- metadata.gz: 95944c92c42aa29803c5bd37b5b4c8526359cb910c4a983123379ac2f0482483aae75fc9179d2e6341e1931019c3f1588e1d7a385ffa628c203fd829d3137bfb
7
- data.tar.gz: 5391400fa12118608718161c3ea286ffe1b3b7aebbe1eca074b999b1903b25f6a3f15e257459e35240e30faf768949d45c45a052616378507b0eaf970590ee1b
6
+ metadata.gz: 9c044af8573cf9fa6d42745eb19ebbb0b106f2581c8072666ec3969cee09d676a7bbf3d69d6c76f80ed7c53623e96c854a6124fc378140d3047fe7aaef69fe9b
7
+ data.tar.gz: a9fdfed90ff342d500b4dd10973bbf3a45b1c12a37cbc8a8f705f2d98770244f6da59c0a7615e48df77425d90a8870d32dcc6230271045b0f4f6de25292b2c5a
@@ -1,3 +1,11 @@
1
+ <a name="v1.33.0"></a>
2
+ ### v1.33.0 (2020-11-10)
3
+
4
+ #### Features
5
+
6
+ * **publish**
7
+ * allow pacts to be merged on the server side ([bd80f10](/../../commit/bd80f10))
8
+
1
9
  <a name="v1.32.0"></a>
2
10
  ### v1.32.0 (2020-10-26)
3
11
 
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module PactBroker
2
2
  module Client
3
- VERSION = '1.32.0'
3
+ VERSION = '1.33.0'
4
4
  end
5
5
  end
@@ -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.32.0
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-26 00:00:00.000000000 Z
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: