async-websocket 0.16.0 → 0.17.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: 7fcb6bef4d1c45d2f65e17f4442583eb463ebfd2adf68af5af3925953d754345
4
- data.tar.gz: bf3f59fd7d6f3b7ba4a72a27f034257592fe4a03644750bff59c4978ddf0e10e
3
+ metadata.gz: d2b2cae182fcc4c6dbfd9724236afc25472d930a98be9496b4bc2af6f67ad502
4
+ data.tar.gz: a9bb7c63e69247a287bd512973788d0e807b6464835ebef1f5d5d1c407574327
5
5
  SHA512:
6
- metadata.gz: 10c0b9065b7759f022e91aadeb8508af310ddd5bbfa7d3bd2fd0a9379624ea9a70bb0b896bd16553f66ac8bf93416076d40d012832a9c0747f607fd43f993edf
7
- data.tar.gz: 6508c0dfcf5aa6b14483204ca337298b790ad3713dd1b50e0e359a5527655797989d33cda9144eb66bb895b9b29f13128cf8ea8361b19b7ff59392c4e84ae3ab
6
+ metadata.gz: e0f1f16a9e9fecfa3b68eec6c3b18b63588477ef3b4d2049d42a017e9f35073c6b54641585db4cbebaeff53a37537c742130354ee604620c68c79b24980d6bdf
7
+ data.tar.gz: 2b43de05bcffc2089345160f21e853bba156430b183ce8b0268ca229c0903f11b723849bcec6d8117271580d9265b2ac0999aacd7be9d336987401ec09c179ba
@@ -35,8 +35,8 @@ module Async
35
35
  include ::Protocol::WebSocket::Headers
36
36
 
37
37
  # @return [Client] a client which can be used to establish websocket connections to the given endpoint.
38
- def self.open(endpoint, *args, &block)
39
- client = self.new(HTTP::Client.new(endpoint, *args), mask: true)
38
+ def self.open(endpoint, **options, &block)
39
+ client = self.new(HTTP::Client.new(endpoint, **options), mask: true)
40
40
 
41
41
  return client unless block_given?
42
42
 
@@ -72,6 +72,10 @@ module Async
72
72
  @stream = nil
73
73
  end
74
74
 
75
+ def stream?
76
+ true
77
+ end
78
+
75
79
  attr :stream
76
80
 
77
81
  def call(stream)
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Async
22
22
  module WebSocket
23
- VERSION = "0.16.0"
23
+ VERSION = "0.17.0"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-websocket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-10 00:00:00.000000000 Z
11
+ date: 2021-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-http
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.51'
19
+ version: '0.54'
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: '0.51'
26
+ version: '0.54'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: async-io
29
29
  requirement: !ruby/object:Gem::Requirement