async-http-faraday 0.8.0 → 0.8.1
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 +1 -1
- data/lib/async/http/faraday/adapter.rb +1 -2
- data/lib/async/http/faraday/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d167212f7b791a530da392a052068d2642156f8062251169739ff1bef0a5d374
|
|
4
|
+
data.tar.gz: 8b8bcaa9d413b6f675966bae48d513b4eb3978ea94cca42e00249ff4f7789ebc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2d33b185f9aa3b54a7df0d9371010f98f71bf5aac6852abf911a833fda842ec191d06ab8fb4658e035303a6fa1ed1c9c593441033420d36878533ed1d93f6ced
|
|
7
|
+
data.tar.gz: c2e224e91b79058e5636e93ead6a47c972e1e6519c0fb4b84ba1cfcb7996c7645ad1afbd3aa180b15e3b81ae32146c000b0bbc86f4998e0963508a07fb236d6a
|
data/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Provides an adaptor for [Faraday] to perform async HTTP requests. If you are designing a new library, you should probably just use `Async::HTTP::Client` directly.
|
|
4
4
|
|
|
5
|
-
[](https://travis-ci.com/socketry/async-http-faraday)
|
|
6
6
|
[](https://codeclimate.com/github/socketry/async-http-faraday)
|
|
7
7
|
[](https://coveralls.io/r/socketry/async-http-faraday)
|
|
8
8
|
|
|
@@ -65,13 +65,12 @@ module Async
|
|
|
65
65
|
Sync do
|
|
66
66
|
with_timeout do
|
|
67
67
|
response = @internet.call(env[:method].to_s.upcase, env[:url].to_s, env[:request_headers], env[:body] || [])
|
|
68
|
-
|
|
68
|
+
|
|
69
69
|
save_response(env, response.status, response.read, response.headers)
|
|
70
70
|
end
|
|
71
71
|
ensure
|
|
72
72
|
# If we are the top level task, even if we are persistent, we must close the connection:
|
|
73
73
|
if parent.nil? || !@persistent
|
|
74
|
-
Async.logger.debug(self) {"Closing persistent connections."}
|
|
75
74
|
@internet.close
|
|
76
75
|
end
|
|
77
76
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: async-http-faraday
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samuel Williams
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-04-
|
|
11
|
+
date: 2020-04-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: async-http
|