pact_broker-client 1.27.13 → 1.27.22

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: '082bde1a2a20af353bc8f2e3ebf8886e02bcefce80499a6124712e160d7b2669'
4
- data.tar.gz: 532c2ded31923a3d8f7dd171a8d327a075b4644b0e37c3b82c267da200488a0c
3
+ metadata.gz: a41cd460c210512fab8b5e95008d69087b0a1f84fe558c8de6c8237234c6ce58
4
+ data.tar.gz: 15edd66ab5759414027e5c69e6897f24a9f0849f2adf4b1da0756a78a0646347
5
5
  SHA512:
6
- metadata.gz: 22f3cf338f2acbe03c30ef718fa28711e7a88a6efdb155bf5ab99da98d98c628cac19540bc98c5e6513d2c389a9ecb318e4fd0f74351e943323fabc02b1bef05
7
- data.tar.gz: 50fbb81a2df8a57f71f3285321eb9c24004b9788a6f2151904c08dcdd254877ade8e0d48b164a47490b904755b578a701508956adb1b42d8331a206656a2a082
6
+ metadata.gz: 7c10729b4859588c30b75b340c564c9ae6aa6c528c2772473ddb709a8f44c27b7356cdb361f41cbd47e32e8caf4fc126a26f5678a3cca515fadb9d6152268fba
7
+ data.tar.gz: 2a9983b65c75d29d5ad2753741ef0858606f389281b764587346291da62151d01770e50a384c85a54906cd84a99b8fd340de625684eedb3a2b746c733c91d22c
@@ -1,4 +1,4 @@
1
- name: Release gem
1
+ name: Release gem 2
2
2
 
3
3
  on:
4
4
  repository_dispatch:
@@ -12,42 +12,12 @@ jobs:
12
12
  - uses: actions/checkout@v2
13
13
  with:
14
14
  fetch-depth: 0
15
- - uses: actions/setup-ruby@v1
16
- with:
17
- ruby-version: '2.6'
18
- - name: Install gems
19
- run: |
20
- gem update --system
21
- gem install bundler -v 2.0.2
22
- bundle install
23
- - name: Configure git
24
- run: |
25
- git config user.email "beth@bethesque.com"
26
- git config user.name "Beth Skurrie via Github Actions"
27
- - name: Prepare release
28
- run: script/prepare-release.sh
29
- env:
30
- INCREMENT: patch
31
- - name: Release gem
32
- run: |
33
- touch ~/.gem/credentials
34
- # chmod 0600 ~/.gem/credentials
35
- script/release-gem.sh
15
+ - uses: pact-foundation/release-gem@master
36
16
  env:
37
17
  GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_API_KEY }}'
38
- - name: Prepare Github Release
39
- run: script/prepare-github-release.sh
40
- - name: Create Github Release
41
- uses: actions/create-release@v1
42
- env:
43
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44
- with:
45
- tag_name: ${{ env.TAG }}
46
- release_name: ${{ env.TAG }}
47
- body_path: tmp/RELEASE_NOTES.md
48
- - name: Trigger release of pact-cli Docker image
49
- uses: peter-evans/repository-dispatch@v1
50
- with:
51
- token: ${{ secrets.GHTOKENFORPACTCLIRELEASE }}
52
- repository: pact-foundation/pact-ruby-cli
53
- event-type: gem-released
18
+ # - name: Trigger release of pact-cli Docker image
19
+ # uses: peter-evans/repository-dispatch@v1
20
+ # with:
21
+ # token: ${{ secrets.GHTOKENFORPACTCLIRELEASE }}
22
+ # repository: pact-foundation/pact-ruby-cli
23
+ # event-type: gem-released
@@ -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,33 @@
1
+ <a name="v1.27.22"></a>
2
+ ### v1.27.22 (2020-07-12)
3
+
4
+
5
+ #### Bug Fixes
6
+
7
+ * not really a fix, just testing release notes ([13ddd06](/../../commit/13ddd06))
8
+
9
+
10
+ <a name="v1.27.20"></a>
11
+ ### v1.27.20 (2020-07-12)
12
+
13
+
14
+ #### Bug Fixes
15
+
16
+ * testing release notes ([1f38fdd](/../../commit/1f38fdd))
17
+
18
+
19
+ <a name="v1.27.14"></a>
20
+ ### v1.27.14 (2020-07-11)
21
+
22
+
23
+ #### Bug Fixes
24
+
25
+ * not a real fix, just testing release notes ([1fabb8b](/../../commit/1fabb8b))
26
+
27
+
28
+ <a name="v1.27.13"></a>
29
+ ### v1.27.13 (2020-07-11)
30
+
1
31
  <a name="v1.27.1"></a>
2
32
  ### v1.27.1 (2020-07-10)
3
33
 
@@ -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
@@ -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.13'
3
+ VERSION = '1.27.22'
4
4
  end
5
5
  end
@@ -5,11 +5,8 @@ output=$(curl -v -X POST https://api.github.com/repos/pact-foundation/pact_broke
5
5
  -H "Authorization: Bearer $GITHUB_ACCESS_TOKEN" \
6
6
  -d '{"event_type": "release-patch"}' 2>&1)
7
7
 
8
- echo "$output" | sed "s/${GITHUB_ACCESS_TOKEN}/****/g"
9
-
10
8
  if ! echo "${output}" | grep "HTTP\/1.1 204" > /dev/null; then
11
9
  echo "$output" | sed "s/${GITHUB_ACCESS_TOKEN}/****/g"
12
10
  echo "Failed to do the thing"
13
11
  exit 1
14
12
  fi
15
-
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.13
4
+ version: 1.27.22
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
@@ -151,6 +151,7 @@ files:
151
151
  - ".rspec"
152
152
  - ".travis.yml"
153
153
  - CHANGELOG.md
154
+ - Dockerfile
154
155
  - Gemfile
155
156
  - README.md
156
157
  - RELEASING.md
@@ -215,12 +216,8 @@ files:
215
216
  - lib/pact_broker/client/webhooks/test.rb
216
217
  - lib/pact_broker_client.rb
217
218
  - pact-broker-client.gemspec
218
- - script/api_key_test.rb
219
219
  - script/generate-cli-usage.sh
220
- - script/prepare-github-release.sh
221
- - script/prepare-release.sh
222
220
  - script/publish-pact.sh
223
- - script/release-gem.sh
224
221
  - script/release.sh
225
222
  - script/trigger-release.sh
226
223
  - spec/integration/can_i_deploy_spec.rb
@@ -1,5 +0,0 @@
1
- puts "env: #{ENV["GEM_HOST_API_KEY"].chars.first}"
2
-
3
- require 'rubygems/commands/push_command'
4
- include Gem::GemcutterUtilities
5
- puts "gemcutter: #{api_key.chars.first}"
@@ -1,7 +0,0 @@
1
- #!/bin/sh
2
- set -e
3
-
4
- tag=$(cat CHANGELOG.md | grep "#" | head -n 1 | cut -d' ' -f2)
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}"
@@ -1,12 +0,0 @@
1
- #!/bin/sh
2
- set -e
3
-
4
- # bundle exec rake
5
- increment=${INCREMENT:-patch}
6
- bundle exec bump ${increment} --no-commit
7
- bundle exec rake generate_changelog
8
- version_file=$(bundle exec bump file --value-only)
9
- version=$(bundle exec bump current --value-only)
10
- git add CHANGELOG.md "${version_file}"
11
- git commit -m "chore(release): version ${version}"
12
-
@@ -1,23 +0,0 @@
1
- #!/bin/bash
2
-
3
- # if [ -n "${GITHUB_ACTIONS}" ]; then
4
- # : "${RUBYGEMS_API_KEY:?RUBYGEMS_API_KEY must be set}"
5
- # : "${GITHUB_TOKEN:?GITHUB_TOKEN must be set}"
6
-
7
- # echo "Setting up gem credentials..."
8
- # set +x
9
- # mkdir -p ~/.gem
10
-
11
- # cat << EOF > ~/.gem/credentials
12
- # ---
13
- # :github: Bearer ${GITHUB_TOKEN}
14
- # :rubygems_api_key: ${RUBYGEMS_API_KEY}
15
- # EOF
16
-
17
- # chmod 0600 ~/.gem/credentials
18
- # set -x
19
-
20
- # fi
21
-
22
- echo "Running gem release task..."
23
- bundle exec rake release