faraday-net_http 3.1.0 → 3.1.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: 2d9a033eff57867fb6f0d7ef439a1a218ce10dcfad224979f1af82f96e8fa201
4
- data.tar.gz: bce85e35b8871f4ec9ba42410043bd74608ce577ea5221f4397ee0929b2be03b
3
+ metadata.gz: e595625bf65cf66a44d366ec36d1b221c7fe62b1d53a572a8b3bd5d953b268e0
4
+ data.tar.gz: 5d7eea07713333aca4c4c8af94abf07b79c4e84a7e7d4fd79600a884a56d8711
5
5
  SHA512:
6
- metadata.gz: 733173b97da6b8f8043dec130ddabb32f7f5e94673a095029d5d52b9b74326f34dee5fd2a6fcbcb91908d6168bce08ae22b2997d1c8e2124de3680f5c9e60bc4
7
- data.tar.gz: e845d5bd38188d95f680a42b3ab78c06e8c485dcb27a6768ad4f4366208ca176b24db1ef657bfd3cb5c72c9b32440b4d536910bba36a454bfea52214a68f08a1
6
+ metadata.gz: dedd8d9936531d1413cef8619cfe9ff411737741e48cb21229cf0c8859d334c37b5a14d808aa0272714a3ac188b71e42d5d43c1e6afd66ab126cd6db749bdb26
7
+ data.tar.gz: ae77a363d57842f37d0cd68af730901e5c7fee5c8bc3a4efceec3df55012a0649eb66a4968eb73fe5317a2c565f604fe534e5ee5ba5600bae47490a4c978c04a
@@ -42,8 +42,7 @@ module Faraday
42
42
 
43
43
  def build_connection(env)
44
44
  net_http_connection(env).tap do |http|
45
- http.use_ssl = env[:url].scheme == 'https' if http.respond_to?(:use_ssl=)
46
- configure_ssl(http, env[:ssl])
45
+ configure_ssl(http, env[:ssl]) if env[:url].scheme == 'https' && env[:ssl]
47
46
  configure_request(http, env[:request])
48
47
  end
49
48
  end
@@ -129,7 +128,7 @@ module Faraday
129
128
  end
130
129
 
131
130
  def configure_ssl(http, ssl)
132
- return unless ssl
131
+ http.use_ssl = true if http.respond_to?(:use_ssl=)
133
132
 
134
133
  http.verify_mode = ssl_verify_mode(ssl)
135
134
  http.cert_store = ssl_cert_store(ssl)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Faraday
4
4
  module NetHttp
5
- VERSION = '3.1.0'
5
+ VERSION = '3.1.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday-net_http
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan van der Pas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-09 00:00:00.000000000 Z
11
+ date: 2024-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -56,7 +56,7 @@ licenses:
56
56
  metadata:
57
57
  homepage_uri: https://github.com/lostisland/faraday-net_http
58
58
  source_code_uri: https://github.com/lostisland/faraday-net_http
59
- changelog_uri: https://github.com/lostisland/faraday-net_http/releases/tag/v3.1.0
59
+ changelog_uri: https://github.com/lostisland/faraday-net_http/releases/tag/v3.1.1
60
60
  post_install_message:
61
61
  rdoc_options: []
62
62
  require_paths: