faraday-net_http 2.0.0 → 2.0.3

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: 7365d1f9a008eb354cbbcce1b0e3240650af808e0bbf560cf2899ccf7f2e563e
4
- data.tar.gz: b76c90f94af3cbb6c805c8f52a40b52493c870e47d301d49c85d62ade92c292f
3
+ metadata.gz: 7ef9f1370ac9c7ce8698f1101dd8bc2abe3127a3499c346af6b59bd46f0091f0
4
+ data.tar.gz: 012e6c8f79e2bb6a8ae7f22878d01ee7a5565f7eb5450bff25f7a49ea04760d3
5
5
  SHA512:
6
- metadata.gz: bee9f6377442d7415517b240862fe120ef5dd9b372113d2205ac19b0c22b8ea0bf3fec4af2ba1466c9fcfe4168851bfd9078829c0076c6de842e24ade6fdafd9
7
- data.tar.gz: 6070ef641164d592931e43ffb2f83d9fa83e1f30b41f0950c0439d90eecaad25ae0ee2ea7f7440faf7a440e9eb742e5e74d969681255050ea889fa8658def52e
6
+ metadata.gz: 2d386a528dc585efe0bc2cc539009bb8d5a39188632db3fac071115d7da70fa39b52e5fe259cb9d1e028c7ed07bd841098f1f82ec16a07c0a3cc5bb7275efb50
7
+ data.tar.gz: c2676a71f09277c68c62c2224609c07853062c353ac47f865d58d00d675cd52694730f660f4d0fb915fb4d20d06e6eca5f05749c7c2ce98e59fb21b691a54afb
data/README.md CHANGED
@@ -24,7 +24,6 @@ Or install it yourself as:
24
24
  conn = Faraday.new(...) do |f|
25
25
  f.adapter :net_http do |http|
26
26
  # yields Net::HTTP
27
- http.idle_timeout = 100
28
27
  http.verify_callback = lambda do |preverify, cert_store|
29
28
  # do something here...
30
29
  end
@@ -15,6 +15,7 @@ module Faraday
15
15
  exceptions = [
16
16
  IOError,
17
17
  Errno::EADDRNOTAVAIL,
18
+ Errno::EALREADY,
18
19
  Errno::ECONNABORTED,
19
20
  Errno::ECONNREFUSED,
20
21
  Errno::ECONNRESET,
@@ -210,7 +211,7 @@ module Faraday
210
211
  def encoded_body(http_response)
211
212
  body = http_response.body || +''
212
213
  /\bcharset=\s*(.+?)\s*(;|$)/.match(http_response['Content-Type']) do |match|
213
- content_charset = Encoding.find(match.captures.first)
214
+ content_charset = ::Encoding.find(match.captures.first)
214
215
  body = body.dup if body.frozen?
215
216
  body.force_encoding(content_charset)
216
217
  rescue ArgumentError
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Faraday
4
4
  module NetHttp
5
- VERSION = '2.0.0'
5
+ VERSION = '2.0.3'
6
6
  end
7
7
  end
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'faraday'
4
3
  require 'faraday/adapter/net_http'
5
4
  require 'faraday/net_http/version'
6
5
 
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday-net_http
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.3
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: 2022-01-04 00:00:00.000000000 Z
11
+ date: 2022-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
20
- type: :runtime
19
+ version: '1.0'
20
+ type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '2.0'
26
+ version: '1.0'
27
27
  description: Faraday adapter for Net::HTTP
28
28
  email:
29
29
  - janvanderpas@gmail.com
@@ -42,7 +42,7 @@ licenses:
42
42
  metadata:
43
43
  homepage_uri: https://github.com/lostisland/faraday-net_http
44
44
  source_code_uri: https://github.com/lostisland/faraday-net_http
45
- changelog_uri: https://github.com/lostisland/faraday-net_http/releases/tag/v2.0.0
45
+ changelog_uri: https://github.com/lostisland/faraday-net_http/releases/tag/v2.0.3
46
46
  post_install_message:
47
47
  rdoc_options: []
48
48
  require_paths: