faraday-net_http 1.0.1 → 1.0.2

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: abc66839ab88c5fc96b602b163b00c896eaee90a533db6464dbe38aa763f857f
4
- data.tar.gz: a26950415c34a093595c44b34dcd79af3efa5d9513097444e478467e882fa787
3
+ metadata.gz: b80c4fb24e6f237468c024b5d2d5ecbab468f80e53ae032228a349f81f5e094d
4
+ data.tar.gz: 2cc09bb8eb7b2cd5d8f4dddb97f081f9e967359772f84ab9cc958403d483fc74
5
5
  SHA512:
6
- metadata.gz: 13c56f77c7bad337f780d7651479550a1f4a639eb33612c32eb76480337de2d024e531d7b22f0a8b12f4f5f787986cff208e4e5f606ec74ee4de81fe00a8458b
7
- data.tar.gz: aa3eee27950f2fc19a9a53da24ad00c66ffaf4f31b97dc110f225ccdb99d851b15a8024e70f4b6445ab026621b6a04f87e7593d178ecf5efc0673b2ef3896088
6
+ metadata.gz: 73ea02cabd6dbccedecb3c7af36d73ada5e460b7c3ba0c35a0f6d45eca1836c6178f6c1ff10cf8d1976e63a65062e3f32c515492d7ae6596784881cffb2c1ada
7
+ data.tar.gz: da75d771c889289e34f32868bab49aef2ad0fef06c8d4a96866a73d25dc06583c9c6928eb2dbf71e8b1ced0bcb3de047540a6c37ac6e439e7d8d0287692a0fca
@@ -41,8 +41,7 @@ module Faraday
41
41
 
42
42
  def build_connection(env)
43
43
  net_http_connection(env).tap do |http|
44
- http.use_ssl = env[:url].scheme == 'https' if http.respond_to?(:use_ssl=)
45
- configure_ssl(http, env[:ssl])
44
+ configure_ssl(http, env[:ssl]) if env[:url].scheme == 'https' && env[:ssl]
46
45
  configure_request(http, env[:request])
47
46
  end
48
47
  end
@@ -155,7 +154,7 @@ module Faraday
155
154
  end
156
155
 
157
156
  def configure_ssl(http, ssl)
158
- return unless ssl
157
+ http.use_ssl = true if http.respond_to?(:use_ssl=)
159
158
 
160
159
  http.verify_mode = ssl_verify_mode(ssl)
161
160
  http.cert_store = ssl_cert_store(ssl)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Faraday
4
4
  module NetHttp
5
- VERSION = '1.0.1'
5
+ VERSION = '1.0.2'
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: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan van der Pas
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-12 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
@@ -169,7 +169,7 @@ metadata:
169
169
  homepage_uri: https://github.com/lostisland/faraday-net_http
170
170
  source_code_uri: https://github.com/lostisland/faraday-net_http
171
171
  changelog_uri: https://github.com/lostisland/faraday-net_http
172
- post_install_message:
172
+ post_install_message:
173
173
  rdoc_options: []
174
174
  require_paths:
175
175
  - lib
@@ -184,8 +184,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
184
184
  - !ruby/object:Gem::Version
185
185
  version: '0'
186
186
  requirements: []
187
- rubygems_version: 3.1.4
188
- signing_key:
187
+ rubygems_version: 3.5.16
188
+ signing_key:
189
189
  specification_version: 4
190
190
  summary: Faraday adapter for Net::HTTP
191
191
  test_files: []