pact-support 1.16.9 → 1.17.0

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: 46ec9f6e6642bfc067b5327994f844ecd15afaa81ab23b9c4fc4fa55ceae83fe
4
- data.tar.gz: ef772e9256e18df3164c834aa55e21fb7742484a19fbc9dccdc17b11fc391d7d
3
+ metadata.gz: ffae927e01cda7b4e78b62dbf4e60d0c5b51907f882b1aedf9e81d37458033a7
4
+ data.tar.gz: 3dae3b8274a7a9f3b8631e209eb14999758e6eb3f501826928f0860ff4a2c0cc
5
5
  SHA512:
6
- metadata.gz: 0a6f386eb4fcb8f3b49832e58564ed56e4a1e56a8da6ecea776f211ee0850a78ba9adb6677571053d943ef717204f17b513a2347bfcd43757a03ce2018a35d94
7
- data.tar.gz: 60d0cbcc25b2b10937c2bea9501ae540b0a5aaf7946676414ea01da95829ef36a2c0f19a558883367631cb894bf9ccbcce32200d09f8a907050b763b731bf68b
6
+ metadata.gz: d285d2dd1ecbbd99576591c816d4e0ce867313672e20ad3f4f113c5520378e7b83b533557734ba7315a2b1fa776e052e5457c860b40f3ef5dc82d0a251a327c3
7
+ data.tar.gz: 3209c1f4ce99e5765c98b86dc67b53cd0f364d71b576208cda7982d830610eb93a01402b896adb33d4feee21c46fb7c3ffccb968b0d3991fb1365df3ab91ba00
data/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ <a name="v1.17.0"></a>
2
+ ### v1.17.0 (2021-10-01)
3
+
4
+ #### Features
5
+
6
+ * allow SSL verification to be disabled by setting environment variable PACT_DISABLE_SSL_VERIFICATION=true ([dd39c04](/../../commit/dd39c04))
7
+
8
+ <a name="v1.16.10"></a>
9
+ ### v1.16.10 (2021-10-01)
10
+
11
+ #### Bug Fixes
12
+
13
+ * change expgen to a runtime dependency ([da81634](/../../commit/da81634))
14
+
1
15
  <a name="v1.16.9"></a>
2
16
  ### v1.16.9 (2021-09-30)
3
17
 
@@ -108,7 +108,13 @@ module Pact
108
108
  http.use_ssl = (uri.scheme == 'https')
109
109
  http.ca_file = ENV['SSL_CERT_FILE'] if ENV['SSL_CERT_FILE'] && ENV['SSL_CERT_FILE'] != ''
110
110
  http.ca_path = ENV['SSL_CERT_DIR'] if ENV['SSL_CERT_DIR'] && ENV['SSL_CERT_DIR'] != ''
111
- http.set_debug_output(Pact::Http::AuthorizationHeaderRedactor.new(Pact.configuration.output_stream)) if options[:verbose]
111
+ http.set_debug_output(Pact::Http::AuthorizationHeaderRedactor.new(Pact.configuration.output_stream)) if verbose?(options)
112
+ if disable_ssl_verification?
113
+ if verbose?(options)
114
+ Pact.configuration.output_stream.puts("SSL verification is disabled")
115
+ end
116
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE
117
+ end
112
118
  http
113
119
  end
114
120
 
@@ -139,5 +145,13 @@ module Pact
139
145
  def windows_safe(uri)
140
146
  uri.start_with?("http") ? uri : uri.gsub("\\", File::SEPARATOR)
141
147
  end
148
+
149
+ def verbose?(options)
150
+ options[:verbose] || ENV['VERBOSE'] == 'true'
151
+ end
152
+
153
+ def disable_ssl_verification?
154
+ ENV['PACT_DISABLE_SSL_VERIFICATION'] == 'true' || ENV['PACT_BROKER_DISABLE_SSL_VERIFICATION'] == 'true'
155
+ end
142
156
  end
143
157
  end
@@ -1,5 +1,5 @@
1
1
  module Pact
2
2
  module Support
3
- VERSION = "1.16.9"
3
+ VERSION = "1.17.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pact-support
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.9
4
+ version: 1.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Fraser
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2021-09-30 00:00:00.000000000 Z
15
+ date: 2021-10-01 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: term-ansicolor
@@ -62,14 +62,14 @@ dependencies:
62
62
  requirements:
63
63
  - - "~>"
64
64
  - !ruby/object:Gem::Version
65
- version: 0.1.1
66
- type: :development
65
+ version: '0.1'
66
+ type: :runtime
67
67
  prerelease: false
68
68
  version_requirements: !ruby/object:Gem::Requirement
69
69
  requirements:
70
70
  - - "~>"
71
71
  - !ruby/object:Gem::Version
72
- version: 0.1.1
72
+ version: '0.1'
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: rspec
75
75
  requirement: !ruby/object:Gem::Requirement