pact_broker-client 1.27.2 → 1.27.4

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: 6a3ac52aded8ce1f6e2c2118184d9aa1a63572a9623b22e396eec44f27b8499c
4
- data.tar.gz: e91adf448e4e68a8e5abb1f1707009d2b8eb77e19c0a8a2ead0a3c78edceb4f7
3
+ metadata.gz: 711ccd7e9c78c20b610a6d6018bae6412dfaca133c5ddb9e2c2532d45b315d63
4
+ data.tar.gz: 21d2caf30f8967bb28bff27eb4db553a6a77681f01131507c0a42df9076e5a80
5
5
  SHA512:
6
- metadata.gz: d60c7c13b4519e8cb695a4f57faf543b7e735efd30aed66c7308d42c5173d3412fda37969b00361f034e88e789b0d82dc16a6c94b4f50bedaa674e1553897184
7
- data.tar.gz: 507e44ca2ba9e9283d3b655d11992263fe4a8dc82585b723e6f4f51869ee392b78ef23e4e61a348474dde53af694bb80961e2bff413fab7d90617ecadc240be0
6
+ metadata.gz: 1b46459fd5fb59d335a647e6000272f346f4a8b44845644249d7e870b0a54a60fe9daa0071c1dadcc260967395367ee688123021bfa9a7eb988d12d011d7842f
7
+ data.tar.gz: 368645a3cf3f8890ec85e158dd2406ebeb7e98fcd6be608fe802357ba34ab53192e6312774a05788d93caea23b3d92ec54df7cc60740ffa9b607b83f4c5a1204
@@ -0,0 +1,35 @@
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: script/release-gem.sh
32
+ env:
33
+ BUNDLE_GEM__PUSH_KEY: '${{ secrets.RUBYGEMS_API_KEY }}'
34
+ BUNDLE_GITHUB__COM: x-access-token:${{ secrets.GITHUB_TOKEN }}
35
+ GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
@@ -8,14 +8,12 @@ on:
8
8
  - '**.md'
9
9
 
10
10
  jobs:
11
- run:
11
+ build:
12
12
  runs-on: ubuntu-latest
13
13
  steps:
14
14
  - name: Trigger docs.pact.io update workflow
15
- run: |
16
- curl -X POST https://api.github.com/repos/pact-foundation/docs.pact.io/dispatches \
17
- -H 'Accept: application/vnd.github.everest-preview+json' \
18
- -H "Authorization: Bearer $GITHUB_TOKEN" \
19
- -d '{"event_type": "pact-broker-client-docs-updated"}'
20
- env:
21
- GITHUB_TOKEN: ${{ secrets.GHTOKENFORTRIGGERINGPACTDOCSUPDATE }}
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
data/Gemfile CHANGED
@@ -6,6 +6,10 @@ gemspec
6
6
  # even thought it's in the development dependencies. Trying it here.
7
7
  gem 'rake', '~> 13.0'
8
8
 
9
+ group :release do
10
+ gem 'bump', git: 'https://github.com/bethesque/bump.git'
11
+ end
12
+
9
13
  if ENV['X_PACT_DEVELOPMENT'] == 'true'
10
14
  gem 'pact-mock_service', path: '../pact-mock_service'
11
15
  gem 'pact-support', path: '../pact-support'
@@ -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
@@ -1,5 +1,5 @@
1
1
  module PactBroker
2
2
  module Client
3
- VERSION = '1.27.2'
3
+ VERSION = '1.27.4'
4
4
  end
5
5
  end
@@ -31,5 +31,4 @@ 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 'bump', '~> 0.5'
35
34
  end
@@ -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
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pact_broker-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.27.2
4
+ version: 1.27.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Beth Skurrie
@@ -136,20 +136,6 @@ dependencies:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: '1.16'
139
- - !ruby/object:Gem::Dependency
140
- name: bump
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: '0.5'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: '0.5'
153
139
  description: Client for the Pact Broker. Publish, retrieve and query pacts and verification
154
140
  results.
155
141
  email:
@@ -159,6 +145,7 @@ executables:
159
145
  extensions: []
160
146
  extra_rdoc_files: []
161
147
  files:
148
+ - ".github/workflows/release_gem.yml"
162
149
  - ".github/workflows/trigger_pact_cli_release.yml"
163
150
  - ".github/workflows/trigger_pact_docs_update.yml"
164
151
  - ".gitignore"
@@ -230,8 +217,11 @@ files:
230
217
  - lib/pact_broker_client.rb
231
218
  - pact-broker-client.gemspec
232
219
  - script/generate-cli-usage.sh
220
+ - script/prepare-release.sh
233
221
  - script/publish-pact.sh
222
+ - script/release-gem.sh
234
223
  - script/release.sh
224
+ - script/trigger-release.sh
235
225
  - spec/integration/can_i_deploy_spec.rb
236
226
  - spec/integration/create_version_tag_spec.rb
237
227
  - spec/lib/pact_broker/client/base_client_spec.rb