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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34ad1521c12f3a1e0f225ab5958680e16b19aa370ad7ac03cea88a7a79a3c67e
4
- data.tar.gz: 0a157e737ffd8c4802d1a84d80d1181343b4d1f44c7ae6f608a5e83fc27ea85e
3
+ metadata.gz: ec38a35b2e9d43b66692ac792f5fe25ce130ee1687611733e086131482bac895
4
+ data.tar.gz: c86f6285e1445ee5d42cb46338f791c7e7919ac09e52dbc481048784dcf8f917
5
5
  SHA512:
6
- metadata.gz: bf8b9fd7d1534044807b3fe3fc22ebb1dcdbb6cffdb87e941f2694947343b29bf59b8f4d0cc9e51e8f7fa97af53d665239b4c1bb28ffac8d0766b8c27798e4f4
7
- data.tar.gz: a0bef5bd050094c83eac78e6d4f542dde6bd2fc1dce26f3d7dcb8baa35d54086ea95fcaa84492145eaa2ff973b75c286dc2bdda4816c42e778ac15094e795e0d
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
- else
35
+ elsif body
35
36
  return self.for(body)
36
37
  end
37
38
  end
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Async
22
22
  module HTTP
23
- VERSION = "0.27.10"
23
+ VERSION = "0.27.11"
24
24
  end
25
25
  end
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.10
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-09 00:00:00.000000000 Z
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.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.