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 +4 -4
- data/.github/workflows/release_gem.yml +35 -0
- data/.github/workflows/trigger_pact_docs_update.yml +6 -8
- data/Gemfile +4 -0
- data/appveyor.yml +1 -1
- data/lib/pact_broker/client/version.rb +1 -1
- data/pact-broker-client.gemspec +0 -1
- data/script/prepare-release.sh +11 -0
- data/script/release-gem.sh +23 -0
- data/script/release.sh +1 -1
- data/script/trigger-release.sh +15 -0
- metadata +5 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 711ccd7e9c78c20b610a6d6018bae6412dfaca133c5ddb9e2c2532d45b315d63
|
4
|
+
data.tar.gz: 21d2caf30f8967bb28bff27eb4db553a6a77681f01131507c0a42df9076e5a80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
11
|
+
build:
|
12
12
|
runs-on: ubuntu-latest
|
13
13
|
steps:
|
14
14
|
- name: Trigger docs.pact.io update workflow
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
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'
|
data/appveyor.yml
CHANGED
data/pact-broker-client.gemspec
CHANGED
@@ -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
|
data/script/release.sh
CHANGED
@@ -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.
|
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
|