pact-support 1.13.0 → 1.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/pact/consumer_contract/pact_file.rb +5 -1
- data/lib/pact/support/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92d18ca8bd1b86d4ae9c662ec2a44542527ea210
|
4
|
+
data.tar.gz: 8c7fe0d434067f498247604d32e60d0fc464d59e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 641f9838234b355e6e0fa3303a12cdad51479ad5ecffe2d5452a9e4e573929063bb2a6fffe4451a7e804a15e4b6613a82bd9c6a08225196cfe15732e07afddb1
|
7
|
+
data.tar.gz: 90c860b8487295c6315b7d070b2df265d94da815eddbae30aab5c91f57a29396e4a0371d542815db00993437bde08ca95ee550e0836649a378e5a9764d05285b
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
<a name="v1.14.0"></a>
|
2
|
+
### v1.14.0 (2020-02-13)
|
3
|
+
|
4
|
+
|
5
|
+
#### Features
|
6
|
+
|
7
|
+
* use certificates from SSL_CERT_FILE and SSL_CERT_DIR environment variables in HTTP connections ([bf1333d](/../../commit/bf1333d))
|
8
|
+
|
9
|
+
|
1
10
|
<a name="v1.13.0"></a>
|
2
11
|
### v1.13.0 (2020-01-24)
|
3
12
|
|
@@ -81,7 +81,11 @@ module Pact
|
|
81
81
|
request = Net::HTTP::Get.new(uri)
|
82
82
|
request.basic_auth(options[:username], options[:password]) if options[:username]
|
83
83
|
request['Authorization'] = "Bearer #{options[:token]}" if options[:token]
|
84
|
-
Net::HTTP.
|
84
|
+
http = Net::HTTP.new(uri.host, uri.port, :ENV)
|
85
|
+
http.use_ssl = (uri.scheme == 'https')
|
86
|
+
http.ca_file = ENV['SSL_CERT_FILE'] if ENV['SSL_CERT_FILE'] && ENV['SSL_CERT_FILE'] != ''
|
87
|
+
http.ca_path = ENV['SSL_CERT_DIR'] if ENV['SSL_CERT_DIR'] && ENV['SSL_CERT_DIR'] != ''
|
88
|
+
http.start do |http|
|
85
89
|
http.open_timeout = options[:open_timeout] || OPEN_TIMEOUT
|
86
90
|
http.read_timeout = options[:read_timeout] || READ_TIMEOUT
|
87
91
|
http.request(request)
|
data/lib/pact/support/version.rb
CHANGED
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.
|
4
|
+
version: 1.14.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: 2020-
|
15
|
+
date: 2020-02-13 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: randexp
|