faraday-net_http 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/faraday/adapter/net_http.rb +2 -3
- data/lib/faraday/net_http/version.rb +1 -1
- data/lib/faraday/net_http.rb +0 -3
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b80c4fb24e6f237468c024b5d2d5ecbab468f80e53ae032228a349f81f5e094d
|
4
|
+
data.tar.gz: 2cc09bb8eb7b2cd5d8f4dddb97f081f9e967359772f84ab9cc958403d483fc74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
-
|
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)
|
data/lib/faraday/net_http.rb
CHANGED
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.
|
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:
|
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.
|
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: []
|