faraday-http 2.0.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/faraday/adapter/http.rb +7 -2
- data/lib/faraday/http/version.rb +1 -1
- metadata +5 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f0b1a35c00bfac4b7d43d23313fec9f7708c8fd6abb4d6f62a1f007e40e48737
|
|
4
|
+
data.tar.gz: 78005f5be510094ef3086756b0f5bfe2ac602711beec985ba5e5102111ad8d6c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 001d8dd063d5af121e4bb47be349e034046544e35a7ab7844393a9f36d8eefdb9654045b9aacc921d13fedf0e691279141e0bcc5bc85f1d88dc0312317f8f12d
|
|
7
|
+
data.tar.gz: cfffc91e76eff33784f63b532730d3e7179678bc9d7afa8e433c39a2d8ec378eaa4d97dd7fa0a12f65b081b1c0cd6db2932d380e556bdcd593fc252769933de0
|
data/README.md
CHANGED
|
@@ -43,8 +43,8 @@ for an interactive prompt that will allow you to experiment.
|
|
|
43
43
|
|
|
44
44
|
To install this gem onto your local machine, run `bundle exec rake install`.
|
|
45
45
|
To release a new version, update the version number in `version.rb`,
|
|
46
|
-
and then
|
|
47
|
-
|
|
46
|
+
and then create a GitHub Releases entry, which will create a git tag for the version,
|
|
47
|
+
and push the `.gem` file to [rubygems.org] via the GitHub Actions Workflow `publish.yml`.
|
|
48
48
|
|
|
49
49
|
## Contributing
|
|
50
50
|
|
data/lib/faraday/adapter/http.rb
CHANGED
|
@@ -49,8 +49,13 @@ module Faraday
|
|
|
49
49
|
def request_with_wrapped_block(response, env)
|
|
50
50
|
return unless block_given?
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
loop do
|
|
53
|
+
chunk = response.body.readpartial
|
|
54
|
+
break if chunk.nil? # http.rb < 6
|
|
55
|
+
|
|
53
56
|
yield(chunk, env)
|
|
57
|
+
rescue EOFError # http.rb >= 6
|
|
58
|
+
break
|
|
54
59
|
end
|
|
55
60
|
end
|
|
56
61
|
|
|
@@ -80,7 +85,7 @@ module Faraday
|
|
|
80
85
|
def ssl_context(ssl)
|
|
81
86
|
params = {}
|
|
82
87
|
%i[
|
|
83
|
-
ca_file ca_path cert_store verify_depth
|
|
88
|
+
ca_file ca_path cert_store ciphers verify_depth
|
|
84
89
|
].each do |key|
|
|
85
90
|
if (value = ssl[key])
|
|
86
91
|
params[key] = value
|
data/lib/faraday/http/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
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.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- iMacTia
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: faraday
|
|
@@ -33,7 +32,7 @@ dependencies:
|
|
|
33
32
|
version: '4.0'
|
|
34
33
|
- - "<"
|
|
35
34
|
- !ruby/object:Gem::Version
|
|
36
|
-
version: '
|
|
35
|
+
version: '7'
|
|
37
36
|
type: :runtime
|
|
38
37
|
prerelease: false
|
|
39
38
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -43,7 +42,7 @@ dependencies:
|
|
|
43
42
|
version: '4.0'
|
|
44
43
|
- - "<"
|
|
45
44
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: '
|
|
45
|
+
version: '7'
|
|
47
46
|
description: Faraday Adapter for HTTP.rb
|
|
48
47
|
email:
|
|
49
48
|
- giuffrida.mattia@gmail.com
|
|
@@ -64,7 +63,6 @@ metadata:
|
|
|
64
63
|
source_code_uri: https://github.com/lostisland/faraday-http
|
|
65
64
|
changelog_uri: https://github.com/lostisland/faraday-http/releases
|
|
66
65
|
rubygems_mfa_required: 'true'
|
|
67
|
-
post_install_message:
|
|
68
66
|
rdoc_options: []
|
|
69
67
|
require_paths:
|
|
70
68
|
- lib
|
|
@@ -79,8 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
79
77
|
- !ruby/object:Gem::Version
|
|
80
78
|
version: '0'
|
|
81
79
|
requirements: []
|
|
82
|
-
rubygems_version: 3.
|
|
83
|
-
signing_key:
|
|
80
|
+
rubygems_version: 3.6.7
|
|
84
81
|
specification_version: 4
|
|
85
82
|
summary: Faraday Adapter for HTTP.rb
|
|
86
83
|
test_files: []
|