async-http 0.36.3 → 0.37.0

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: c623b2b96c4332233d21cdd8c2f1f663543b2df31187b31c3dc224072e78d5c7
4
- data.tar.gz: 17cbbdb849ca0d071fbb69ffd04bb646bb5e3c2d6abfda8a80af42c8c188b0a8
3
+ metadata.gz: 26fbaeb1d148dd69a2a092564e4cbee8eda80738a0aa26e510c359634c738a30
4
+ data.tar.gz: 8cbfc4b0b94394ff62fdbb67fddf6afbab091a917e4328ddf554871ba0045064
5
5
  SHA512:
6
- metadata.gz: 6ff8d9aa99750b1785dd87f727abfa5dcd42e0167386617d4a28d9ff58ad6f824c49cc55f659fc57051e2bb1062e389e8ef15e3aa7e67301db9129702a7ea486
7
- data.tar.gz: c21defad1a7ed2cd6382ee63554fe53c50f94ef9e9f1e2e356318cb55d4df5d30c2b0cc27f53f1931a65a493d1dd3f8472bc6ad88c34c1d9c630663a06279c81
6
+ metadata.gz: 35064ca4a37d8c02c711855e5bb1fbd8cb915967ed654c1ae73a8f53817f00a9991467627b8e4818ce45583b5961261ff008962bbe4767e514a3c0798fc449b8
7
+ data.tar.gz: fa002d0b6433d0da8076a71117850c62913081e9d327023378f150d4c202de73c16a65e761d18ecbb98cf648c91fb1a20ea0e7e52fb3a5b6dd8e514eacd723ed
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.add_dependency("async", "~> 1.6")
20
20
  spec.add_dependency("async-io", "~> 1.16")
21
21
 
22
- spec.add_dependency("http-protocol", "~> 0.8.0")
22
+ spec.add_dependency("http-protocol", "~> 0.9.0")
23
23
 
24
24
  # spec.add_dependency("openssl")
25
25
 
@@ -41,18 +41,20 @@ module Async
41
41
  end
42
42
 
43
43
  class Middleware
44
- def initialize(app)
45
- @app = app
44
+ def initialize(delegate)
45
+ @delegate = delegate
46
46
  end
47
47
 
48
+ attr :delegate
49
+
48
50
  def close
49
- @app.close
51
+ @delegate.close
50
52
  end
51
53
 
52
54
  include Methods
53
55
 
54
56
  def call(request)
55
- @app.call(request)
57
+ @delegate.call(request)
56
58
  end
57
59
 
58
60
  module Okay
@@ -18,6 +18,7 @@
18
18
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
19
  # THE SOFTWARE.
20
20
 
21
+ require 'async/logger'
21
22
  require 'async/notification'
22
23
 
23
24
  module Async
@@ -30,10 +30,6 @@ module Async
30
30
  class RequestFailed < StandardError
31
31
  end
32
32
 
33
- # The request was invalid/malformed in some way.
34
- class BadRequest < StandardError
35
- end
36
-
37
33
  # This is generated by server protocols.
38
34
  class Request < HTTP::Request
39
35
  attr :protocol
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Async
22
22
  module HTTP
23
- VERSION = "0.36.3"
23
+ VERSION = "0.37.0"
24
24
  end
25
25
  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.36.3
4
+ version: 0.37.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.8.0
47
+ version: 0.9.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.8.0
54
+ version: 0.9.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: async-rspec
57
57
  requirement: !ruby/object:Gem::Requirement