pact-provider-verifier 1.36.1 → 1.38.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: 4a4c9bded09dc9614d878dbe6a84d2d5accfadc7be2931e553a4516ad0874a6f
4
- data.tar.gz: f06fd25ffbff49a98b777b474e546816f9ed9a78bda95a671f6bf30a44ceff3d
3
+ metadata.gz: 514bbbf9079816eebbd579eb1394950f16210ffea9f4a00f2757de36c96a54b7
4
+ data.tar.gz: 66bb1a247c2d5299714272727d0fb1c67ab2dc63eca377414b5e5c1724976b15
5
5
  SHA512:
6
- metadata.gz: bc372e2bf7ae0c4e042050f3285e8976994a55851ec2a5892a48329152a3f4133a0c17ac4d8d7301bc424c874006f39e177b4a484b881984b051cf4a02c49667
7
- data.tar.gz: d144b62f31731fe889e10a8c91aacd2de6fbe4b403f25af705ea11dc0dca66cc97fc772cde616d80c85b32a26db2739d167057209e8f21ac6086e688eff68d5e
6
+ metadata.gz: 410602c0632309684a30c06adfb1f647c0dd02479ac70744995e60471a86f92d475e238707ba86e2375f09705a074e7fc998b238f206ed46d6826d382c1d16cf
7
+ data.tar.gz: 2f26ac388ae4a84f3826eca50749a6ab958d394f4f068b1f91c456dedaed56c8c8b3d65c18bf99c166f78408fe2bf79608198bce40c708daeeb29a3cd1797ed8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,31 @@
1
+ <a name="v1.38.1"></a>
2
+ ### v1.38.1 (2024-04-04)
3
+
4
+ #### Bug Fixes
5
+
6
+ * examples/Gemfile & examples/Gemfile.lock to reduce vulnerabilities ([fdb8bcc](/../../commit/fdb8bcc))
7
+ * Return non-error if enable-pending is set ([0b4bc7e](/../../commit/0b4bc7e))
8
+
9
+ <a name="v1.38.0"></a>
10
+ ### v1.38.0 (2023-09-12)
11
+
12
+ <a name="v1.37.0-1"></a>
13
+ ### v1.37.0-1 (2023-08-02)
14
+
15
+
16
+ #### Features
17
+
18
+ * update Faraday to 2.5 ([bd59317](/../../commit/bd59317))
19
+
20
+
21
+ #### Bug Fixes
22
+
23
+ * **deps**
24
+ * rack 2.2.6 + ruby 3 change to WEBrick.run for args ([9ac818f](/../../commit/9ac818f))
25
+
26
+ * examples/Gemfile.lock to reduce vulnerabilities ([933f34b](/../../commit/933f34b))
27
+
28
+
1
29
  <a name="v1.36.1"></a>
2
30
  ### v1.36.1 (2021-10-27)
3
31
 
data/Gemfile CHANGED
@@ -1,5 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ ruby ">= 2.6"
4
+
3
5
  gemspec
4
6
 
5
7
  if ENV['X_PACT_DEVELOPMENT']
data/README.md CHANGED
@@ -62,6 +62,8 @@ Options:
62
62
  with --provider. May be specified multiple times.
63
63
  [--provider-version-tag=TAG]
64
64
  # Tag to apply to the provider application version. May be specified multiple times.
65
+ [--provider-version-branch=BRANCH]
66
+ # The name of the branch the provider version belongs to.
65
67
  -g, [--tag-with-git-branch], [--no-tag-with-git-branch]
66
68
  # Tag provider version with the name of the current git branch. Default: false
67
69
  -a, [--provider-app-version=PROVIDER_APP_VERSION]
@@ -9,7 +9,6 @@ require 'pact/cli/run_pact_verification'
9
9
  require 'pact/provider_verifier/aggregate_pact_configs'
10
10
  require 'pact/provider_verifier/git'
11
11
  require 'rack/reverse_proxy'
12
- require 'faraday_middleware'
13
12
  require 'json'
14
13
 
15
14
  module Pact
@@ -1,5 +1,5 @@
1
1
  require 'net/https'
2
- require 'faraday_middleware'
2
+
3
3
  require 'json'
4
4
  require_relative './app'
5
5
  require_relative 'set_up_provider_state'
@@ -1,4 +1,5 @@
1
1
  require 'faraday'
2
+ require 'faraday/retry'
2
3
 
3
4
  module Pact
4
5
  module ProviderVerifier
@@ -91,11 +92,15 @@ module Pact
91
92
  end
92
93
 
93
94
  def check_for_error response
94
- if response.status >= 300
95
- raise SetUpProviderStateError.new("Error setting up provider state '#{provider_state}' for consumer '#{consumer}' at #{provider_states_setup_url}. response status=#{response.status} response body=#{response.body}")
95
+ if response.status >= 300 && !(@options[:enable_pending] == true)
96
+ raise SetUpProviderStateError.new(set_up_provider_state_error_message(response))
96
97
  end
97
98
  end
98
99
 
100
+ def set_up_provider_state_error_message(response)
101
+ "Error setting up provider state '#{provider_state}' for consumer '#{consumer}' at #{provider_states_setup_url}. response status=#{response.status} response body=#{response.body}"
102
+ end
103
+
99
104
  def log_request
100
105
  if verbose?
101
106
  $stdout.puts "DEBUG: Setting up provider state '#{provider_state}' for consumer '#{consumer}' using provider state set up URL #{provider_states_setup_url}"
@@ -1,5 +1,5 @@
1
1
  module Pact
2
2
  module ProviderVerifier
3
- VERSION = "1.36.1"
3
+ VERSION = "1.38.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pact-provider-verifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.36.1
4
+ version: 1.38.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Fellows
8
8
  - Beth Skurrie
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-10-27 00:00:00.000000000 Z
12
+ date: 2024-08-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -57,42 +57,30 @@ dependencies:
57
57
  name: faraday
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: 0.9.0
63
- - - "<="
60
+ - - "~>"
64
61
  - !ruby/object:Gem::Version
65
- version: '2.0'
62
+ version: '2.5'
66
63
  type: :runtime
67
64
  prerelease: false
68
65
  version_requirements: !ruby/object:Gem::Requirement
69
66
  requirements:
70
- - - ">="
71
- - !ruby/object:Gem::Version
72
- version: 0.9.0
73
- - - "<="
67
+ - - "~>"
74
68
  - !ruby/object:Gem::Version
75
- version: '2.0'
69
+ version: '2.5'
76
70
  - !ruby/object:Gem::Dependency
77
- name: faraday_middleware
71
+ name: faraday-retry
78
72
  requirement: !ruby/object:Gem::Requirement
79
73
  requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0.10'
83
- - - "<="
74
+ - - "~>"
84
75
  - !ruby/object:Gem::Version
85
- version: '2.0'
76
+ version: '2.2'
86
77
  type: :runtime
87
78
  prerelease: false
88
79
  version_requirements: !ruby/object:Gem::Requirement
89
80
  requirements:
90
- - - ">="
91
- - !ruby/object:Gem::Version
92
- version: '0.10'
93
- - - "<="
81
+ - - "~>"
94
82
  - !ruby/object:Gem::Version
95
- version: '2.0'
83
+ version: '2.2'
96
84
  - !ruby/object:Gem::Dependency
97
85
  name: json
98
86
  requirement: !ruby/object:Gem::Requirement
@@ -327,7 +315,7 @@ homepage: https://github.com/pact-foundation/pact-provider-verifier
327
315
  licenses:
328
316
  - MIT
329
317
  metadata: {}
330
- post_install_message:
318
+ post_install_message:
331
319
  rdoc_options: []
332
320
  require_paths:
333
321
  - lib
@@ -342,8 +330,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
342
330
  - !ruby/object:Gem::Version
343
331
  version: '0'
344
332
  requirements: []
345
- rubygems_version: 3.2.30
346
- signing_key:
333
+ rubygems_version: 3.5.17
334
+ signing_key:
347
335
  specification_version: 4
348
336
  summary: Provides a Pact verification service for use with Pact
349
337
  test_files: []