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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a05570eef6dd08482c54a0a61075c54d3d16be4593d74916455f0776b31363d3
4
- data.tar.gz: 91b37ec14ae375e91dc93305b8f7ae5f8d143784458091617c53268e81dd3fa7
3
+ metadata.gz: 1ee9c6b6b2e970f059954d9a5faca476cb6fc68509331d64c8a4c07600bf506a
4
+ data.tar.gz: ea70e044b17534562e97af62a2f42c048b85537c185b27e16073671446ff7ba2
5
5
  SHA512:
6
- metadata.gz: e44331b34e0bb87f3232dfdab12aaa592df0cb3ec2498012b8a16fdc4dae28d06c7ce370e23de3e33a75591ce70875a2b70a217aa133c35a9313e82b9199764b
7
- data.tar.gz: 18824e03bebea59b963c754210f5fc3e4904e44e07b0c9106987f383c4af4a87305e3562cea5ebdef015e0a368248bad3585d0ed3499139025c7f8c17f0b6ae6
6
+ metadata.gz: 6a6e551e5b3dd7aa0f3cb53a6c21a0694e27fe39ef2ce54e0d5497b306cb8a7c0beab47ba1844c9d3454022fd64ce0091a4e36f9c5bc45ee5d5172edf406f904
7
+ data.tar.gz: d9f8e7e27a2646e63b366fae79461e3a39a78eaf967b0326b2680853b90dfa85b1573981c3e326592309093da81f0614009263aac70ef6603a3bfe0f4a4522fa
@@ -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, OpenSSL::PKey::DSA)
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Faraday
4
4
  module Http
5
- VERSION = '2.0.0'
5
+ VERSION = '2.0.1'
6
6
  end
7
7
  end
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.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: 2022-10-22 00:00:00.000000000 Z
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