pact_broker-client 1.27.12 → 1.27.21

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: a8b7293d13c1b8274a3e5b1539088fecd822bfcae6625e233fab0988748ca463
4
- data.tar.gz: db61c92b35a0768dfaff43dd0293d8c6c8b209a898b8f4ca953e73d34d5865bb
3
+ metadata.gz: f80648417ca2ed8f9f78a9db7c859651008edef0c8952273119e1ccc6f9adbeb
4
+ data.tar.gz: 3b371ce1412a5f75f98d2c89cbffe674b11ac9dd07a7d99e6bb72dee9e65411f
5
5
  SHA512:
6
- metadata.gz: 16b27e7aa817e590cdfb9a3cd3156e511d43cc5259bf79d76a392b37b9289dc9bbd49cc3cc50c4b2ccb6380553706bac0c01f97190e560595f44473b1294679c
7
- data.tar.gz: 5313e3c17a59c42c3a828425b046435b69156050087b1d6c184be058deecb61eee3f5678be060acbfc957a51b734dac226cc62cd67bf9509977cae3710890f86
6
+ metadata.gz: b6f7b55c6dd62cb4c64ad858d1140b04b21b2e4fe2c118cc7e2108a9c66ec443d43fa7aa09b01ab0abe599a663be1e1ea85390493fa730bd03bcc11ff729ef06
7
+ data.tar.gz: c35ebf06bf22941a88679afb2d7be59c7f030b81b4e98c14bf0be9e1d11ef7fd876ea73796a05e0e69f75d6b8099559e1567f2f0a27b62ca09ffcf1900eb3585
@@ -31,7 +31,6 @@ 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 }}'
@@ -44,4 +43,10 @@ jobs:
44
43
  with:
45
44
  tag_name: ${{ env.TAG }}
46
45
  release_name: ${{ env.TAG }}
47
- both_path: tmp/RELEASE_NOTES.md
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,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
- - (git show-ref | grep $(git log --pretty=%h -1) | sed 's|.*/\(.*\)|\1|' | sort -u | grep -v HEAD) || true
9
- - (git show -s --pretty=%d HEAD) || true
10
- - (git for-each-ref --format='%(objectname) %(refname:short)' refs/heads | awk "/^$(git rev-parse HEAD)/ {print \$2}") || true
11
- - (git show -s --pretty=%D HEAD | tr -s ', ' '\n' | grep -v HEAD | head -n1) || true
12
- - (git name-rev --name-only HEAD) || true
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
@@ -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
 
@@ -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.12'
3
+ VERSION = '1.27.21'
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
@@ -1,7 +1,7 @@
1
1
  #!/bin/sh
2
2
  set -e
3
3
 
4
- tag=$(cat CHANGELOG.md | grep "#" | head -n 1 | cut -d' ' -f2)
4
+ tag=$(git describe)
5
5
  mkdir -p tmp
6
6
  git diff CHANGELOG.md | grep "^+" | grep -v "b/CHANGELOG.md" | sed 's/^+//g' > tmp/RELEASE_NOTES.md
7
7
  echo "::set-env name=TAG::${tag}"
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.12
4
+ version: 1.27.21
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,6 +218,11 @@ 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
221
228
  - script/prepare-github-release.sh
@@ -1,15 +0,0 @@
1
- name: Trigger release of the pact-cli Docker image
2
- on:
3
- release:
4
- types: [published]
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