pact_broker-client 1.56.0 → 1.59.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release_gem.yml +1 -1
- data/.github/workflows/test.yml +2 -0
- data/CHANGELOG.md +26 -0
- data/README.md +222 -211
- data/lib/pact_broker/client/base_client.rb +1 -1
- data/lib/pact_broker/client/cli/matrix_commands.rb +3 -2
- data/lib/pact_broker/client/cli/version_selector_options_parser.rb +4 -0
- data/lib/pact_broker/client/cli/webhook_commands.rb +1 -3
- data/lib/pact_broker/client/deployments/record_release.rb +5 -1
- data/lib/pact_broker/client/deployments/record_undeployment.rb +1 -1
- data/lib/pact_broker/client/environments/environment_command.rb +6 -1
- data/lib/pact_broker/client/git.rb +1 -1
- data/lib/pact_broker/client/hal/entity.rb +8 -4
- data/lib/pact_broker/client/hal/http_client.rb +4 -0
- data/lib/pact_broker/client/hal/link.rb +7 -2
- data/lib/pact_broker/client/publish_pacts.rb +5 -1
- data/lib/pact_broker/client/version.rb +1 -1
- data/lib/pact_broker/client/webhooks/create.rb +1 -1
- data/pact-broker-client.gemspec +4 -4
- data/script/can-i-deploy.sh +5 -0
- data/script/record-deployments-and-releases.sh +3 -3
- data/script/update-cli-usage-in-readme.rb +6 -2
- data/spec/lib/pact_broker/client/cli/version_selector_options_parser_spec.rb +6 -0
- data/spec/lib/pact_broker/client/deployments/record_deployment_spec.rb +12 -1
- data/spec/lib/pact_broker/client/deployments/record_undeployment_spec.rb +1 -1
- data/spec/lib/pact_broker/client/hal/entity_spec.rb +1 -1
- data/spec/lib/pact_broker/client/hal/link_spec.rb +15 -0
- metadata +12 -17
@@ -125,7 +125,7 @@ module PactBroker
|
|
125
125
|
end
|
126
126
|
url
|
127
127
|
else
|
128
|
-
raise PactBroker::Client::RelationNotFound.new("Could not find relation #{relation_name} in index resource. Try upgrading your Pact Broker as the feature you require may not exist in your version.")
|
128
|
+
raise PactBroker::Client::RelationNotFound.new("Could not find relation #{relation_name} in index resource. Try upgrading your Pact Broker as the feature you require may not exist in your version. If you are using Pactflow, you may not have the permissions required for this action.")
|
129
129
|
end
|
130
130
|
end
|
131
131
|
end
|
@@ -13,6 +13,7 @@ module PactBroker
|
|
13
13
|
method_option :ignore, required: false, desc: "The pacticipant name to ignore. Use once for each pacticipant being ignored. A specific version can be ignored by also specifying a --version after the pacticipant name option."
|
14
14
|
method_option :latest, required: false, aliases: "-l", banner: "[TAG]", desc: "Use the latest pacticipant version. Optionally specify a TAG to use the latest version with the specified tag."
|
15
15
|
method_option :to_environment, required: false, banner: "ENVIRONMENT", desc: "The environment into which the pacticipant(s) are to be deployed", default: nil
|
16
|
+
method_option :branch, required: false, desc: "The branch of the version for which you want to check the verification results", default: nil
|
16
17
|
method_option :to, required: false, banner: "TAG", desc: "The tag that represents the branch or environment of the integrated applications for which you want to check the verification result status.", default: nil
|
17
18
|
method_option :output, aliases: "-o", desc: "json or table", default: "table"
|
18
19
|
method_option :retry_while_unknown, banner: "TIMES", type: :numeric, default: 0, required: false, desc: "The number of times to retry while there is an unknown verification result (ie. the provider verification is likely still running)"
|
@@ -77,8 +78,8 @@ module PactBroker
|
|
77
78
|
end
|
78
79
|
|
79
80
|
def validate_can_i_deploy_selectors selectors
|
80
|
-
pacticipants_without_versions = selectors.select{ |s| s[:version].nil? && s[:latest].nil? && s[:tag].nil? }.collect{ |s| s[:pacticipant] }
|
81
|
-
raise ::Thor::RequiredArgumentMissingError, "The version must be specified using `--version VERSION`, `--latest`, `--latest TAG`, or `--all TAG` for pacticipant #{pacticipants_without_versions.join(", ")}" if pacticipants_without_versions.any?
|
81
|
+
pacticipants_without_versions = selectors.select{ |s| s[:version].nil? && s[:latest].nil? && s[:tag].nil? && s[:branch].nil? }.collect{ |s| s[:pacticipant] }
|
82
|
+
raise ::Thor::RequiredArgumentMissingError, "The version must be specified using `--version VERSION`, `--branch BRANCH` `--latest`, `--latest TAG`, or `--all TAG` for pacticipant #{pacticipants_without_versions.join(", ")}" if pacticipants_without_versions.any?
|
82
83
|
end
|
83
84
|
end
|
84
85
|
end
|
@@ -31,6 +31,10 @@ module PactBroker
|
|
31
31
|
when "--latest", "-l"
|
32
32
|
selectors << { pacticipant: nil } if selectors.empty?
|
33
33
|
selectors.last[:tag] = word
|
34
|
+
when "--branch"
|
35
|
+
selectors << { pacticipant: nil } if selectors.empty?
|
36
|
+
selectors.last[:branch] = word
|
37
|
+
selectors.last[:latest] = true
|
34
38
|
when "--all"
|
35
39
|
selectors << { pacticipant: nil } if selectors.empty?
|
36
40
|
selectors.last[:tag] = word
|
@@ -24,9 +24,7 @@ module PactBroker
|
|
24
24
|
method_option :provider_verification_published, type: :boolean, desc: "Trigger this webhook when a provider verification result is published"
|
25
25
|
method_option :provider_verification_failed, type: :boolean, desc: "Trigger this webhook when a failed provider verification result is published"
|
26
26
|
method_option :provider_verification_succeeded, type: :boolean, desc: "Trigger this webhook when a successful provider verification result is published"
|
27
|
-
|
28
|
-
method_option :contract_requiring_verification_published, type: :boolean, desc: "Trigger this webhook when a contract is published that requires verification"
|
29
|
-
end
|
27
|
+
method_option :contract_requiring_verification_published, type: :boolean, desc: "Trigger this webhook when a contract is published that requires verification"
|
30
28
|
method_option :team_uuid, banner: "UUID", desc: "UUID of the Pactflow team to which the webhook should be assigned (Pactflow only)"
|
31
29
|
shared_authentication_options
|
32
30
|
end
|
@@ -30,7 +30,11 @@ module PactBroker
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def not_supported_message
|
33
|
-
|
33
|
+
if is_pactflow?
|
34
|
+
"This version of Pactflow does not support recording #{action}s, or you do not have the required permission to read environments. Please upgrade to the latest version if using Pactflow On-Premises, and ensure the user has the environment read permission."
|
35
|
+
else
|
36
|
+
"This version of the Pact Broker does not support recording #{action}s. Please upgrade to version 2.80.0 or later."
|
37
|
+
end
|
34
38
|
end
|
35
39
|
|
36
40
|
def environment_exists?
|
@@ -108,7 +108,7 @@ module PactBroker
|
|
108
108
|
potential_application_instances = currently_deployed_version_entities_for_pacticipant.collect{|e| e.applicationInstance || e.target }
|
109
109
|
|
110
110
|
if application_instance
|
111
|
-
omit_text = potential_application_instances.include?(nil) ? "omit the application instance
|
111
|
+
omit_text = potential_application_instances.include?(nil) ? "omit the application instance" : nil
|
112
112
|
specify_text = potential_application_instances.compact.any? ? "specify one of the following application instances to record the undeployment from: #{potential_application_instances.compact.join(", ")}" : nil
|
113
113
|
"#{pacticipant_name} is not currently deployed to application instance '#{application_instance}' in #{environment_name} environment. Please #{[omit_text, specify_text].compact.join(" or ")}."
|
114
114
|
else
|
@@ -5,6 +5,7 @@ module PactBroker
|
|
5
5
|
module Environments
|
6
6
|
class EnvironmentCommand < PactBroker::Client::BaseCommand
|
7
7
|
NOT_SUPPORTED_MESSAGE = "This version of the Pact Broker does not support environments. Please upgrade to version 2.80.0 or later."
|
8
|
+
PACTFLOW_NOT_SUPPORTED_MESSAGE = "This version of Pactflow does not support environments or you do not have the required permission to read them. Please upgrade to the latest version if using Pactflow On-Premises and ensure the user has the environment read permission."
|
8
9
|
|
9
10
|
private
|
10
11
|
|
@@ -57,7 +58,11 @@ module PactBroker
|
|
57
58
|
|
58
59
|
def check_if_command_supported
|
59
60
|
unless index_resource.can?("pb:environments")
|
60
|
-
|
61
|
+
if is_pactflow?
|
62
|
+
raise PactBroker::Client::Error.new(PACTFLOW_NOT_SUPPORTED_MESSAGE)
|
63
|
+
else
|
64
|
+
raise PactBroker::Client::Error.new(NOT_SUPPORTED_MESSAGE)
|
65
|
+
end
|
61
66
|
end
|
62
67
|
end
|
63
68
|
end
|
@@ -25,7 +25,7 @@ module PactBroker
|
|
25
25
|
using PactBroker::Client::HashRefinements
|
26
26
|
|
27
27
|
COMMAND = 'git rev-parse --abbrev-ref HEAD'.freeze
|
28
|
-
BRANCH_ENV_VAR_NAMES = %w{GITHUB_REF BUILDKITE_BRANCH CIRCLE_BRANCH TRAVIS_BRANCH GIT_BRANCH GIT_LOCAL_BRANCH APPVEYOR_REPO_BRANCH CI_COMMIT_REF_NAME BITBUCKET_BRANCH}.freeze
|
28
|
+
BRANCH_ENV_VAR_NAMES = %w{GITHUB_HEAD_REF GITHUB_REF BUILDKITE_BRANCH CIRCLE_BRANCH TRAVIS_BRANCH GIT_BRANCH GIT_LOCAL_BRANCH APPVEYOR_REPO_BRANCH CI_COMMIT_REF_NAME BITBUCKET_BRANCH}.freeze
|
29
29
|
COMMIT_ENV_VAR_NAMES = %w{GITHUB_SHA BUILDKITE_COMMIT CIRCLE_SHA1 TRAVIS_COMMIT GIT_COMMIT APPVEYOR_REPO_COMMIT CI_COMMIT_ID BITBUCKET_COMMIT}
|
30
30
|
BUILD_URL_ENV_VAR_NAMES = %w{BUILDKITE_BUILD_URL CIRCLE_BUILD_URL TRAVIS_BUILD_WEB_URL BUILD_URL }
|
31
31
|
|
@@ -91,11 +91,11 @@ module PactBroker
|
|
91
91
|
end
|
92
92
|
|
93
93
|
def _link!(key)
|
94
|
-
_link(key) or raise RelationNotFoundError.new(
|
94
|
+
_link(key) or raise RelationNotFoundError.new(relation_not_found_error_message(key, @href))
|
95
95
|
end
|
96
96
|
|
97
97
|
def _links!(key)
|
98
|
-
_links(key) or raise RelationNotFoundError.new(
|
98
|
+
_links(key) or raise RelationNotFoundError.new(relation_not_found_error_message(key, @href))
|
99
99
|
end
|
100
100
|
|
101
101
|
def embedded_entity
|
@@ -141,9 +141,9 @@ module PactBroker
|
|
141
141
|
end
|
142
142
|
|
143
143
|
def method_missing(method_name, *args, &block)
|
144
|
-
if @data.key?(method_name.to_s)
|
144
|
+
if @data.respond_to?(:key?) && @data.key?(method_name.to_s)
|
145
145
|
@data[method_name.to_s]
|
146
|
-
elsif @links.key?(method_name)
|
146
|
+
elsif @links.respond_to?(:key?) && @links.key?(method_name)
|
147
147
|
Link.new(@links[method_name], @client).run(*args)
|
148
148
|
else
|
149
149
|
nil
|
@@ -161,6 +161,10 @@ module PactBroker
|
|
161
161
|
def self_href(entity_hash)
|
162
162
|
entity_hash["_links"] && entity_hash["_links"]["self"] && entity_hash["_links"]["self"]["href"]
|
163
163
|
end
|
164
|
+
|
165
|
+
def relation_not_found_error_message(key, href)
|
166
|
+
"Could not find relation '#{key}' in resource at #{href}. The most likely reason for this is that you are on an old version of the Pact Broker and you need to upgrade, or you are using Pactflow and you don't have the permissions required for this action."
|
167
|
+
end
|
164
168
|
end
|
165
169
|
|
166
170
|
class ErrorEntity < Entity
|
@@ -86,11 +86,16 @@ module PactBroker
|
|
86
86
|
private
|
87
87
|
|
88
88
|
def wrap_response(href, http_response)
|
89
|
-
require
|
89
|
+
require "pact_broker/client/hal/entity" # avoid circular reference
|
90
90
|
if http_response.success?
|
91
91
|
Entity.new(href, http_response.body, @http_client, http_response)
|
92
92
|
else
|
93
|
-
|
93
|
+
body = begin
|
94
|
+
http_response.header("Content-Type") && http_response.header("Content-Type").include?("json") ? http_response.body : http_response.raw_body
|
95
|
+
rescue
|
96
|
+
http_response.raw_body
|
97
|
+
end
|
98
|
+
ErrorEntity.new(href, body, @http_client, http_response)
|
94
99
|
end
|
95
100
|
end
|
96
101
|
|
@@ -86,7 +86,11 @@ module PactBroker
|
|
86
86
|
"Successfully published pacts"
|
87
87
|
end
|
88
88
|
else
|
89
|
-
|
89
|
+
if response_entity.notices
|
90
|
+
PactBroker::Client::ColorizeNotices.call(response_entity.notices.collect{ |n| OpenStruct.new(n) } )
|
91
|
+
else
|
92
|
+
::Term::ANSIColor.red(response_entity.response.raw_body)
|
93
|
+
end
|
90
94
|
end
|
91
95
|
end.join("\n")
|
92
96
|
end
|
@@ -50,7 +50,7 @@ module PactBroker
|
|
50
50
|
return error_result(CREATING_WEBHOOK_WITH_UUID_NOT_SUPPORTED)
|
51
51
|
end
|
52
52
|
else
|
53
|
-
webhook_entity = index_entity._link("pb:webhooks").post(request_body_with_optional_consumer_and_provider)
|
53
|
+
webhook_entity = index_entity._link!("pb:webhooks").post(request_body_with_optional_consumer_and_provider)
|
54
54
|
end
|
55
55
|
|
56
56
|
if webhook_entity.response.status == 405
|
data/pact-broker-client.gemspec
CHANGED
@@ -8,10 +8,10 @@ Gem::Specification.new do |gem|
|
|
8
8
|
gem.name = "pact_broker-client"
|
9
9
|
gem.version = PactBroker::Client::VERSION
|
10
10
|
gem.authors = ["Beth Skurrie"]
|
11
|
-
gem.email = ["
|
12
|
-
gem.description = %q{Client for the Pact Broker. Publish, retrieve and query pacts and verification results.}
|
11
|
+
gem.email = ["beth@bethesque.com"]
|
12
|
+
gem.description = %q{Client for the Pact Broker. Publish, retrieve and query pacts and verification results. Manage webhooks and environments.}
|
13
13
|
gem.summary = %q{See description}
|
14
|
-
gem.homepage = "https://github.com/
|
14
|
+
gem.homepage = "https://github.com/pact-foundation/pact_broker-client.git"
|
15
15
|
|
16
16
|
gem.required_ruby_version = '>= 2.0'
|
17
17
|
|
@@ -33,6 +33,6 @@ Gem::Specification.new do |gem|
|
|
33
33
|
gem.add_development_dependency 'conventional-changelog', '~>1.3'
|
34
34
|
gem.add_development_dependency 'pact', '~> 1.16'
|
35
35
|
gem.add_development_dependency 'pact-support', '~> 1.16'
|
36
|
-
gem.add_development_dependency 'approvals', '
|
36
|
+
gem.add_development_dependency 'approvals', '0.0.24'
|
37
37
|
gem.add_development_dependency 'rspec-its', '~> 1.3'
|
38
38
|
end
|
@@ -6,12 +6,12 @@ bundle exec bin/pact-broker can-i-deploy --pacticipant Foo --version 2 --to-envi
|
|
6
6
|
|
7
7
|
bundle exec bin/pact-broker record-deployment --pacticipant Foo --version 2 --environment test
|
8
8
|
bundle exec bin/pact-broker record-deployment --pacticipant Foo --version 2 --environment test --target customer-1
|
9
|
-
bundle exec bin/pact-broker record-deployment --pacticipant Foo --version 2 --environment test --
|
9
|
+
bundle exec bin/pact-broker record-deployment --pacticipant Foo --version 2 --environment test --application-instance customer-1
|
10
10
|
|
11
|
-
bundle exec bin/pact-broker record-undeployment --pacticipant Foo --environment test --
|
11
|
+
bundle exec bin/pact-broker record-undeployment --pacticipant Foo --environment test --application-instance customer-2
|
12
12
|
bundle exec bin/pact-broker record-undeployment --pacticipant Foo --environment test
|
13
13
|
bundle exec bin/pact-broker record-undeployment --pacticipant Foo --environment test
|
14
|
-
bundle exec bin/pact-broker record-undeployment --pacticipant Foo --environment test --
|
14
|
+
bundle exec bin/pact-broker record-undeployment --pacticipant Foo --environment test --application-instance customer-1
|
15
15
|
|
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
|
@@ -137,8 +137,12 @@ def reformat_docs(generated_thor_docs)
|
|
137
137
|
else
|
138
138
|
lines
|
139
139
|
end
|
140
|
-
|
141
|
-
|
140
|
+
end
|
141
|
+
.flatten
|
142
|
+
.collect { | line | line.gsub(/\s+$/, "") }
|
143
|
+
.join("\n")
|
144
|
+
.gsub("/go/", "/")
|
145
|
+
.gsub(File.basename(__FILE__), "pact-broker")
|
142
146
|
end
|
143
147
|
|
144
148
|
def update_readme(usage_docs)
|
@@ -69,6 +69,12 @@ module PactBroker
|
|
69
69
|
],[
|
70
70
|
["--version", "2"],
|
71
71
|
[{ pacticipant: nil, version: "2" }]
|
72
|
+
],[
|
73
|
+
["--pacticipant", "Foo", "--branch", "main"],
|
74
|
+
[{ pacticipant: "Foo", branch: "main", latest: true }]
|
75
|
+
],[
|
76
|
+
["--branch", "main"],
|
77
|
+
[{ pacticipant: nil, branch: "main", latest: true }]
|
72
78
|
]
|
73
79
|
]
|
74
80
|
|
@@ -44,8 +44,9 @@ module PactBroker
|
|
44
44
|
let(:record_deployment_body_hash) do
|
45
45
|
{ "some" => "response" }
|
46
46
|
end
|
47
|
+
let(:index_headers) { { "Content-Type" => "application/hal+json" } }
|
47
48
|
let!(:index_request) do
|
48
|
-
stub_request(:get, broker_base_url).to_return(status: 200, body: index_body_hash.to_json, headers:
|
49
|
+
stub_request(:get, broker_base_url).to_return(status: 200, body: index_body_hash.to_json, headers: index_headers )
|
49
50
|
end
|
50
51
|
let!(:version_request) do
|
51
52
|
stub_request(:get, broker_base_url + "/pacticipants/Foo/versions/1").to_return(status: 200, body: version_body_hash.to_json, headers: { "Content-Type" => "application/hal+json" } )
|
@@ -89,10 +90,20 @@ module PactBroker
|
|
89
90
|
"_links" => {}
|
90
91
|
}
|
91
92
|
end
|
93
|
+
|
92
94
|
it "returns an error response" do
|
93
95
|
expect(subject.success).to be false
|
94
96
|
expect(subject.message).to include "does not support"
|
95
97
|
end
|
98
|
+
|
99
|
+
context "when the server is Pactflow" do
|
100
|
+
let(:index_headers) { { "Content-Type" => "application/hal+json", "Pactflow-Something" => "foo" } }
|
101
|
+
|
102
|
+
it "returns an error response" do
|
103
|
+
expect(subject.message).to include "permission"
|
104
|
+
expect(subject.message).to include "does not support"
|
105
|
+
end
|
106
|
+
end
|
96
107
|
end
|
97
108
|
|
98
109
|
context "when the specified version does not exist" do
|
@@ -174,7 +174,7 @@ module PactBroker
|
|
174
174
|
|
175
175
|
context "when a target is provided and there is no deployed version with a matching target" do
|
176
176
|
let(:application_instance) { "wrong" }
|
177
|
-
let(:expected_message) { "Foo is not currently deployed to application instance 'wrong' in test environment. Please omit the application instance
|
177
|
+
let(:expected_message) { "Foo is not currently deployed to application instance 'wrong' in test environment. Please omit the application instance or specify one of the following application instances to record the undeployment from: customer-1." }
|
178
178
|
|
179
179
|
its(:success) { is_expected.to be false }
|
180
180
|
its(:message) { is_expected.to include expected_message }
|
@@ -112,7 +112,7 @@ module PactBroker::Client
|
|
112
112
|
|
113
113
|
context 'when the key does not exist' do
|
114
114
|
it 'raises an error' do
|
115
|
-
expect { subject._link!('foo') }.to raise_error RelationNotFoundError,
|
115
|
+
expect { subject._link!('foo') }.to raise_error RelationNotFoundError, /Could not find relation 'foo' in resource at http:\/\/pact/
|
116
116
|
end
|
117
117
|
end
|
118
118
|
end
|
@@ -5,6 +5,10 @@ require 'pact_broker/client/hal/http_client'
|
|
5
5
|
module PactBroker::Client
|
6
6
|
module Hal
|
7
7
|
describe Link do
|
8
|
+
before do
|
9
|
+
allow(response).to receive(:header).with("Content-Type").and_return(content_type)
|
10
|
+
end
|
11
|
+
|
8
12
|
let(:http_client) do
|
9
13
|
instance_double('PactBroker::Client::Hal::HttpClient', post: response)
|
10
14
|
end
|
@@ -33,6 +37,8 @@ module PactBroker::Client
|
|
33
37
|
}
|
34
38
|
end
|
35
39
|
|
40
|
+
let(:content_type) { nil }
|
41
|
+
|
36
42
|
subject { Link.new(attrs, http_client) }
|
37
43
|
|
38
44
|
before do
|
@@ -67,6 +73,15 @@ module PactBroker::Client
|
|
67
73
|
expect(PactBroker::Client::Hal::ErrorEntity).to receive(:new).with("http://foo/{bar}", response_body.to_json, http_client, response)
|
68
74
|
do_run
|
69
75
|
end
|
76
|
+
|
77
|
+
context "when a JSON error is returned" do
|
78
|
+
let(:content_type) { "application/json" }
|
79
|
+
|
80
|
+
it "parses the response body" do
|
81
|
+
expect(PactBroker::Client::Hal::ErrorEntity).to receive(:new).with("http://foo/{bar}", response_body, http_client, response)
|
82
|
+
do_run
|
83
|
+
end
|
84
|
+
end
|
70
85
|
end
|
71
86
|
end
|
72
87
|
|
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.59.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Beth Skurrie
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -174,22 +174,16 @@ dependencies:
|
|
174
174
|
name: approvals
|
175
175
|
requirement: !ruby/object:Gem::Requirement
|
176
176
|
requirements:
|
177
|
-
- -
|
177
|
+
- - '='
|
178
178
|
- !ruby/object:Gem::Version
|
179
179
|
version: 0.0.24
|
180
|
-
- - "<"
|
181
|
-
- !ruby/object:Gem::Version
|
182
|
-
version: 1.0.0
|
183
180
|
type: :development
|
184
181
|
prerelease: false
|
185
182
|
version_requirements: !ruby/object:Gem::Requirement
|
186
183
|
requirements:
|
187
|
-
- -
|
184
|
+
- - '='
|
188
185
|
- !ruby/object:Gem::Version
|
189
186
|
version: 0.0.24
|
190
|
-
- - "<"
|
191
|
-
- !ruby/object:Gem::Version
|
192
|
-
version: 1.0.0
|
193
187
|
- !ruby/object:Gem::Dependency
|
194
188
|
name: rspec-its
|
195
189
|
requirement: !ruby/object:Gem::Requirement
|
@@ -205,9 +199,9 @@ dependencies:
|
|
205
199
|
- !ruby/object:Gem::Version
|
206
200
|
version: '1.3'
|
207
201
|
description: Client for the Pact Broker. Publish, retrieve and query pacts and verification
|
208
|
-
results.
|
202
|
+
results. Manage webhooks and environments.
|
209
203
|
email:
|
210
|
-
-
|
204
|
+
- beth@bethesque.com
|
211
205
|
executables:
|
212
206
|
- pact-broker
|
213
207
|
extensions: []
|
@@ -319,6 +313,7 @@ files:
|
|
319
313
|
- lib/pact_broker_client.rb
|
320
314
|
- pact-broker-client.gemspec
|
321
315
|
- script/approve-all.sh
|
316
|
+
- script/can-i-deploy.sh
|
322
317
|
- script/create-pacticipant.sh
|
323
318
|
- script/publish-pact.sh
|
324
319
|
- script/record-deployment.sh
|
@@ -411,11 +406,11 @@ files:
|
|
411
406
|
- spec/support/pacts_latest_list.json
|
412
407
|
- spec/support/shared_context.rb
|
413
408
|
- tasks/pact.rake
|
414
|
-
homepage: https://github.com/
|
409
|
+
homepage: https://github.com/pact-foundation/pact_broker-client.git
|
415
410
|
licenses:
|
416
411
|
- MIT
|
417
412
|
metadata: {}
|
418
|
-
post_install_message:
|
413
|
+
post_install_message:
|
419
414
|
rdoc_options: []
|
420
415
|
require_paths:
|
421
416
|
- lib
|
@@ -430,8 +425,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
430
425
|
- !ruby/object:Gem::Version
|
431
426
|
version: '0'
|
432
427
|
requirements: []
|
433
|
-
rubygems_version: 3.
|
434
|
-
signing_key:
|
428
|
+
rubygems_version: 3.3.9
|
429
|
+
signing_key:
|
435
430
|
specification_version: 4
|
436
431
|
summary: See description
|
437
432
|
test_files:
|