pact_broker-client 1.47.0 → 1.47.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e11ef51fde8e7435df8088fc6124dc9f13657169d24681de5b7288227bafb9d0
4
- data.tar.gz: 49237a042f0d8bd8abdd2af393be5141a6f38a24315a10632120c2c9ea65e4ad
3
+ metadata.gz: 2eb00eeeb34ad8ea24b55dc13a08d0d1a6fbb05262fd5fa7c820c048286d269d
4
+ data.tar.gz: 1e717ee7580afa14b6e6f6820d2e6ac97204e8d0dcd7d26119528d475c06c2c9
5
5
  SHA512:
6
- metadata.gz: 50437b1812663cbc7d31bbba98230ca8674a478a43b205e4293df7c8975d2553154a9a702b0af485b857ed621f0aa1c15f4dd1751dc3151447eca3d9d063cf19
7
- data.tar.gz: f25ee6031ddeed56b680ea71ec7548bc483f2bda844b1d3f6a3c9e8f8f15a6accae0513052637f284157118c2c2dd2162131512efa6a39b69acbcfe49608a209
6
+ metadata.gz: 33480fa75ef16eff02037e720966b7fd5cb4eb5df5dfdb413b2f8b9c8177c91ea78891244ccbf10776c64b89b1ec97509a7c5fc1c799f35f5aead37468a4e81a
7
+ data.tar.gz: bddc3501a161089d555d540700b55042506cb43fea9c4169e78cdd102dc1118e41384a39b14497e28b15665edc3ac56cf94bfd0243283cb4d63c81a9bdfd1332
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ <a name="v1.47.1"></a>
2
+ ### v1.47.1 (2021-07-20)
3
+
4
+ #### Bug Fixes
5
+
6
+ * **verification-required**
7
+ * require a verification when either of the specified versions does not exist ([031d232](/../../commit/031d232))
8
+
1
9
  <a name="v1.47.0"></a>
2
10
  ### v1.47.0 (2021-07-09)
3
11
 
@@ -30,6 +30,10 @@ module PactBroker
30
30
  end
31
31
  end
32
32
 
33
+ def no_results?
34
+ self[:summary][:success] == 0 && self[:summary][:failed] == 0
35
+ end
36
+
33
37
  def supports_unknown_count?
34
38
  !!(self[:summary] && Integer === self[:summary][:unknown] )
35
39
  end
@@ -17,7 +17,9 @@ module PactBroker
17
17
 
18
18
  def create_result(matrix)
19
19
  matrix_and_notices = format_matrix(matrix) + "\n\n" + remove_warnings(Term::ANSIColor.uncolor(notice_or_reason(matrix, :white)))
20
- if matrix.any_unknown?
20
+ # If the specified version numbers do not exist, then all the counts come back 0. Can't just check for unknown to be 0.
21
+ # This command needs to handle "I screwed up the query"
22
+ if matrix.no_results?
21
23
  Result.new(true, matrix_and_notices + "\n\nVerification is required.")
22
24
  else
23
25
  Result.new(false, matrix_and_notices + "\n\nNo verification is required.")
@@ -1,5 +1,5 @@
1
1
  module PactBroker
2
2
  module Client
3
- VERSION = '1.47.0'
3
+ VERSION = '1.47.1'
4
4
  end
5
5
  end
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.47.0
4
+ version: 1.47.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Beth Skurrie