pact_broker-client 1.22.2 → 1.22.3

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
  SHA1:
3
- metadata.gz: 75295a78acaadb74c74e234d673982775de4cccf
4
- data.tar.gz: '09bd59aeb0988ff92e39e4b34cff32f7f3e5b743'
3
+ metadata.gz: f11962b86d8bb10ac4cba0dd5dee6c7054dfbb7b
4
+ data.tar.gz: 145fbe4eea4cdaa5a52e53ff39390e3dc56f5012
5
5
  SHA512:
6
- metadata.gz: 6d96ba5a749a584ce43543c7e73b1c99492a32abb576542050834d098e0110b4cba9c3a99ab42655b2df08c6ac130025799404a8793eca1529cda5bd52893a30
7
- data.tar.gz: 32eb09fba1962190454e721e8062cce0b7ed79d8215e16ccfbfa51b522bcd043bea02d0cdde00deacc383e8b997941912cc7fd8297d8f1af4ba31670ec0c7371
6
+ metadata.gz: 5d4a0987ef3f98dac660ef283f451358410cd647135965974d33b87a828c04df659a975e2964fe7394cad1075d2064a22d8055f449ce0f43b3c7bdbb4c0df01f
7
+ data.tar.gz: 13355657783a999487465fcf326a4ec9ef271b6ec7dd04cb97c94cab744a34b89236c36a8b9c9adba132d23229fc0f7a7eb25d16751b4b1630a64a84dae627a4
@@ -5,8 +5,8 @@ rvm:
5
5
  - 2.4.1
6
6
 
7
7
  before_install:
8
- - git show-ref | grep $(git log --pretty=%h -1) | sed 's|.*/\(.*\)|\1|' | sort -u | grep -v HEAD
9
- - git show -s --pretty=%d HEAD
10
- - git for-each-ref --format='%(objectname) %(refname:short)' refs/heads | awk "/^$(git rev-parse HEAD)/ {print \$2}"
11
- - git show -s --pretty=%D HEAD | tr -s ', ' '\n' | grep -v HEAD | head -n1
12
- - git name-rev --name-only HEAD
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
@@ -18,7 +18,7 @@ bamboo.repository.git.branch https://confluence.atlassian.com/bamboo/bamboo-vari
18
18
  module PactBroker
19
19
  module Client
20
20
  module Git
21
- COMMAND = 'git branch --remote --verbose --no-abbrev --contains'.freeze
21
+ COMMAND = 'git name-rev --name-only HEAD'.freeze
22
22
  BRANCH_ENV_VAR_NAMES = %w{BUILDKITE_BRANCH CIRCLE_BRANCH TRAVIS_BRANCH GIT_BRANCH GIT_LOCAL_BRANCH APPVEYOR_REPO_BRANCH CI_COMMIT_REF_NAME}.freeze
23
23
 
24
24
  def self.branch
@@ -1,5 +1,5 @@
1
1
  module PactBroker
2
2
  module Client
3
- VERSION = '1.22.2'
3
+ VERSION = '1.22.3'
4
4
  end
5
5
  end
@@ -26,7 +26,7 @@ module PactBroker
26
26
 
27
27
  context "when there is no known environment variable for the branch", skip_ci: true do
28
28
  it "attempts to execute a git command to determine the value" do
29
- expect { subject }.to_not raise_error
29
+ expect(subject).to_not be_empty
30
30
  end
31
31
  end
32
32
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pact_broker-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.22.2
4
+ version: 1.22.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Beth Skurrie