pact_broker 2.78.0 → 2.78.1

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: 4260e4320105662bc678b63a94054f7485609557b2e967e58ac59512fca69f81
4
- data.tar.gz: 4d40a31b9f93c9e08a67e2b1e50cff0fc0c59e0344d3a8672b629d425a93444a
3
+ metadata.gz: 1b7b3f32acd207f0828dbe2c81fbffb7ed26fc7c522f04719d6d72a123a37331
4
+ data.tar.gz: 28776d82bfb587c908fd20b1570d6b94c58cb8669c2aad5179308f38d512d0ce
5
5
  SHA512:
6
- metadata.gz: b2dec2c3934c80e7edf5d85370aecf511e8ce8e403486c964182b8f2f397f91bdad7ac886c1dd2955f6d4c9cac52bbac81c22b89d824d7d19fe57d224715ecb5
7
- data.tar.gz: 8d60c2beaa8719efe9bfd7551ddda158d4c4f06cdf92884fdbb1312e8a7a306b5fc5754f5f467bd922e688eb37c899ea60c1758de48fce7696553ee57b84fd32
6
+ metadata.gz: 0a296391274edd0473b51db73d13d8e22f0519ca4b01e6d6fe3217f0881baead02496bf5423c15dfe5d1a7a9eae43da65eccbe94a967b2f51dd6f62e977fdea9
7
+ data.tar.gz: 3f9bab9d45e6315e4dbec1ee575f5a40c929308af166db3028c3f471bc59b42e8a6631c774513e864523ff0665b7061014cae8ddf67e7c696912a603df53b21f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ <a name="v2.78.1"></a>
2
+ ### v2.78.1 (2021-02-18)
3
+
4
+ #### Bug Fixes
5
+
6
+ * handle nil response when determining webhook success status ([20ca9e66](/../../commit/20ca9e66))
7
+
1
8
  <a name="v2.78.0"></a>
2
9
  ### v2.78.0 (2021-02-15)
3
10
 
@@ -1,3 +1,3 @@
1
1
  module PactBroker
2
- VERSION = '2.78.0'
2
+ VERSION = '2.78.1'
3
3
  end
@@ -14,9 +14,11 @@ module PactBroker
14
14
  end
15
15
 
16
16
  def success?
17
- unless response.nil?
17
+ if response
18
18
  # Response HTTP Code must be in success list otherwise it is false
19
19
  PactBroker.configuration.webhook_http_code_success.include? response.code.to_i
20
+ else
21
+ false
20
22
  end
21
23
  end
22
24
  end
@@ -117,9 +117,11 @@ module PactBroker
117
117
  end
118
118
 
119
119
  def success?(response)
120
- unless response.nil?
120
+ if response
121
121
  # Response HTTP Code must be in success list otherwise it is false
122
122
  PactBroker.configuration.webhook_http_code_success.include? response.code.to_i
123
+ else
124
+ false
123
125
  end
124
126
  end
125
127
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pact_broker
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.78.0
4
+ version: 2.78.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bethany Skurrie
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-02-17 00:00:00.000000000 Z
13
+ date: 2021-02-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httparty