pact_broker-client 1.27.10 → 1.27.19
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 +16 -3
- data/.github/workflows/release_gem_2.yml +17 -0
- data/CHANGELOG.md +12 -0
- data/Dockerfile +15 -0
- data/Rakefile +5 -1
- data/action.yml +6 -0
- data/appveyor.yml +4 -4
- data/lib/pact_broker/client/version.rb +1 -1
- data/release-image/entrypoint.sh +3 -0
- data/release-image/release/Gemfile +5 -0
- data/release-image/release/Rakefile +5 -0
- data/release-image/usr/local/bin/prepare-release +21 -0
- data/release-image/usr/local/bin/release-gem +24 -0
- data/script/prepare-github-release.sh +7 -0
- data/script/prepare-release.sh +1 -0
- metadata +11 -3
- data/.github/workflows/trigger_pact_cli_release.yml +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8d325fb9f9da47a380c90d01e81033fe7c014a5ac3e78eefbc93afbd4f20bac
|
4
|
+
data.tar.gz: ebf55f2492469adba2f5ee014bba0cb09147fb93ef4113889f04b2474896ce39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0dae1436e312f323a6052f1107a3daaeda4378736a59a262a8a55fce179c1636e64a2cf28e36e1262a97175fb6d0a5ceab8553813a08039e8f702d88c682a2bd
|
7
|
+
data.tar.gz: 808efd1ce14fc73b7e11cf40ebc42de9c684fce058991bb906eb45ca0884774510905a0df81672912b520259b23f637885f287fa1e47efc7f2dabb212fca9678
|
@@ -31,9 +31,22 @@ jobs:
|
|
31
31
|
- name: Release gem
|
32
32
|
run: |
|
33
33
|
touch ~/.gem/credentials
|
34
|
-
# chmod 0600 ~/.gem/credentials
|
35
34
|
script/release-gem.sh
|
36
35
|
env:
|
37
36
|
GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_API_KEY }}'
|
38
|
-
|
39
|
-
|
37
|
+
- name: Prepare Github Release
|
38
|
+
run: script/prepare-github-release.sh
|
39
|
+
- name: Create Github Release
|
40
|
+
uses: actions/create-release@v1
|
41
|
+
env:
|
42
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
43
|
+
with:
|
44
|
+
tag_name: ${{ env.TAG }}
|
45
|
+
release_name: ${{ env.TAG }}
|
46
|
+
body_path: tmp/RELEASE_NOTES.md
|
47
|
+
- name: Trigger release of pact-cli Docker image
|
48
|
+
uses: peter-evans/repository-dispatch@v1
|
49
|
+
with:
|
50
|
+
token: ${{ secrets.GHTOKENFORPACTCLIRELEASE }}
|
51
|
+
repository: pact-foundation/pact-ruby-cli
|
52
|
+
event-type: gem-released
|
@@ -0,0 +1,17 @@
|
|
1
|
+
name: Release gem 2
|
2
|
+
|
3
|
+
on:
|
4
|
+
repository_dispatch:
|
5
|
+
types:
|
6
|
+
- release-patch-2
|
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: pact-foundation/release-gem@master
|
16
|
+
env:
|
17
|
+
GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_API_KEY }}'
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
<a name="v1.27.14"></a>
|
2
|
+
### v1.27.14 (2020-07-11)
|
3
|
+
|
4
|
+
|
5
|
+
#### Bug Fixes
|
6
|
+
|
7
|
+
* not a real fix, just testing release notes ([1fabb8b](/../../commit/1fabb8b))
|
8
|
+
|
9
|
+
|
10
|
+
<a name="v1.27.13"></a>
|
11
|
+
### v1.27.13 (2020-07-11)
|
12
|
+
|
1
13
|
<a name="v1.27.1"></a>
|
2
14
|
### v1.27.1 (2020-07-10)
|
3
15
|
|
data/Dockerfile
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
FROM ruby:2.6-alpine3.12
|
2
|
+
|
3
|
+
RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing hub
|
4
|
+
RUN apk add --update --no-cache git openssh bash
|
5
|
+
RUN gem update --system
|
6
|
+
|
7
|
+
RUN mkdir -p home
|
8
|
+
WORKDIR home
|
9
|
+
ADD release-image /
|
10
|
+
ENV BUNDLE_GEMFILE=/release/Gemfile
|
11
|
+
RUN bundle install
|
12
|
+
RUN git config --global user.email "beth@bethesque.com"
|
13
|
+
RUN git config --global user.name "Beth Skurrie via Github Actions"
|
14
|
+
|
15
|
+
ENTRYPOINT [/entrypoint.sh]
|
data/Rakefile
CHANGED
@@ -1,4 +1,8 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
|
+
|
3
|
+
# When running the release action, we don't want to load all the 'prod' gems
|
4
|
+
# because they're not installed on the release Docker image
|
5
|
+
|
2
6
|
require 'rspec/core/rake_task'
|
3
7
|
require 'conventional_changelog'
|
4
8
|
|
@@ -31,4 +35,4 @@ task 'pact:list_provider_states' do
|
|
31
35
|
puts pact_file
|
32
36
|
JSON.parse(File.read(pact_file))['interactions'].collect{ | interaction| interaction['providerState'] }
|
33
37
|
}.flatten.compact.sort.uniq
|
34
|
-
end
|
38
|
+
end
|
data/action.yml
ADDED
data/appveyor.yml
CHANGED
@@ -16,7 +16,7 @@ before_test:
|
|
16
16
|
test_script:
|
17
17
|
- bundle exec rake
|
18
18
|
|
19
|
-
notifications:
|
20
|
-
|
21
|
-
|
22
|
-
|
19
|
+
# notifications:
|
20
|
+
# - provider: Slack
|
21
|
+
# incoming_webhook:
|
22
|
+
# secure: zUujuzaZFqpFndOFkoIMkXMFTniWWi0ZtR58PN63c796EcWHJEyOf+XBi81LPrBBKzQYiY1auI1gkNt+ESnJXLxSzY+Q1bbncwN35hc2J84=
|
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
echo "::group::Internal logs"
|
4
|
+
set -ex
|
5
|
+
|
6
|
+
# Because the BUNDLE_GEMFILE is set on the docker image, everything
|
7
|
+
# runs in the context of the
|
8
|
+
|
9
|
+
increment=${INCREMENT:-patch}
|
10
|
+
bundle exec bump ${increment} --no-commit
|
11
|
+
bundle exec ruby -e "
|
12
|
+
require 'conventional_changelog'
|
13
|
+
require 'bump'
|
14
|
+
ConventionalChangelog::Generator.new.generate! version: \"v#{Bump::Bump.current}\"
|
15
|
+
"
|
16
|
+
version_file=$(bundle exec bump file --value-only)
|
17
|
+
version=$(bundle exec bump current --value-only)
|
18
|
+
git add CHANGELOG.md "${version_file}"
|
19
|
+
git commit -m "chore(release): version ${version}"
|
20
|
+
|
21
|
+
echo "::endgroup::"
|
@@ -0,0 +1,24 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
set -ex
|
3
|
+
|
4
|
+
# Set up .netrc file with GitHub credentials
|
5
|
+
git_setup() {
|
6
|
+
cat <<-EOF >$HOME/.netrc
|
7
|
+
machine github.com
|
8
|
+
login $GITHUB_ACTOR
|
9
|
+
password $GITHUB_TOKEN
|
10
|
+
machine api.github.com
|
11
|
+
login $GITHUB_ACTOR
|
12
|
+
password $GITHUB_TOKEN
|
13
|
+
EOF
|
14
|
+
chmod 600 $HOME/.netrc
|
15
|
+
}
|
16
|
+
|
17
|
+
git_setup
|
18
|
+
|
19
|
+
# Overzealous validation stops rake release from running without a credentials file
|
20
|
+
touch ~/.gem/credentials
|
21
|
+
mkdir -p tmp
|
22
|
+
cp /release/Rakefile tmp/Rakefile
|
23
|
+
cd tmp
|
24
|
+
bundle exec rake release
|
data/script/prepare-release.sh
CHANGED
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.27.
|
4
|
+
version: 1.27.19
|
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-07-
|
11
|
+
date: 2020-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -146,16 +146,18 @@ extensions: []
|
|
146
146
|
extra_rdoc_files: []
|
147
147
|
files:
|
148
148
|
- ".github/workflows/release_gem.yml"
|
149
|
-
- ".github/workflows/
|
149
|
+
- ".github/workflows/release_gem_2.yml"
|
150
150
|
- ".github/workflows/trigger_pact_docs_update.yml"
|
151
151
|
- ".gitignore"
|
152
152
|
- ".rspec"
|
153
153
|
- ".travis.yml"
|
154
154
|
- CHANGELOG.md
|
155
|
+
- Dockerfile
|
155
156
|
- Gemfile
|
156
157
|
- README.md
|
157
158
|
- RELEASING.md
|
158
159
|
- Rakefile
|
160
|
+
- action.yml
|
159
161
|
- appveyor.yml
|
160
162
|
- bin/pact-broker
|
161
163
|
- ci.sh
|
@@ -216,8 +218,14 @@ files:
|
|
216
218
|
- lib/pact_broker/client/webhooks/test.rb
|
217
219
|
- lib/pact_broker_client.rb
|
218
220
|
- pact-broker-client.gemspec
|
221
|
+
- release-image/entrypoint.sh
|
222
|
+
- release-image/release/Gemfile
|
223
|
+
- release-image/release/Rakefile
|
224
|
+
- release-image/usr/local/bin/prepare-release
|
225
|
+
- release-image/usr/local/bin/release-gem
|
219
226
|
- script/api_key_test.rb
|
220
227
|
- script/generate-cli-usage.sh
|
228
|
+
- script/prepare-github-release.sh
|
221
229
|
- script/prepare-release.sh
|
222
230
|
- script/publish-pact.sh
|
223
231
|
- script/release-gem.sh
|
@@ -1,15 +0,0 @@
|
|
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
|