pact_broker-client 1.26.0 → 1.27.8

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: fa13a2780e0b74313fcd7d9384f6ddc19efec60d30d9d4ba570d74dbd695e5e7
4
- data.tar.gz: 7f3f0cc727f250be1cf9944bbd688b8c093e0fe572af0db5cf2067ec65f7e513
3
+ metadata.gz: 23e0441c61c9046ba54f76e89c3dfaf221e97637d62303538c1c289b106dc345
4
+ data.tar.gz: 794404685c04e88fa5e46290c80e1b8c963771ef27f752b9b238c71094127654
5
5
  SHA512:
6
- metadata.gz: e4841315d2119ca788c0487ed62e26e3dd76dba04e6464a592ccd5a8cb958f1ca056116f98218b3fab49e79a130755270ed3893778f4f0a23c20991f86d6260c
7
- data.tar.gz: 20c244d83fda1e3ae2e71c87c8076d49b5628bc319d31ad150f005a777411c7a08f7ca0e24725ed98c6846ba8a88df5f449ce42dacfe2134ce429719fda0e930
6
+ metadata.gz: d8a1df20f8d02f0af9480b8b62e480d0c833cb3253f2188c5c378c8394b90d7f59e490626dc8d431b79195720658d99393a743e6ffb4080ccb30c94e3d4d18ae
7
+ data.tar.gz: e26f51a8f685ebda5c1eb80aecd1036f8c1cc0196f08b8c3232220bbce828d6f44fb26d05f051e809f9efe3734e9aa6e85173856072b8962836a80a2ebcf238a
@@ -0,0 +1,39 @@
1
+ name: Release gem
2
+
3
+ on:
4
+ repository_dispatch:
5
+ types:
6
+ - release-patch
7
+
8
+ jobs:
9
+ build:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v2
13
+ with:
14
+ fetch-depth: 0
15
+ - uses: actions/setup-ruby@v1
16
+ with:
17
+ ruby-version: '2.6'
18
+ - name: Install gems
19
+ run: |
20
+ gem install bundler -v 2.0.2
21
+ bundle install
22
+ - name: Configure git
23
+ run: |
24
+ git config user.email "beth@bethesque.com"
25
+ git config user.name "Beth Skurrie via Github Actions"
26
+ - name: Prepare release
27
+ run: script/prepare-release.sh
28
+ env:
29
+ INCREMENT: patch
30
+ - name: Release gem
31
+ run: |
32
+ gem -v
33
+ touch ~/.gem/credentials
34
+ chmod 0600 ~/.gem/credentials
35
+ script/release-gem.sh
36
+ env:
37
+ GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_API_KEY }}'
38
+ BUNDLE_GITHUB__COM: x-access-token:${{ secrets.GITHUB_TOKEN }}
39
+ #GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
@@ -0,0 +1,15 @@
1
+ name: Trigger release of the pact-cli Docker image
2
+ on:
3
+ release:
4
+ types: [created]
5
+
6
+ jobs:
7
+ build:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - name: Repository Dispatch
11
+ uses: peter-evans/repository-dispatch@v1
12
+ with:
13
+ token: ${{ secrets.GHTOKENFORPACTCLIRELEASE }}
14
+ repository: pact-foundation/pact-ruby-cli
15
+ event-type: gem-released
@@ -0,0 +1,19 @@
1
+ name: Trigger update to docs.pact.io
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ paths:
8
+ - '**.md'
9
+
10
+ jobs:
11
+ build:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - name: Trigger docs.pact.io update workflow
15
+ uses: peter-evans/repository-dispatch@v1
16
+ with:
17
+ token: ${{ secrets.GHTOKENFORTRIGGERINGPACTDOCSUPDATE }}
18
+ repository: pact-foundation/docs.pact.io
19
+ event-type: pact-broker-client-docs-updated
@@ -1,3 +1,23 @@
1
+ <a name="v1.27.1"></a>
2
+ ### v1.27.1 (2020-07-10)
3
+
4
+
5
+ #### Features
6
+
7
+ * **deps**
8
+ * this isn't really a feature, but I want to test the release workflow ([29a7b72](/../../commit/29a7b72))
9
+
10
+
11
+ <a name="v1.27.0"></a>
12
+ ### v1.27.0 (2020-05-09)
13
+
14
+
15
+ #### Features
16
+
17
+ * add BITBUCKET_BRANCH to list of known branch variables (#69) ([d1dc088](/../../commit/d1dc088))
18
+ * add list-latest-pact-versions command ([ed45d58](/../../commit/ed45d58))
19
+
20
+
1
21
  <a name="v1.26.0"></a>
2
22
  ### v1.26.0 (2020-04-17)
3
23
 
data/Gemfile CHANGED
@@ -4,4 +4,13 @@ gemspec
4
4
 
5
5
  # Not sure why jruby on Travis fails saying rake is not part of the bundle,
6
6
  # even thought it's in the development dependencies. Trying it here.
7
- gem 'rake', '~> 10.0.3'
7
+ gem 'rake', '~> 13.0'
8
+
9
+ group :release do
10
+ gem 'bump', git: 'https://github.com/bethesque/bump.git'
11
+ end
12
+
13
+ if ENV['X_PACT_DEVELOPMENT'] == 'true'
14
+ gem 'pact-mock_service', path: '../pact-mock_service'
15
+ gem 'pact-support', path: '../pact-support'
16
+ end
data/README.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # Pact Broker Client
2
2
 
3
- A client for the Pact Broker. Publishes pacts to, and retrieves pacts from, a Pact Broker. The functionality is available via a CLI, or via Ruby Rake tasks. You can also use the [Pact CLI Docker image](https://hub.docker.com/r/pactfoundation/pact-cli).
3
+ A client for the Pact Broker. Publishes and retrieves pacts, verification results, pacticipants, pacticipant versions and tags. The functionality is available via a CLI, or via Ruby Rake tasks. You can also use the [Pact CLI Docker image](https://hub.docker.com/r/pactfoundation/pact-cli).
4
4
 
5
5
  [![Build Status](https://travis-ci.org/pact-foundation/pact_broker-client.svg?branch=master)](https://travis-ci.org/pact-foundation/pact_broker-client)
6
6
 
7
+ ![Trigger update to docs.pact.io](https://github.com/pact-foundation/pact_broker-client/workflows/Trigger%20update%20to%20docs.pact.io/badge.svg)
8
+
7
9
  ## Installation
8
10
 
9
11
  ### CLI
@@ -345,6 +347,5 @@ end
345
347
  bundle exec rake pact:publish
346
348
  ```
347
349
 
348
- [wiki-tags]: https://github.com/pact-foundation/pact_broker/wiki/Using-tags
349
350
  [pact-ruby-standalone]: https://github.com/pact-foundation/pact-ruby-standalone/releases
350
- [docker]: https://cloud.docker.com/u/pactfoundation/repository/docker/pactfoundation/pact-cli
351
+ [docker]: https://hub.docker.com/r/pactfoundation/pact-cli
@@ -6,7 +6,7 @@ build: off
6
6
 
7
7
  install:
8
8
  - set PATH=C:\Ruby22\bin;%PATH%
9
- - bundle install
9
+ - bundle install --without release
10
10
 
11
11
  before_test:
12
12
  - ruby -v
@@ -114,7 +114,7 @@ Upon receiving **a request for the compatibility matrix for a pacticipant that d
114
114
  {
115
115
  "method": "get",
116
116
  "path": "/matrix",
117
- "query": "q[][pacticipant]=Wiffle&q[][version]=1.2.3&q[][pacticipant]=Meep&q[][version]=9.9.9&latestby=cvpv"
117
+ "query": "q%5B%5D%5Bpacticipant%5D=Wiffle&q%5B%5D%5Bversion%5D=1.2.3&q%5B%5D%5Bpacticipant%5D=Meep&q%5B%5D%5Bversion%5D=9.9.9&latestby=cvpv"
118
118
  }
119
119
  ```
120
120
  Pact Broker will respond with:
@@ -137,7 +137,7 @@ Given **the pact for Foo version 1.2.3 and 1.2.4 has been verified by Bar versio
137
137
  {
138
138
  "method": "get",
139
139
  "path": "/matrix",
140
- "query": "q[][pacticipant]=Foo&q[][pacticipant]=Bar&latestby=cvpv"
140
+ "query": "q%5B%5D%5Bpacticipant%5D=Foo&q%5B%5D%5Bpacticipant%5D=Bar&latestby=cvpv"
141
141
  }
142
142
  ```
143
143
  Pact Broker will respond with:
@@ -201,7 +201,7 @@ Given **the pact for Foo Thing version 1.2.3 has been verified by Bar version 4.
201
201
  {
202
202
  "method": "get",
203
203
  "path": "/matrix",
204
- "query": "q[][pacticipant]=Foo%20Thing&q[][version]=1.2.3&q[][pacticipant]=Bar&q[][version]=4.5.6&latestby=cvpv"
204
+ "query": "q%5B%5D%5Bpacticipant%5D=Foo%20Thing&q%5B%5D%5Bversion%5D=1.2.3&q%5B%5D%5Bpacticipant%5D=Bar&q%5B%5D%5Bversion%5D=4.5.6&latestby=cvpv"
205
205
  }
206
206
  ```
207
207
  Pact Broker will respond with:
@@ -249,7 +249,7 @@ Given **the pact for Foo version 1.2.3 has been verified by Bar version 4.5.6**,
249
249
  {
250
250
  "method": "get",
251
251
  "path": "/matrix",
252
- "query": "q[][pacticipant]=Foo&q[][version]=1.2.3&q[][pacticipant]=Bar&q[][version]=4.5.6&latestby=cvpv"
252
+ "query": "q%5B%5D%5Bpacticipant%5D=Foo&q%5B%5D%5Bversion%5D=1.2.3&q%5B%5D%5Bpacticipant%5D=Bar&q%5B%5D%5Bversion%5D=4.5.6&latestby=cvpv"
253
253
  }
254
254
  ```
255
255
  Pact Broker will respond with:
@@ -297,7 +297,7 @@ Given **the pact for Foo version 1.2.3 has been successfully verified by Bar ver
297
297
  {
298
298
  "method": "get",
299
299
  "path": "/matrix",
300
- "query": "q[][pacticipant]=Foo&q[][version]=1.2.3&q[][pacticipant]=Bar&q[][latest]=true&q[][tag]=prod&latestby=cvpv"
300
+ "query": "q%5B%5D%5Bpacticipant%5D=Foo&q%5B%5D%5Bversion%5D=1.2.3&q%5B%5D%5Bpacticipant%5D=Bar&q%5B%5D%5Blatest%5D=true&q%5B%5D%5Btag%5D=prod&latestby=cvpv"
301
301
  }
302
302
  ```
303
303
  Pact Broker will respond with:
@@ -345,7 +345,7 @@ Given **the pact for Foo version 1.2.3 has been successfully verified by Bar ver
345
345
  {
346
346
  "method": "get",
347
347
  "path": "/matrix",
348
- "query": "q[][pacticipant]=Foo&q[][version]=1.2.3&latestby=cvp&latest=true&tag=prod"
348
+ "query": "q%5B%5D%5Bpacticipant%5D=Foo&q%5B%5D%5Bversion%5D=1.2.3&latestby=cvp&latest=true&tag=prod"
349
349
  }
350
350
  ```
351
351
  Pact Broker will respond with:
@@ -381,7 +381,7 @@ Given **the pact for Foo version 1.2.3 has been successfully verified by Bar ver
381
381
  {
382
382
  "method": "get",
383
383
  "path": "/matrix",
384
- "query": "q[][pacticipant]=Foo&q[][version]=1.2.4&q[][pacticipant]=Bar&q[][latest]=true&latestby=cvpv"
384
+ "query": "q%5B%5D%5Bpacticipant%5D=Foo&q%5B%5D%5Bversion%5D=1.2.4&q%5B%5D%5Bpacticipant%5D=Bar&q%5B%5D%5Blatest%5D=true&latestby=cvpv"
385
385
  }
386
386
  ```
387
387
  Pact Broker will respond with:
@@ -429,7 +429,7 @@ Given **the pact for Foo version 1.2.3 has been verified by Bar version 4.5.6**,
429
429
  {
430
430
  "method": "get",
431
431
  "path": "/matrix",
432
- "query": "q[][pacticipant]=Foo&q[][version]=1.2.3&q[][pacticipant]=Bar&q[][version]=9.9.9&latestby=cvpv"
432
+ "query": "q%5B%5D%5Bpacticipant%5D=Foo&q%5B%5D%5Bversion%5D=1.2.3&q%5B%5D%5Bpacticipant%5D=Bar&q%5B%5D%5Bversion%5D=9.9.9&latestby=cvpv"
433
433
  }
434
434
  ```
435
435
  Pact Broker will respond with:
@@ -452,7 +452,7 @@ Given **the pact for Foo version 1.2.3 has been verified by Bar version 4.5.6 an
452
452
  {
453
453
  "method": "get",
454
454
  "path": "/matrix",
455
- "query": "q[][pacticipant]=Foo&q[][version]=1.2.3&latestby=cvp&latest=true"
455
+ "query": "q%5B%5D%5Bpacticipant%5D=Foo&q%5B%5D%5Bversion%5D=1.2.3&latestby=cvp&latest=true"
456
456
  }
457
457
  ```
458
458
  Pact Broker will respond with:
@@ -703,7 +703,7 @@ Given **the pact for Foo version 1.2.3 has been successfully verified by Bar ver
703
703
  {
704
704
  "method": "get",
705
705
  "path": "/matrix",
706
- "query": "q[][pacticipant]=Foo&q[][pacticipant]=Bar&latestby=cvpv&success[]=true"
706
+ "query": "q%5B%5D%5Bpacticipant%5D=Foo&q%5B%5D%5Bpacticipant%5D=Bar&latestby=cvpv&success%5B%5D=true"
707
707
  }
708
708
  ```
709
709
  Pact Broker will respond with:
@@ -157,6 +157,17 @@ module PactBroker
157
157
  require 'pact_broker/client/pacticipants/create'
158
158
  result = PactBroker::Client::Pacticipants2::Create.call({ name: options.name, repository_url: options.repository_url }, options.broker_base_url, pact_broker_client_options)
159
159
  $stdout.puts result.message
160
+ exit(1) unless result.success
161
+ end
162
+
163
+ desc 'list-latest-pact-versions', 'List the latest pact for each integration'
164
+ shared_authentication_options_for_pact_broker
165
+ method_option :output, aliases: "-o", desc: "json or table", default: 'table'
166
+ def list_latest_pact_versions(*required_but_ignored)
167
+ require 'pact_broker/client/pacts/list_latest_versions'
168
+ result = PactBroker::Client::Pacts::ListLatestVersions.call(options.broker_base_url, options.output, pact_broker_client_options)
169
+ $stdout.puts result.message
170
+ exit(1) unless result.success
160
171
  end
161
172
 
162
173
  ignored_and_hidden_potential_options_from_environment_variables
@@ -11,6 +11,7 @@ APPVEYOR_REPO_COMMIT APPVEYOR_REPO_BRANCH https://www.appveyor.com/docs/en
11
11
  CI_COMMIT_REF_NAME https://docs.gitlab.com/ee/ci/variables/predefined_variables.html
12
12
  CI_BRANCH CI_COMMIT_ID https://documentation.codeship.com/pro/builds-and-configuration/environment-variables/
13
13
  bamboo.repository.git.branch https://confluence.atlassian.com/bamboo/bamboo-variables-289277087.html
14
+ BITBUCKET_BRANCH https://confluence.atlassian.com/bitbucket/variables-in-pipelines-794502608.html
14
15
 
15
16
  =end
16
17
 
@@ -19,7 +20,7 @@ module PactBroker
19
20
  module Client
20
21
  module Git
21
22
  COMMAND = 'git name-rev --name-only HEAD'.freeze
22
- BRANCH_ENV_VAR_NAMES = %w{BUILDKITE_BRANCH CIRCLE_BRANCH TRAVIS_BRANCH GIT_BRANCH GIT_LOCAL_BRANCH APPVEYOR_REPO_BRANCH CI_COMMIT_REF_NAME}.freeze
23
+ BRANCH_ENV_VAR_NAMES = %w{BUILDKITE_BRANCH CIRCLE_BRANCH TRAVIS_BRANCH GIT_BRANCH GIT_LOCAL_BRANCH APPVEYOR_REPO_BRANCH CI_COMMIT_REF_NAME BITBUCKET_BRANCH}.freeze
23
24
 
24
25
  def self.branch
25
26
  find_branch_from_env_vars || branch_from_git_command
@@ -0,0 +1,65 @@
1
+ require 'pact_broker/client/hal'
2
+ require 'pact_broker/client/command_result'
3
+ require 'pact_broker/client/hal_client_methods'
4
+
5
+ module PactBroker
6
+ module Client
7
+ module Pacts
8
+ class ListLatestVersions
9
+
10
+ include HalClientMethods
11
+
12
+ def self.call(pact_broker_base_url, output, pact_broker_client_options)
13
+ new(pact_broker_base_url, output, pact_broker_client_options).call
14
+ end
15
+
16
+ def initialize(pact_broker_base_url, output, pact_broker_client_options)
17
+ @index_entry_point = create_index_entry_point(pact_broker_base_url, pact_broker_client_options)
18
+ @output = output
19
+ end
20
+
21
+ def call
22
+ message = if output == 'json'
23
+ versions_resource.response.body
24
+ else
25
+ to_text(versions)
26
+ end
27
+ PactBroker::Client::CommandResult.new(true, message)
28
+
29
+ rescue StandardError => e
30
+ PactBroker::Client::CommandResult.new(false, e.message)
31
+ end
32
+
33
+ private
34
+
35
+ attr_reader :index_entry_point, :output
36
+
37
+ def versions
38
+ versions_resource.pacts.collect do | pact |
39
+ OpenStruct.new(
40
+ consumer_name: pact['_embedded']['consumer']['name'],
41
+ provider_name: pact['_embedded']['provider']['name'],
42
+ consumer_version_number: pact['_embedded']['consumer']['_embedded']['version']['number'],
43
+ created_at: pact['createdAt']
44
+ )
45
+ end
46
+ end
47
+
48
+ def versions_resource
49
+ index_entry_point.get!._link('pb:latest-pact-versions').get!
50
+ end
51
+
52
+ def to_text(pacts)
53
+ require 'table_print'
54
+ options = [
55
+ { consumer_name: {display_name: 'consumer'} },
56
+ { consumer_version_number: {display_name: 'consumer_version'} },
57
+ { provider_name: {display_name: 'provider'} },
58
+ { created_at: {} }
59
+ ]
60
+ TablePrint::Printer.new(pacts, options).table_print
61
+ end
62
+ end
63
+ end
64
+ end
65
+ end
@@ -1,5 +1,5 @@
1
1
  module PactBroker
2
2
  module Client
3
- VERSION = '1.26.0'
3
+ VERSION = '1.27.8'
4
4
  end
5
5
  end
@@ -1,4 +1,3 @@
1
-
2
1
  require 'pact_broker/client/hal'
3
2
  require 'pact_broker/client/command_result'
4
3
 
@@ -21,16 +21,14 @@ Gem::Specification.new do |gem|
21
21
  gem.require_paths = ["lib"]
22
22
  gem.license = 'MIT'
23
23
 
24
- gem.add_runtime_dependency 'httparty'
25
- gem.add_runtime_dependency 'json'
26
- gem.add_runtime_dependency 'term-ansicolor'
24
+ gem.add_runtime_dependency 'httparty', '~>0.18'
25
+ gem.add_runtime_dependency 'term-ansicolor', '~> 1.7'
27
26
  gem.add_runtime_dependency 'table_print', '~> 1.5'
28
27
  gem.add_runtime_dependency 'thor', '~> 0.20'
29
- gem.add_runtime_dependency 'rake' #For FileList
28
+ gem.add_runtime_dependency 'rake', '~> 13.0' #For FileList
30
29
 
31
30
  gem.add_development_dependency 'fakefs', '~> 0.4'
32
31
  gem.add_development_dependency 'webmock', '~> 3.0'
33
32
  gem.add_development_dependency 'conventional-changelog', '~>1.3'
34
33
  gem.add_development_dependency 'pact', '~> 1.16'
35
- gem.add_development_dependency 'bump', '~> 0.5'
36
34
  end
@@ -0,0 +1,5 @@
1
+ puts "env: #{ENV["GEM_HOST_API_KEY"].chars.first}"
2
+
3
+ require 'rubygems/commands/push_command'
4
+ include Gem::GemcutterUtilities
5
+ puts "gemcutter: #{api_key.chars.first}"
@@ -0,0 +1,11 @@
1
+ #!/bin/sh
2
+ set -e
3
+
4
+ # bundle exec rake
5
+ increment=${INCREMENT:-patch}
6
+ bundle exec bump ${increment} --no-commit
7
+ bundle exec rake generate_changelog
8
+ version_file=$(bundle exec bump file --value-only)
9
+ version=$(bundle exec bump current --value-only)
10
+ git add CHANGELOG.md "${version_file}"
11
+ git commit -m "chore(release): version ${version}"
@@ -0,0 +1,23 @@
1
+ #!/bin/bash
2
+
3
+ # if [ -n "${GITHUB_ACTIONS}" ]; then
4
+ # : "${RUBYGEMS_API_KEY:?RUBYGEMS_API_KEY must be set}"
5
+ # : "${GITHUB_TOKEN:?GITHUB_TOKEN must be set}"
6
+
7
+ # echo "Setting up gem credentials..."
8
+ # set +x
9
+ # mkdir -p ~/.gem
10
+
11
+ # cat << EOF > ~/.gem/credentials
12
+ # ---
13
+ # :github: Bearer ${GITHUB_TOKEN}
14
+ # :rubygems_api_key: ${RUBYGEMS_API_KEY}
15
+ # EOF
16
+
17
+ # chmod 0600 ~/.gem/credentials
18
+ # set -x
19
+
20
+ # fi
21
+
22
+ echo "Running gem release task..."
23
+ bundle exec rake release
@@ -1,7 +1,7 @@
1
1
  #!/bin/sh
2
2
  set -e
3
3
 
4
- bundle exec rake
4
+ # bundle exec rake
5
5
  bundle exec bump ${1:-minor} --no-commit
6
6
  bundle exec rake generate_changelog
7
7
  git add CHANGELOG.md lib/pact_broker/client/version.rb
@@ -0,0 +1,15 @@
1
+ #!/bin/bash
2
+
3
+ output=$(curl -v -X POST https://api.github.com/repos/pact-foundation/pact_broker-client/dispatches \
4
+ -H 'Accept: application/vnd.github.everest-preview+json' \
5
+ -H "Authorization: Bearer $GITHUB_ACCESS_TOKEN" \
6
+ -d '{"event_type": "release-patch"}' 2>&1)
7
+
8
+ echo "$output" | sed "s/${GITHUB_ACCESS_TOKEN}/****/g"
9
+
10
+ if ! echo "${output}" | grep "HTTP\/1.1 204" > /dev/null; then
11
+ echo "$output" | sed "s/${GITHUB_ACCESS_TOKEN}/****/g"
12
+ echo "Failed to do the thing"
13
+ exit 1
14
+ fi
15
+
@@ -192,7 +192,7 @@
192
192
  "request": {
193
193
  "method": "get",
194
194
  "path": "/matrix",
195
- "query": "q[][pacticipant]=Foo&q[][version]=1.2.3&q[][pacticipant]=Bar&q[][version]=4.5.6&latestby=cvpv"
195
+ "query": "q%5B%5D%5Bpacticipant%5D=Foo&q%5B%5D%5Bversion%5D=1.2.3&q%5B%5D%5Bpacticipant%5D=Bar&q%5B%5D%5Bversion%5D=4.5.6&latestby=cvpv"
196
196
  },
197
197
  "response": {
198
198
  "status": 200,
@@ -242,7 +242,7 @@
242
242
  "request": {
243
243
  "method": "get",
244
244
  "path": "/matrix",
245
- "query": "q[][pacticipant]=Foo%20Thing&q[][version]=1.2.3&q[][pacticipant]=Bar&q[][version]=4.5.6&latestby=cvpv"
245
+ "query": "q%5B%5D%5Bpacticipant%5D=Foo%20Thing&q%5B%5D%5Bversion%5D=1.2.3&q%5B%5D%5Bpacticipant%5D=Bar&q%5B%5D%5Bversion%5D=4.5.6&latestby=cvpv"
246
246
  },
247
247
  "response": {
248
248
  "status": 200,
@@ -292,7 +292,7 @@
292
292
  "request": {
293
293
  "method": "get",
294
294
  "path": "/matrix",
295
- "query": "q[][pacticipant]=Foo&q[][version]=1.2.3&latestby=cvp&latest=true"
295
+ "query": "q%5B%5D%5Bpacticipant%5D=Foo&q%5B%5D%5Bversion%5D=1.2.3&latestby=cvp&latest=true"
296
296
  },
297
297
  "response": {
298
298
  "status": 200,
@@ -342,7 +342,7 @@
342
342
  "request": {
343
343
  "method": "get",
344
344
  "path": "/matrix",
345
- "query": "q[][pacticipant]=Foo&q[][version]=1.2.3&q[][pacticipant]=Bar&q[][version]=9.9.9&latestby=cvpv"
345
+ "query": "q%5B%5D%5Bpacticipant%5D=Foo&q%5B%5D%5Bversion%5D=1.2.3&q%5B%5D%5Bpacticipant%5D=Bar&q%5B%5D%5Bversion%5D=9.9.9&latestby=cvpv"
346
346
  },
347
347
  "response": {
348
348
  "status": 200,
@@ -366,7 +366,7 @@
366
366
  "request": {
367
367
  "method": "get",
368
368
  "path": "/matrix",
369
- "query": "q[][pacticipant]=Wiffle&q[][version]=1.2.3&q[][pacticipant]=Meep&q[][version]=9.9.9&latestby=cvpv"
369
+ "query": "q%5B%5D%5Bpacticipant%5D=Wiffle&q%5B%5D%5Bversion%5D=1.2.3&q%5B%5D%5Bpacticipant%5D=Meep&q%5B%5D%5Bversion%5D=9.9.9&latestby=cvpv"
370
370
  },
371
371
  "response": {
372
372
  "status": 400,
@@ -394,7 +394,7 @@
394
394
  "request": {
395
395
  "method": "get",
396
396
  "path": "/matrix",
397
- "query": "q[][pacticipant]=Foo&q[][pacticipant]=Bar&latestby=cvpv"
397
+ "query": "q%5B%5D%5Bpacticipant%5D=Foo&q%5B%5D%5Bpacticipant%5D=Bar&latestby=cvpv"
398
398
  },
399
399
  "response": {
400
400
  "status": 200,
@@ -463,7 +463,7 @@
463
463
  "request": {
464
464
  "method": "get",
465
465
  "path": "/matrix",
466
- "query": "q[][pacticipant]=Foo&q[][pacticipant]=Bar&latestby=cvpv&success[]=true"
466
+ "query": "q%5B%5D%5Bpacticipant%5D=Foo&q%5B%5D%5Bpacticipant%5D=Bar&latestby=cvpv&success%5B%5D=true"
467
467
  },
468
468
  "response": {
469
469
  "status": 200,
@@ -513,7 +513,7 @@
513
513
  "request": {
514
514
  "method": "get",
515
515
  "path": "/matrix",
516
- "query": "q[][pacticipant]=Foo&q[][version]=1.2.3&q[][pacticipant]=Bar&q[][latest]=true&q[][tag]=prod&latestby=cvpv"
516
+ "query": "q%5B%5D%5Bpacticipant%5D=Foo&q%5B%5D%5Bversion%5D=1.2.3&q%5B%5D%5Bpacticipant%5D=Bar&q%5B%5D%5Blatest%5D=true&q%5B%5D%5Btag%5D=prod&latestby=cvpv"
517
517
  },
518
518
  "response": {
519
519
  "status": 200,
@@ -563,7 +563,7 @@
563
563
  "request": {
564
564
  "method": "get",
565
565
  "path": "/matrix",
566
- "query": "q[][pacticipant]=Foo&q[][version]=1.2.4&q[][pacticipant]=Bar&q[][latest]=true&latestby=cvpv"
566
+ "query": "q%5B%5D%5Bpacticipant%5D=Foo&q%5B%5D%5Bversion%5D=1.2.4&q%5B%5D%5Bpacticipant%5D=Bar&q%5B%5D%5Blatest%5D=true&latestby=cvpv"
567
567
  },
568
568
  "response": {
569
569
  "status": 200,
@@ -613,7 +613,7 @@
613
613
  "request": {
614
614
  "method": "get",
615
615
  "path": "/matrix",
616
- "query": "q[][pacticipant]=Foo&q[][version]=1.2.3&latestby=cvp&latest=true&tag=prod"
616
+ "query": "q%5B%5D%5Bpacticipant%5D=Foo&q%5B%5D%5Bversion%5D=1.2.3&latestby=cvp&latest=true&tag=prod"
617
617
  },
618
618
  "response": {
619
619
  "status": 200,
@@ -19,7 +19,7 @@ module PactBroker::Client
19
19
  with(
20
20
  method: :get,
21
21
  path: "/matrix",
22
- query: "q[][pacticipant]=Foo&q[][version]=1.2.3&q[][pacticipant]=Bar&q[][version]=4.5.6&latestby=cvpv"
22
+ query: "q%5B%5D%5Bpacticipant%5D=Foo&q%5B%5D%5Bversion%5D=1.2.3&q%5B%5D%5Bpacticipant%5D=Bar&q%5B%5D%5Bversion%5D=4.5.6&latestby=cvpv"
23
23
  ).
24
24
  will_respond_with(
25
25
  status: 200,
@@ -42,7 +42,7 @@ module PactBroker::Client
42
42
  with(
43
43
  method: :get,
44
44
  path: "/matrix",
45
- query: "q[][pacticipant]=Foo%20Thing&q[][version]=1.2.3&q[][pacticipant]=Bar&q[][version]=4.5.6&latestby=cvpv"
45
+ query: "q%5B%5D%5Bpacticipant%5D=Foo%20Thing&q%5B%5D%5Bversion%5D=1.2.3&q%5B%5D%5Bpacticipant%5D=Bar&q%5B%5D%5Bversion%5D=4.5.6&latestby=cvpv"
46
46
  ).
47
47
  will_respond_with(
48
48
  status: 200,
@@ -67,7 +67,7 @@ module PactBroker::Client
67
67
  with(
68
68
  method: :get,
69
69
  path: "/matrix",
70
- query: "q[][pacticipant]=Foo&q[][version]=1.2.3&latestby=cvp&latest=true"
70
+ query: "q%5B%5D%5Bpacticipant%5D=Foo&q%5B%5D%5Bversion%5D=1.2.3&latestby=cvp&latest=true"
71
71
  ).
72
72
  will_respond_with(
73
73
  status: 200,
@@ -92,7 +92,7 @@ module PactBroker::Client
92
92
  with(
93
93
  method: :get,
94
94
  path: "/matrix",
95
- query: "q[][pacticipant]=Foo&q[][version]=1.2.3&q[][pacticipant]=Bar&q[][version]=9.9.9&latestby=cvpv"
95
+ query: "q%5B%5D%5Bpacticipant%5D=Foo&q%5B%5D%5Bversion%5D=1.2.3&q%5B%5D%5Bpacticipant%5D=Bar&q%5B%5D%5Bversion%5D=9.9.9&latestby=cvpv"
96
96
  ).
97
97
  will_respond_with(
98
98
  status: 200,
@@ -119,7 +119,7 @@ module PactBroker::Client
119
119
  with(
120
120
  method: :get,
121
121
  path: "/matrix",
122
- query: "q[][pacticipant]=Wiffle&q[][version]=1.2.3&q[][pacticipant]=Meep&q[][version]=9.9.9&latestby=cvpv"
122
+ query: "q%5B%5D%5Bpacticipant%5D=Wiffle&q%5B%5D%5Bversion%5D=1.2.3&q%5B%5D%5Bpacticipant%5D=Meep&q%5B%5D%5Bversion%5D=9.9.9&latestby=cvpv"
123
123
  ).
124
124
  will_respond_with(
125
125
  status: 400,
@@ -147,7 +147,7 @@ module PactBroker::Client
147
147
  with(
148
148
  method: :get,
149
149
  path: "/matrix",
150
- query: "q[][pacticipant]=Foo&q[][pacticipant]=Bar&latestby=cvpv"
150
+ query: "q%5B%5D%5Bpacticipant%5D=Foo&q%5B%5D%5Bpacticipant%5D=Bar&latestby=cvpv"
151
151
  ).
152
152
  will_respond_with(
153
153
  status: 200,
@@ -174,7 +174,7 @@ module PactBroker::Client
174
174
  with(
175
175
  method: :get,
176
176
  path: "/matrix",
177
- query: "q[][pacticipant]=Foo&q[][pacticipant]=Bar&latestby=cvpv&success[]=true"
177
+ query: "q%5B%5D%5Bpacticipant%5D=Foo&q%5B%5D%5Bpacticipant%5D=Bar&latestby=cvpv&success%5B%5D=true"
178
178
  ).
179
179
  will_respond_with(
180
180
  status: 200,
@@ -200,7 +200,7 @@ module PactBroker::Client
200
200
  with(
201
201
  method: :get,
202
202
  path: "/matrix",
203
- query: "q[][pacticipant]=Foo&q[][version]=1.2.3&q[][pacticipant]=Bar&q[][latest]=true&q[][tag]=prod&latestby=cvpv"
203
+ query: "q%5B%5D%5Bpacticipant%5D=Foo&q%5B%5D%5Bversion%5D=1.2.3&q%5B%5D%5Bpacticipant%5D=Bar&q%5B%5D%5Blatest%5D=true&q%5B%5D%5Btag%5D=prod&latestby=cvpv"
204
204
  ).
205
205
  will_respond_with(
206
206
  status: 200,
@@ -226,7 +226,7 @@ module PactBroker::Client
226
226
  with(
227
227
  method: :get,
228
228
  path: "/matrix",
229
- query: "q[][pacticipant]=Foo&q[][version]=1.2.4&q[][pacticipant]=Bar&q[][latest]=true&latestby=cvpv"
229
+ query: "q%5B%5D%5Bpacticipant%5D=Foo&q%5B%5D%5Bversion%5D=1.2.4&q%5B%5D%5Bpacticipant%5D=Bar&q%5B%5D%5Blatest%5D=true&latestby=cvpv"
230
230
  ).
231
231
  will_respond_with(
232
232
  status: 200,
@@ -252,7 +252,7 @@ module PactBroker::Client
252
252
  with(
253
253
  method: :get,
254
254
  path: "/matrix",
255
- query: "q[][pacticipant]=Foo&q[][version]=1.2.3&latestby=cvp&latest=true&tag=prod"
255
+ query: "q%5B%5D%5Bpacticipant%5D=Foo&q%5B%5D%5Bversion%5D=1.2.3&latestby=cvp&latest=true&tag=prod"
256
256
  ).
257
257
  will_respond_with(
258
258
  status: 200,
metadata CHANGED
@@ -1,57 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pact_broker-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.26.0
4
+ version: 1.27.8
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-04-16 00:00:00.000000000 Z
11
+ date: 2020-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: json
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
17
+ - - "~>"
32
18
  - !ruby/object:Gem::Version
33
- version: '0'
19
+ version: '0.18'
34
20
  type: :runtime
35
21
  prerelease: false
36
22
  version_requirements: !ruby/object:Gem::Requirement
37
23
  requirements:
38
- - - ">="
24
+ - - "~>"
39
25
  - !ruby/object:Gem::Version
40
- version: '0'
26
+ version: '0.18'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: term-ansicolor
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
- - - ">="
31
+ - - "~>"
46
32
  - !ruby/object:Gem::Version
47
- version: '0'
33
+ version: '1.7'
48
34
  type: :runtime
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
- - - ">="
38
+ - - "~>"
53
39
  - !ruby/object:Gem::Version
54
- version: '0'
40
+ version: '1.7'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: table_print
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -84,16 +70,16 @@ dependencies:
84
70
  name: rake
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
- - - ">="
73
+ - - "~>"
88
74
  - !ruby/object:Gem::Version
89
- version: '0'
75
+ version: '13.0'
90
76
  type: :runtime
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
- - - ">="
80
+ - - "~>"
95
81
  - !ruby/object:Gem::Version
96
- version: '0'
82
+ version: '13.0'
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: fakefs
99
85
  requirement: !ruby/object:Gem::Requirement
@@ -150,20 +136,6 @@ dependencies:
150
136
  - - "~>"
151
137
  - !ruby/object:Gem::Version
152
138
  version: '1.16'
153
- - !ruby/object:Gem::Dependency
154
- name: bump
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: '0.5'
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - "~>"
165
- - !ruby/object:Gem::Version
166
- version: '0.5'
167
139
  description: Client for the Pact Broker. Publish, retrieve and query pacts and verification
168
140
  results.
169
141
  email:
@@ -173,6 +145,9 @@ executables:
173
145
  extensions: []
174
146
  extra_rdoc_files: []
175
147
  files:
148
+ - ".github/workflows/release_gem.yml"
149
+ - ".github/workflows/trigger_pact_cli_release.yml"
150
+ - ".github/workflows/trigger_pact_docs_update.yml"
176
151
  - ".gitignore"
177
152
  - ".rspec"
178
153
  - ".travis.yml"
@@ -226,6 +201,7 @@ files:
226
201
  - lib/pact_broker/client/pacticipants.rb
227
202
  - lib/pact_broker/client/pacticipants/create.rb
228
203
  - lib/pact_broker/client/pacts.rb
204
+ - lib/pact_broker/client/pacts/list_latest_versions.rb
229
205
  - lib/pact_broker/client/publish_pacts.rb
230
206
  - lib/pact_broker/client/retry.rb
231
207
  - lib/pact_broker/client/tasks.rb
@@ -240,9 +216,13 @@ files:
240
216
  - lib/pact_broker/client/webhooks/test.rb
241
217
  - lib/pact_broker_client.rb
242
218
  - pact-broker-client.gemspec
219
+ - script/api_key_test.rb
243
220
  - script/generate-cli-usage.sh
221
+ - script/prepare-release.sh
244
222
  - script/publish-pact.sh
223
+ - script/release-gem.sh
245
224
  - script/release.sh
225
+ - script/trigger-release.sh
246
226
  - spec/integration/can_i_deploy_spec.rb
247
227
  - spec/integration/create_version_tag_spec.rb
248
228
  - spec/lib/pact_broker/client/base_client_spec.rb