async-http 0.45.0 → 0.45.1

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: d5e09e728db3e597f9a7b4b9624d13f62c65e9f13937a3f71c12fc8d833c2cdf
4
- data.tar.gz: 10d32ca9036f5528f13aad1fdedf323406da70f9aff5e58ec6e23207fe53a801
3
+ metadata.gz: 993fa6b4958e7b8365aaeae3c20037cffec69a3fa623947d0a7acd264f631541
4
+ data.tar.gz: 93d4cfc3e8ed8a28cbb8086636b87e773398be04656fb4664f005f4466432866
5
5
  SHA512:
6
- metadata.gz: d48fe23d432ccfec8b61635cdf7e6633a26920b9169b56c40ee5230e059824f2e36c5ad9f0163efd0931f1bc91ad59318b54183488040b9bc72875d6d7be9071
7
- data.tar.gz: c9faba5394ce276c6f20aac2c4396c1aea37705f2153169edfd1bdeabb2b1afd6fb62fa5c9dff5cb8d439998769dd7e0ac5d84f7df137b168829660643666941
6
+ metadata.gz: de3bacfaf3b423294a6ba7715159ff2a24ae6396418d937cf6f125b7acc71f10bc5608253119d46116b360857be1b3b1a48805d0259b05e0d688196fd01b3340
7
+ data.tar.gz: 2cd1897eec316446d31e791a1cd00b4f9ce4bc3a8781a0621ba8024122a0a6ed14f214b3c778fd2d14ebfc7555c1e60102ae33ca229b778082c5f072cb23cf75
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
16
16
  spec.executables = spec.files.grep(%r{^bin/}) {|f| File.basename(f)}
17
17
  spec.require_paths = ["lib"]
18
18
 
19
- spec.add_dependency("async", "~> 1.14")
19
+ spec.add_dependency("async", "~> 1.18")
20
20
  spec.add_dependency("async-io", "~> 1.18")
21
21
 
22
22
  spec.add_dependency("protocol-http", "~> 0.8.0")
@@ -117,7 +117,7 @@ module Async
117
117
  end
118
118
 
119
119
  # We are ready for processing:
120
- @connection.requests.enqueue self
120
+ @connection.requests.enqueue(self)
121
121
  end
122
122
  end
123
123
 
@@ -56,21 +56,19 @@ module Async
56
56
  @requests.enqueue nil
57
57
  end
58
58
 
59
- def each(task: Task.current)
60
- while request = @requests.dequeue
59
+ def each
60
+ @requests.async do |task, request|
61
61
  @count += 1
62
62
 
63
- task.async do
64
- begin
65
- response = yield(request)
66
- rescue
67
- # We need to close the stream if the user code blows up while generating a response:
68
- request.stream.send_reset_stream(::Protocol::HTTP2::INTERNAL_ERROR)
69
-
70
- raise
71
- else
72
- request.send_response(response)
73
- end
63
+ begin
64
+ response = yield(request)
65
+ rescue
66
+ # We need to close the stream if the user code blows up while generating a response:
67
+ request.stream.send_reset_stream(::Protocol::HTTP2::INTERNAL_ERROR)
68
+
69
+ raise
70
+ else
71
+ request.send_response(response)
74
72
  end
75
73
  end
76
74
  end
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Async
22
22
  module HTTP
23
- VERSION = "0.45.0"
23
+ VERSION = "0.45.1"
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.45.0
4
+ version: 0.45.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: 2019-06-12 00:00:00.000000000 Z
11
+ date: 2019-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.14'
19
+ version: '1.18'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.14'
26
+ version: '1.18'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: async-io
29
29
  requirement: !ruby/object:Gem::Requirement