pact_broker-client 1.27.11 → 1.27.20
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 +9 -1
- data/.github/workflows/release_gem_2.yml +17 -0
- data/.travis.yml +6 -7
- data/CHANGELOG.md +21 -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 -2
- 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: be99c65fb0f020c24b223d89af4aa585442bb94eef3875b3dab865a2970b69de
|
4
|
+
data.tar.gz: f92a8775213ecd55356415f6463d7b2ebe219573b734423004bb39a28e1828fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37c63f70dcb2bd21fa49b6abbcf699035109f2c58ac2c43f84bf62d3e60e2c6065ea167a34ba60b2609640722d0f982f0823531302b435b503e70420118153be
|
7
|
+
data.tar.gz: b0aacabc99ed0c0eb20dc4933485eef0b845e00e6cf503c98e57a635fb168f4dcc01bdbf7a1a4caddb291e304db3a624ebf2a17746353b57fea4eb978c758f70
|
@@ -31,10 +31,11 @@ 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 }}'
|
37
|
+
- name: Prepare Github Release
|
38
|
+
run: script/prepare-github-release.sh
|
38
39
|
- name: Create Github Release
|
39
40
|
uses: actions/create-release@v1
|
40
41
|
env:
|
@@ -42,3 +43,10 @@ jobs:
|
|
42
43
|
with:
|
43
44
|
tag_name: ${{ env.TAG }}
|
44
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/.travis.yml
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
3
|
- 2.2.4
|
4
|
-
- 2.3.1
|
5
4
|
- 2.4.1
|
6
5
|
|
7
|
-
before_install:
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
6
|
+
# before_install:
|
7
|
+
# - (git show-ref | grep $(git log --pretty=%h -1) | sed 's|.*/\(.*\)|\1|' | sort -u | grep -v HEAD) || true
|
8
|
+
# - (git show -s --pretty=%d HEAD) || true
|
9
|
+
# - (git for-each-ref --format='%(objectname) %(refname:short)' refs/heads | awk "/^$(git rev-parse HEAD)/ {print \$2}") || true
|
10
|
+
# - (git show -s --pretty=%D HEAD | tr -s ', ' '\n' | grep -v HEAD | head -n1) || true
|
11
|
+
# - (git name-rev --name-only HEAD) || true
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,24 @@
|
|
1
|
+
<a name="v1.27.20"></a>
|
2
|
+
### v1.27.20 (2020-07-12)
|
3
|
+
|
4
|
+
|
5
|
+
#### Bug Fixes
|
6
|
+
|
7
|
+
* testing release notes ([1f38fdd](/../../commit/1f38fdd))
|
8
|
+
|
9
|
+
|
10
|
+
<a name="v1.27.14"></a>
|
11
|
+
### v1.27.14 (2020-07-11)
|
12
|
+
|
13
|
+
|
14
|
+
#### Bug Fixes
|
15
|
+
|
16
|
+
* not a real fix, just testing release notes ([1fabb8b](/../../commit/1fabb8b))
|
17
|
+
|
18
|
+
|
19
|
+
<a name="v1.27.13"></a>
|
20
|
+
### v1.27.13 (2020-07-11)
|
21
|
+
|
1
22
|
<a name="v1.27.1"></a>
|
2
23
|
### v1.27.1 (2020-07-10)
|
3
24
|
|
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
@@ -9,5 +9,4 @@ version_file=$(bundle exec bump file --value-only)
|
|
9
9
|
version=$(bundle exec bump current --value-only)
|
10
10
|
git add CHANGELOG.md "${version_file}"
|
11
11
|
git commit -m "chore(release): version ${version}"
|
12
|
-
|
13
|
-
echo "::set-env name=TAG::${tag}"
|
12
|
+
|
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.20
|
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
|