pact_broker-client 1.27.14 → 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: 42b172b804cac545ec4d9c4a37369e29190fceecb63b19e33642857266d52370
4
- data.tar.gz: c28a6e208a28265b012cf46e95e132599e2957b9e0ae72e5b0c37db4fb35cb8d
3
+ metadata.gz: f8d325fb9f9da47a380c90d01e81033fe7c014a5ac3e78eefbc93afbd4f20bac
4
+ data.tar.gz: ebf55f2492469adba2f5ee014bba0cb09147fb93ef4113889f04b2474896ce39
5
5
  SHA512:
6
- metadata.gz: f2ef143422dd0ec9a3471ce50676400287a76e1c905303cb58a8cf8e7b0687643b31d1eb406dae4f29412f394d6ec7e3b9bdc6ea5b18522838e2077f6003c772
7
- data.tar.gz: d803d7b3316fe1f05edb10598719ad4434357e12b9db1bd7acfd5f3e0345022f69d78b64be47d64d1da1065b6558b4c44e5bbd2d34fb3bca80e0d7d97f243b57
6
+ metadata.gz: 0dae1436e312f323a6052f1107a3daaeda4378736a59a262a8a55fce179c1636e64a2cf28e36e1262a97175fb6d0a5ceab8553813a08039e8f702d88c682a2bd
7
+ data.tar.gz: 808efd1ce14fc73b7e11cf40ebc42de9c684fce058991bb906eb45ca0884774510905a0df81672912b520259b23f637885f287fa1e47efc7f2dabb212fca9678
@@ -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 }}'
@@ -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 }}'
@@ -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.14'
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
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.14
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,15 +146,18 @@ extensions: []
146
146
  extra_rdoc_files: []
147
147
  files:
148
148
  - ".github/workflows/release_gem.yml"
149
+ - ".github/workflows/release_gem_2.yml"
149
150
  - ".github/workflows/trigger_pact_docs_update.yml"
150
151
  - ".gitignore"
151
152
  - ".rspec"
152
153
  - ".travis.yml"
153
154
  - CHANGELOG.md
155
+ - Dockerfile
154
156
  - Gemfile
155
157
  - README.md
156
158
  - RELEASING.md
157
159
  - Rakefile
160
+ - action.yml
158
161
  - appveyor.yml
159
162
  - bin/pact-broker
160
163
  - ci.sh
@@ -215,6 +218,11 @@ files:
215
218
  - lib/pact_broker/client/webhooks/test.rb
216
219
  - lib/pact_broker_client.rb
217
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
218
226
  - script/api_key_test.rb
219
227
  - script/generate-cli-usage.sh
220
228
  - script/prepare-github-release.sh