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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c50b1966502c423ba346bd03b9d812b5ba93b7ab
4
- data.tar.gz: 9f6ffbd0645c74e5c64f97917e57970d87e52735
3
+ metadata.gz: 92d18ca8bd1b86d4ae9c662ec2a44542527ea210
4
+ data.tar.gz: 8c7fe0d434067f498247604d32e60d0fc464d59e
5
5
  SHA512:
6
- metadata.gz: 8ff872db398c3abc1c69533e0cf08a7ff2d26abcef145555078246c504661067ce101f8b161e92fb9aba0847c0f78871186608c235b10a1cdcfd573ff4783e2c
7
- data.tar.gz: ed538859061709631e5ce1ba0bd214cdbcb840a80afcf03064166464d15e17d63cf807500f0e5429e3d876a13c4b5e9bb00f3012b18042736340b9ba4b8a1947
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.start(uri.host, uri.port, :ENV, use_ssl: uri.scheme == 'https') do |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)
@@ -1,5 +1,5 @@
1
1
  module Pact
2
2
  module Support
3
- VERSION = "1.13.0"
3
+ VERSION = "1.14.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.13.0
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-01-24 00:00:00.000000000 Z
15
+ date: 2020-02-13 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: randexp