async-http 0.27.10 → 0.27.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/async/http/body/buffered.rb +2 -1
- data/lib/async/http/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec38a35b2e9d43b66692ac792f5fe25ce130ee1687611733e086131482bac895
|
4
|
+
data.tar.gz: c86f6285e1445ee5d42cb46338f791c7e7919ac09e52dbc481048784dcf8f917
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc2b74f5f9c5e068a108bee6c3e84075e1fe0e50fe336bd5d6efdf1e4234e2b22719f9114fd5888afa866d4e54fb8c63e904d411323bb20c74685080581fbc9d
|
7
|
+
data.tar.gz: 2d9f5381548d1dd443932532d69de9187fa76933f793e41c8a6f5daea4153c3f17d69fd2b1dd935834664faef2309fb8f61154989b9de398fa7fe0c61434d2c4
|
@@ -26,12 +26,13 @@ module Async
|
|
26
26
|
# A body which buffers all it's contents.
|
27
27
|
class Buffered < Readable
|
28
28
|
# Wraps an array into a buffered body.
|
29
|
+
# @return [Readable, nil] the wrapped body or nil if nil was given.
|
29
30
|
def self.wrap(body)
|
30
31
|
if body.is_a? Async::HTTP::Body::Readable
|
31
32
|
return body
|
32
33
|
elsif body.is_a? Array
|
33
34
|
return self.new(body)
|
34
|
-
|
35
|
+
elsif body
|
35
36
|
return self.for(body)
|
36
37
|
end
|
37
38
|
end
|
data/lib/async/http/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.27.
|
4
|
+
version: 0.27.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
192
|
version: '0'
|
193
193
|
requirements: []
|
194
194
|
rubyforge_project:
|
195
|
-
rubygems_version: 2.7.
|
195
|
+
rubygems_version: 2.7.6
|
196
196
|
signing_key:
|
197
197
|
specification_version: 4
|
198
198
|
summary: A HTTP client and server library.
|