async-http 0.52.1 → 0.52.2

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: 3eae41a03fcbeb32308cd6f6632f18ef6f8c3fc8bbf4dabd8e360cca792c2510
4
- data.tar.gz: 473658b819493d2c4cd493c7b723ae02bccf69f3cb19f760599d18d30867de70
3
+ metadata.gz: 7ed1627df4ea6935559ad738ac3c8d71fefdf17374a0cf9fcfe61f7b0de272fd
4
+ data.tar.gz: f98c998cd157d5899e1c9625e878d7eec7c9aa1eecde0d4f2e3364d8b4c3825d
5
5
  SHA512:
6
- metadata.gz: d7ded1163becb221402d6c048d9611518883662d3efc6a5246268d7feff5fe013736d4fcb60c082a3d821bb9df3f1dc8da0e07f0995d0564c2b37fa6160587f9
7
- data.tar.gz: 9a7f56f11024114ee9615af2abc60fcba83d20803815519956db9fee20f212cd156d1505da349c21b702c85e85373a0688601541bc3588944e583fe358d55044
6
+ metadata.gz: 80a5c210bb4cdafe27b1f0e8c44379ee15980a18aff2e26e070db3c5f0cccfca8045c0d9275174e9dc84f54b776e20a400bc77d9b728f969f52681c3747338ba
7
+ data.tar.gz: a429070d12bfcdcccf92dbd44c8c1753f0ec90098e27c8c176e8c6a2cde75e789eb9398054b4a93201778efb8f827bf10c65be57bc35f76de68ebb7181ba68d3
@@ -21,8 +21,8 @@ Gem::Specification.new do |spec|
21
21
  spec.add_dependency("async-io", "~> 1.28")
22
22
  spec.add_dependency("async-pool", "~> 0.2")
23
23
 
24
- spec.add_dependency("protocol-http", "~> 0.18.0")
25
- spec.add_dependency("protocol-http1", "~> 0.12.0")
24
+ spec.add_dependency("protocol-http", "~> 0.19.0")
25
+ spec.add_dependency("protocol-http1", "~> 0.13.0")
26
26
  spec.add_dependency("protocol-http2", "~> 0.14.0")
27
27
 
28
28
  # spec.add_dependency("openssl")
@@ -1,19 +1,19 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- async-http (0.52.1)
4
+ async-http (0.52.2)
5
5
  async (~> 1.25)
6
6
  async-io (~> 1.28)
7
7
  async-pool (~> 0.2)
8
- protocol-http (~> 0.18.0)
9
- protocol-http1 (~> 0.12.0)
8
+ protocol-http (~> 0.19.0)
9
+ protocol-http1 (~> 0.13.0)
10
10
  protocol-http2 (~> 0.14.0)
11
11
 
12
12
  GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
15
  ast (2.4.0)
16
- async (1.25.2)
16
+ async (1.26.0)
17
17
  console (~> 1.0)
18
18
  nio4r (~> 2.3)
19
19
  timers (~> 4.1)
@@ -55,9 +55,9 @@ GEM
55
55
  process-terminal (0.2.0)
56
56
  ffi
57
57
  protocol-hpack (1.4.2)
58
- protocol-http (0.18.0)
59
- protocol-http1 (0.12.0)
60
- protocol-http (~> 0.18)
58
+ protocol-http (0.19.0)
59
+ protocol-http1 (0.13.0)
60
+ protocol-http (~> 0.19)
61
61
  protocol-http2 (0.14.0)
62
62
  protocol-hpack (~> 1.4)
63
63
  protocol-http (~> 0.18)
@@ -32,6 +32,10 @@ module Async
32
32
  @delay = delay
33
33
  end
34
34
 
35
+ def ready?
36
+ false
37
+ end
38
+
35
39
  def read
36
40
  Async::Task.current.sleep(@delay)
37
41
 
@@ -59,6 +59,12 @@ module Async
59
59
  end
60
60
  end
61
61
 
62
+ def ready?
63
+ if @stream
64
+ @stream.output.ready?
65
+ end
66
+ end
67
+
62
68
  # Read the next available chunk.
63
69
  def read
64
70
  unless @task
@@ -68,6 +68,10 @@ module Async
68
68
  @closed
69
69
  end
70
70
 
71
+ def ready?
72
+ !@queue.empty?
73
+ end
74
+
71
75
  # Has the producer called #finish and has the reader consumed the nil token?
72
76
  def empty?
73
77
  @finished
@@ -22,6 +22,6 @@
22
22
 
23
23
  module Async
24
24
  module HTTP
25
- VERSION = "0.52.1"
25
+ VERSION = "0.52.2"
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.52.1
4
+ version: 0.52.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -58,28 +58,28 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.18.0
61
+ version: 0.19.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.18.0
68
+ version: 0.19.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: protocol-http1
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.12.0
75
+ version: 0.13.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.12.0
82
+ version: 0.13.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: protocol-http2
85
85
  requirement: !ruby/object:Gem::Requirement