faraday-http 2.0.0 → 2.0.1
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/http.rb +3 -3
- data/lib/faraday/http/version.rb +1 -1
- metadata +2 -72
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ee9c6b6b2e970f059954d9a5faca476cb6fc68509331d64c8a4c07600bf506a
|
4
|
+
data.tar.gz: ea70e044b17534562e97af62a2f42c048b85537c185b27e16073671446ff7ba2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a6e551e5b3dd7aa0f3cb53a6c21a0694e27fe39ef2ce54e0d5497b306cb8a7c0beab47ba1844c9d3454022fd64ce0091a4e36f9c5bc45ee5d5172edf406f904
|
7
|
+
data.tar.gz: d9f8e7e27a2646e63b366fae79461e3a39a78eaf967b0326b2680853b90dfa85b1573981c3e326592309093da81f0614009263aac70ef6603a3bfe0f4a4522fa
|
data/lib/faraday/adapter/http.rb
CHANGED
@@ -115,7 +115,7 @@ module Faraday
|
|
115
115
|
|
116
116
|
def ssl_client_cert(cert)
|
117
117
|
return nil if cert.nil?
|
118
|
-
return OpenSSL::X509::Certificate.new(File.read(cert)) if cert.is_a(String)
|
118
|
+
return OpenSSL::X509::Certificate.new(File.read(cert)) if cert.is_a?(String)
|
119
119
|
return cert if cert.is_a?(OpenSSL::X509::Certificate)
|
120
120
|
|
121
121
|
raise Faraday::Error, "invalid ssl.client_cert: #{cert.inspect}"
|
@@ -123,8 +123,8 @@ module Faraday
|
|
123
123
|
|
124
124
|
def ssl_client_key(cert)
|
125
125
|
return nil if cert.nil?
|
126
|
-
return OpenSSL::PKey::RSA.new(File.read(cert)) if cert.is_a(String)
|
127
|
-
return cert if cert.is_a?(OpenSSL::PKey::RSA
|
126
|
+
return OpenSSL::PKey::RSA.new(File.read(cert)) if cert.is_a?(String)
|
127
|
+
return cert if cert.is_a?(OpenSSL::PKey::RSA) || cert.is_a?(OpenSSL::PKey::DSA)
|
128
128
|
|
129
129
|
raise Faraday::Error, "invalid ssl.client_key: #{cert.inspect}"
|
130
130
|
end
|
data/lib/faraday/http/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faraday-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- iMacTia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -44,76 +44,6 @@ dependencies:
|
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '6'
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: bundler
|
49
|
-
requirement: !ruby/object:Gem::Requirement
|
50
|
-
requirements:
|
51
|
-
- - "~>"
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: '2.0'
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
requirements:
|
58
|
-
- - "~>"
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: '2.0'
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: rake
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - "~>"
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: '13.0'
|
68
|
-
type: :development
|
69
|
-
prerelease: false
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
71
|
-
requirements:
|
72
|
-
- - "~>"
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: '13.0'
|
75
|
-
- !ruby/object:Gem::Dependency
|
76
|
-
name: rspec
|
77
|
-
requirement: !ruby/object:Gem::Requirement
|
78
|
-
requirements:
|
79
|
-
- - "~>"
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: '3.0'
|
82
|
-
type: :development
|
83
|
-
prerelease: false
|
84
|
-
version_requirements: !ruby/object:Gem::Requirement
|
85
|
-
requirements:
|
86
|
-
- - "~>"
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: '3.0'
|
89
|
-
- !ruby/object:Gem::Dependency
|
90
|
-
name: simplecov
|
91
|
-
requirement: !ruby/object:Gem::Requirement
|
92
|
-
requirements:
|
93
|
-
- - ">="
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
version: '0'
|
96
|
-
type: :development
|
97
|
-
prerelease: false
|
98
|
-
version_requirements: !ruby/object:Gem::Requirement
|
99
|
-
requirements:
|
100
|
-
- - ">="
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: '0'
|
103
|
-
- !ruby/object:Gem::Dependency
|
104
|
-
name: webmock
|
105
|
-
requirement: !ruby/object:Gem::Requirement
|
106
|
-
requirements:
|
107
|
-
- - "~>"
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '3.4'
|
110
|
-
type: :development
|
111
|
-
prerelease: false
|
112
|
-
version_requirements: !ruby/object:Gem::Requirement
|
113
|
-
requirements:
|
114
|
-
- - "~>"
|
115
|
-
- !ruby/object:Gem::Version
|
116
|
-
version: '3.4'
|
117
47
|
description: Faraday Adapter for HTTP.rb
|
118
48
|
email:
|
119
49
|
- giuffrida.mattia@gmail.com
|