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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2808df32f2558efab259aaf81276fe294e57c29028ecfff22b9a3acb884c5f40
4
- data.tar.gz: bfc2295dd177fafc1047ff0cc7b25ca6784471718e22daa61657c98370a17ab9
3
+ metadata.gz: f8d325fb9f9da47a380c90d01e81033fe7c014a5ac3e78eefbc93afbd4f20bac
4
+ data.tar.gz: ebf55f2492469adba2f5ee014bba0cb09147fb93ef4113889f04b2474896ce39
5
5
  SHA512:
6
- metadata.gz: c73f4c97c52f2815c9e503398000f6313e6c91b21faa48fb40fffb176fa98d349203a69bd19ff605aa7c1d56fffff3c023f63fb4e65e1d68b4b281fa6ca0b0dc
7
- data.tar.gz: 35a5653662bfb2c4b11e7808ba1159f46d039085c76d1785b1a6b41500a2f497136d3cbbebc075ea938b038421a10c31da1b022e5629398ff3ae6a02798666e4
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
- #BUNDLE_GITHUB__COM: x-access-token:${{ secrets.GITHUB_TOKEN }}
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 }}'
@@ -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
 
@@ -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
@@ -0,0 +1,6 @@
1
+ # action.yml
2
+ name: 'Release gem'
3
+ description: 'Release gem to rubygems, generate changelog, create release notes'
4
+ runs:
5
+ using: 'docker'
6
+ image: 'Dockerfile'
@@ -16,7 +16,7 @@ before_test:
16
16
  test_script:
17
17
  - bundle exec rake
18
18
 
19
- notifications:
20
- - provider: Slack
21
- incoming_webhook:
22
- secure: zUujuzaZFqpFndOFkoIMkXMFTniWWi0ZtR58PN63c796EcWHJEyOf+XBi81LPrBBKzQYiY1auI1gkNt+ESnJXLxSzY+Q1bbncwN35hc2J84=
19
+ # notifications:
20
+ # - provider: Slack
21
+ # incoming_webhook:
22
+ # secure: zUujuzaZFqpFndOFkoIMkXMFTniWWi0ZtR58PN63c796EcWHJEyOf+XBi81LPrBBKzQYiY1auI1gkNt+ESnJXLxSzY+Q1bbncwN35hc2J84=
@@ -1,5 +1,5 @@
1
1
  module PactBroker
2
2
  module Client
3
- VERSION = '1.27.10'
3
+ VERSION = '1.27.19'
4
4
  end
5
5
  end
@@ -0,0 +1,3 @@
1
+ #!/bin/sh
2
+
3
+ echo "Hello"
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'bump', git: 'https://github.com/bethesque/bump.git'
4
+ gem 'conventional-changelog', '~>1.3'
5
+ gem 'rake', '~>13.0'
@@ -0,0 +1,5 @@
1
+ require "rake/clean"
2
+ CLOBBER.include "pkg"
3
+
4
+ require "bundler/gem_helper"
5
+ Bundler::GemHelper.install_tasks(dir: File.absolute_path(".."))
@@ -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
@@ -0,0 +1,7 @@
1
+ #!/bin/sh
2
+ set -e
3
+
4
+ tag=$(git describe)
5
+ mkdir -p tmp
6
+ git diff CHANGELOG.md | grep "^+" | grep -v "b/CHANGELOG.md" | sed 's/^+//g' > tmp/RELEASE_NOTES.md
7
+ echo "::set-env name=TAG::${tag}"
@@ -9,3 +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
+
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.10
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-10 00:00:00.000000000 Z
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/trigger_pact_cli_release.yml"
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