faraday-net_http 3.1.0 → 3.2.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 +4 -4
- data/lib/faraday/adapter/net_http.rb +6 -4
- data/lib/faraday/net_http/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 359dd190e51ff06e8c8504f517b285c436d30f94c3630852246c9182f6d8eba9
|
4
|
+
data.tar.gz: 462acc7bba928561128f72ff9ec3050d39c31092dc0bd8a6a162a7a56e5153ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 686c5fe61f60bd0e576bf7669868827c8f58db87b1c577e5cbfc5eec956c8630f013358a3ce9873b7d07272db961c249f2cefd8570847b854adc1b2599fca054
|
7
|
+
data.tar.gz: bc3f0acd2992b18de2bb6451e91c4a374b555ca486bc0dee5645c17534ed5a2521b8444edecba0ff77abab2364a182b54f0752a321058a83612ed848c87baffb
|
@@ -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
|
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,12 +128,15 @@ module Faraday
|
|
129
128
|
end
|
130
129
|
|
131
130
|
def configure_ssl(http, ssl)
|
132
|
-
|
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)
|
136
135
|
|
137
|
-
|
136
|
+
cert, *extra_chain_cert = ssl[:client_cert]
|
137
|
+
http.cert = cert if cert
|
138
|
+
http.extra_chain_cert = extra_chain_cert if extra_chain_cert.any?
|
139
|
+
|
138
140
|
http.key = ssl[:client_key] if ssl[:client_key]
|
139
141
|
http.ca_file = ssl[:ca_file] if ssl[:ca_file]
|
140
142
|
http.ca_path = ssl[:ca_path] if ssl[:ca_path]
|
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.
|
4
|
+
version: 3.2.0
|
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
|
11
|
+
date: 2024-08-01 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.
|
59
|
+
changelog_uri: https://github.com/lostisland/faraday-net_http/releases/tag/v3.2.0
|
60
60
|
post_install_message:
|
61
61
|
rdoc_options: []
|
62
62
|
require_paths:
|
@@ -72,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: '0'
|
74
74
|
requirements: []
|
75
|
-
rubygems_version: 3.5.
|
75
|
+
rubygems_version: 3.5.11
|
76
76
|
signing_key:
|
77
77
|
specification_version: 4
|
78
78
|
summary: Faraday adapter for Net::HTTP
|