faraday-net_http_persistent 2.1.0 → 2.2.0

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: ffe757e1437110d467bf12e5b02dfb9c645148637fda7dbd819960bc606a083f
4
- data.tar.gz: ea0f218c8a5cc9fff614d7642148059e98c3664fb66a8c9a82b520c19aa4f74a
3
+ metadata.gz: 191595752d82777e7edb7c18a0b3fd85953281b7c65ebb5e11f9fa3a0a36326f
4
+ data.tar.gz: 9bc82207a4020fe7b8df7fcee8e35bdd30308ad1555ff060ce87ff050f641c06
5
5
  SHA512:
6
- metadata.gz: 704efa657b1583d555b29a6cc71d75e936dc2dab9ac419d09d92a0a433eba72470f48b7dede5a005c8604a7a36dae62b86c53249be1090819df472a3bee55542
7
- data.tar.gz: ec494b194dbbf5dd42c91166a2cd17de25d57d7cf0155cabaf4c9dda60d906592cd8fa8558b7a6d34b523e3bedaeeaffa39b03beedfc56459bdc6bc454a6a8f0
6
+ metadata.gz: 8c6c9f078bef0572b9831b7e16fda71a331be9297b21c3d6dbb6c36713650dfe37ac5a4d2866977f9b4af87bbb06d0394f78a378c92fd0b60d50dd5a88feb378
7
+ data.tar.gz: fbeb087ef43f055a51168af96b6eab2d0fbb0f28f95548677de7cc5d543ec042a7f757d5094ba422eb14e6215a30814663ba87f5e274d4cea0554295cf5665f3
@@ -56,6 +56,10 @@ module Faraday
56
56
  raise Faraday::TimeoutError, e
57
57
  end
58
58
 
59
+ def close
60
+ @cached_connection&.shutdown
61
+ end
62
+
59
63
  private
60
64
 
61
65
  def build_connection(env)
@@ -179,7 +183,8 @@ module Faraday
179
183
  ca_file: :ca_file,
180
184
  ssl_version: :version,
181
185
  min_version: :min_version,
182
- max_version: :max_version
186
+ max_version: :max_version,
187
+ verify_hostname: :verify_hostname
183
188
  }.freeze
184
189
 
185
190
  def configure_ssl(http, ssl)
@@ -189,7 +194,7 @@ module Faraday
189
194
  http_set(http, :cert_store, ssl_cert_store(ssl))
190
195
 
191
196
  SSL_CONFIGURATIONS
192
- .select { |_, key| ssl[key] }
197
+ .select { |_, key| !ssl[key].nil? }
193
198
  .each { |target, key| http_set(http, target, ssl[key]) }
194
199
  end
195
200
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Faraday
4
4
  module NetHttpPersistent
5
- VERSION = "2.1.0"
5
+ VERSION = "2.2.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday-net_http_persistent
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Rogers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-11 00:00:00.000000000 Z
11
+ date: 2024-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -28,16 +28,22 @@ dependencies:
28
28
  name: net-http-persistent
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 4.0.4
34
+ - - "<"
32
35
  - !ruby/object:Gem::Version
33
- version: '4.0'
36
+ version: '5'
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - "~>"
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 4.0.4
44
+ - - "<"
39
45
  - !ruby/object:Gem::Version
40
- version: '4.0'
46
+ version: '5'
41
47
  description: Faraday adapter for NetHttpPersistent
42
48
  email:
43
49
  - me@mikerogers.io
@@ -56,7 +62,7 @@ licenses:
56
62
  metadata:
57
63
  homepage_uri: https://github.com/lostisland/faraday-net_http_persistent
58
64
  source_code_uri: https://github.com/lostisland/faraday-net_http_persistent
59
- changelog_uri: https://github.com/lostisland/faraday-net_http_persistent/releases/tag/v2.1.0
65
+ changelog_uri: https://github.com/lostisland/faraday-net_http_persistent/releases/tag/v2.2.0
60
66
  post_install_message:
61
67
  rdoc_options: []
62
68
  require_paths: