pact-provider-verifier 1.35.2 → 1.36.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: 1da620e3bd8af64056ca56b69e7418fc553cf7f483c424663d4b83e8944a1553
4
- data.tar.gz: 25457d2f283ad92249eb9b8ac043388502ebc7685ba9235124dcc561d19388e5
3
+ metadata.gz: 8a78bbf0bd6a02f5ae8601da7624b20ad1721c68ab63f8522519861eeeb43b4b
4
+ data.tar.gz: 8d7cba4856e310898b110697d9835f6787ce4f9900047d8318f1fb87bff3e431
5
5
  SHA512:
6
- metadata.gz: a4e6573b850a10f7c4721d6809baf97eca0f7525c0ee23c33da8537ec4285c77530db7ca519c72be65ed691370df957bfb66dc95fdc0f79c511c9dff09e4f712
7
- data.tar.gz: a63fb41d4e5f4f1f846f3b3badc8aa9d14b56eb805d4a1618879284e4f72c405d235160ea3c3ecb7bab60260c9d9ebdb76d65f5c07da9a43380f0d21e4ca55a9
6
+ metadata.gz: 9bf7bd254fe9003ce19a89222757c4f8b890e97dadd9044391a0431b0d6e92163b607d66306abe1f7540fba3101b2e3e4dfaecb61f6db793b356e0474d319160
7
+ data.tar.gz: 505923346b53a1f8331db747bc43d8a6f7819263829a57eb38878d486e1ef3bb9e0829a32b56d843fd6d3abae139ea05795b1f82edacc4a939fb4ce8a19f3965
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ <a name="v1.36.0"></a>
2
+ ### v1.36.0 (2021-09-09)
3
+
4
+ #### Features
5
+
6
+ * add support for specifying the provider version branch ([7f53206](/../../commit/7f53206))
7
+
1
8
  <a name="v1.35.2"></a>
2
9
  ### v1.35.2 (2021-09-09)
3
10
 
@@ -6,15 +6,16 @@ module Pact
6
6
  module ProviderVerifier
7
7
  class AggregatePactConfigs
8
8
 
9
- def self.call(pact_urls, provider_name, consumer_version_tags, consumer_version_selectors, provider_version_tags, pact_broker_base_url, http_client_options, options)
10
- new(pact_urls, provider_name, consumer_version_tags, consumer_version_selectors, provider_version_tags, pact_broker_base_url, http_client_options, options).call
9
+ def self.call(pact_urls, provider_name, consumer_version_tags, consumer_version_selectors, provider_version_branch, provider_version_tags, pact_broker_base_url, http_client_options, options)
10
+ new(pact_urls, provider_name, consumer_version_tags, consumer_version_selectors, provider_version_branch, provider_version_tags, pact_broker_base_url, http_client_options, options).call
11
11
  end
12
12
 
13
- def initialize(pact_urls, provider_name, consumer_version_tags, consumer_version_selectors, provider_version_tags, pact_broker_base_url, http_client_options, options)
13
+ def initialize(pact_urls, provider_name, consumer_version_tags, consumer_version_selectors, provider_version_branch, provider_version_tags, pact_broker_base_url, http_client_options, options)
14
14
  @pact_urls = pact_urls
15
15
  @provider_name = provider_name
16
16
  @consumer_version_tags = consumer_version_tags
17
17
  @consumer_version_selectors = consumer_version_selectors
18
+ @provider_version_branch = provider_version_branch
18
19
  @provider_version_tags = provider_version_tags
19
20
  @pact_broker_base_url = pact_broker_base_url
20
21
  @http_client_options = http_client_options
@@ -27,7 +28,7 @@ module Pact
27
28
 
28
29
  private
29
30
 
30
- attr_reader :pact_urls, :provider_name, :consumer_version_tags, :consumer_version_selectors, :provider_version_tags, :pact_broker_base_url, :http_client_options, :options
31
+ attr_reader :pact_urls, :provider_name, :consumer_version_tags, :consumer_version_selectors, :provider_version_branch, :provider_version_tags, :pact_broker_base_url, :http_client_options, :options
31
32
 
32
33
  def specified_pact_uris
33
34
  pact_urls.collect{ | url | Pact::PactBroker.build_pact_uri(url, http_client_options) }
@@ -45,6 +46,7 @@ module Pact
45
46
  @pacts_for_verification ||= Pact::PactBroker.fetch_pact_uris_for_verification(
46
47
  provider_name,
47
48
  aggregated_consumer_version_selectors,
49
+ provider_version_branch,
48
50
  provider_version_tags,
49
51
  pact_broker_base_url,
50
52
  http_client_options,
@@ -19,13 +19,14 @@ module Pact
19
19
 
20
20
  PROXY_PACT_HELPER = File.expand_path(File.join(File.dirname(__FILE__), "pact_helper.rb"))
21
21
  EMPTY_ARRAY = [].freeze
22
- attr_reader :pact_urls, :options, :consumer_version_tags, :provider_version_tags, :consumer_version_selectors, :publish_verification_results
22
+ attr_reader :pact_urls, :options, :consumer_version_tags, :provider_version_branch, :provider_version_tags, :consumer_version_selectors, :publish_verification_results
23
23
 
24
24
  def initialize pact_urls, options = {}
25
25
  @pact_urls = pact_urls
26
26
  @options = options
27
27
  @consumer_version_tags = options.consumer_version_tag || EMPTY_ARRAY
28
28
  @provider_version_tags = merge_provider_version_tags(options)
29
+ @provider_version_branch = options.provider_version_branch
29
30
  @consumer_version_selectors = parse_consumer_version_selectors(options.consumer_version_selector || EMPTY_ARRAY)
30
31
  @publish_verification_results = options.publish_verification_results || ENV['PACT_BROKER_PUBLISH_VERIFICATION_RESULTS'] == 'true'
31
32
  end
@@ -208,6 +209,7 @@ module Pact
208
209
  options.provider,
209
210
  consumer_version_tags,
210
211
  consumer_version_selectors,
212
+ provider_version_branch,
211
213
  provider_version_tags,
212
214
  options.pact_broker_base_url || ENV['PACT_BROKER_BASE_URL'],
213
215
  http_client_options,
@@ -21,6 +21,7 @@ module Pact
21
21
  method_option :consumer_version_tag, type: :array, banner: "TAG", desc: "Retrieve the latest pacts with this consumer version tag. Used in conjunction with --provider. May be specified multiple times.", :required => false
22
22
  method_option :consumer_version_selector, hide: true, type: :array, banner: "SELECTOR", desc: "JSON string specifying a selector that identifies which pacts to verify. May be specified multiple times. See below for further documentation.", :required => false
23
23
  method_option :provider_version_tag, type: :array, banner: "TAG", desc: "Tag to apply to the provider application version. May be specified multiple times.", :required => false
24
+ method_option :provider_version_branch, banner: "BRANCH", desc: "The name of the branch the provider version belongs to.", :required => false
24
25
  method_option :tag_with_git_branch, aliases: "-g", type: :boolean, default: false, required: false, desc: "Tag provider version with the name of the current git branch. Default: false"
25
26
  method_option :provider_app_version, aliases: "-a", desc: "Provider application version, required when publishing verification results", :required => false
26
27
  method_option :publish_verification_results, aliases: "-r", desc: "Publish verification results to the broker. This can also be enabled by setting the environment variable PACT_BROKER_PUBLISH_VERIFICATION_RESULTS=true", required: false, type: :boolean, default: false
@@ -1,5 +1,5 @@
1
1
  module Pact
2
2
  module ProviderVerifier
3
- VERSION = "1.35.2"
3
+ VERSION = "1.36.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pact-provider-verifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.35.2
4
+ version: 1.36.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Fellows
@@ -31,20 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '1.55'
35
- - - "<"
36
- - !ruby/object:Gem::Version
37
- version: '1.58'
34
+ version: '1.59'
38
35
  type: :runtime
39
36
  prerelease: false
40
37
  version_requirements: !ruby/object:Gem::Requirement
41
38
  requirements:
42
39
  - - "~>"
43
40
  - !ruby/object:Gem::Version
44
- version: '1.55'
45
- - - "<"
46
- - !ruby/object:Gem::Version
47
- version: '1.58'
41
+ version: '1.59'
48
42
  - !ruby/object:Gem::Dependency
49
43
  name: pact-message
50
44
  requirement: !ruby/object:Gem::Requirement