async-websocket 0.19.0 → 0.19.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/async/websocket/adapters/http.rb +2 -2
- data/lib/async/websocket/version.rb +1 -1
- data.tar.gz.sig +5 -0
- metadata +40 -4
- metadata.gz.sig +2 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a471c482c07189921b6c9af76ea30c02e31d677897567b0616de7c818258cb5
|
4
|
+
data.tar.gz: e3d34e6f906b3271ea1da568d450f46faf1e84eaed512f74ef3ba4e275a6fdbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7ad0c1cbdf9c9e4ccfe35e313474890ed9a134dacbbb1a26c584810619445db585e6fea6620390b10da44bbaa300bc4824879a8feb64505b21c1f6f35bc9d4c
|
7
|
+
data.tar.gz: a27f16b8ec763fc216d4fbe63c6867289aebc25e952b68d56517c318d32504b47a2c38d791053547f0c511b512c89c017cd61fe1c1966e26d1b57904018b733c
|
checksums.yaml.gz.sig
ADDED
Binary file
|
@@ -30,11 +30,11 @@ module Async
|
|
30
30
|
include ::Protocol::WebSocket::Headers
|
31
31
|
|
32
32
|
def self.websocket?(request)
|
33
|
-
Array(request.protocol).
|
33
|
+
Array(request.protocol).any? { |e| e.casecmp?(PROTOCOL) }
|
34
34
|
end
|
35
35
|
|
36
36
|
def self.open(request, headers: [], protocols: [], handler: Connection, **options, &block)
|
37
|
-
if
|
37
|
+
if websocket?(request)
|
38
38
|
# Select websocket sub-protocol:
|
39
39
|
if requested_protocol = request.headers[SEC_WEBSOCKET_PROTOCOL]
|
40
40
|
protocol = (requested_protocol & protocols).first
|
data.tar.gz.sig
ADDED
metadata
CHANGED
@@ -1,14 +1,50 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-websocket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.19.
|
4
|
+
version: 0.19.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
|
+
- destructobeam
|
9
|
+
- Olle Jonsson
|
10
|
+
- Aurora
|
11
|
+
- Bryan Powell
|
12
|
+
- Gleb Sinyavskiy
|
13
|
+
- Janko Marohnić
|
14
|
+
- Michel Boaventura
|
15
|
+
- jaml
|
8
16
|
autorequire:
|
9
17
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
|
18
|
+
cert_chain:
|
19
|
+
- |
|
20
|
+
-----BEGIN CERTIFICATE-----
|
21
|
+
MIIEhDCCAuygAwIBAgIBATANBgkqhkiG9w0BAQsFADA3MTUwMwYDVQQDDCxzYW11
|
22
|
+
ZWwud2lsbGlhbXMvREM9b3Jpb250cmFuc2Zlci9EQz1jby9EQz1uejAeFw0yMTA4
|
23
|
+
MTYwNjMzNDRaFw0yMjA4MTYwNjMzNDRaMDcxNTAzBgNVBAMMLHNhbXVlbC53aWxs
|
24
|
+
aWFtcy9EQz1vcmlvbnRyYW5zZmVyL0RDPWNvL0RDPW56MIIBojANBgkqhkiG9w0B
|
25
|
+
AQEFAAOCAY8AMIIBigKCAYEAyXLSS/cw+fXJ5e7hi+U/TeChPWeYdwJojDsFY1xr
|
26
|
+
xvtqbTTL8gbLHz5LW3QD2nfwCv3qTlw0qI3Ie7a9VMJMbSvgVEGEfQirqIgJXWMj
|
27
|
+
eNMDgKsMJtC7u/43abRKx7TCURW3iWyR19NRngsJJmaR51yGGGm2Kfsr+JtKKLtL
|
28
|
+
L188Wm3f13KAx7QJU8qyuBnj1/gWem076hzdA7xi1DbrZrch9GCRz62xymJlrJHn
|
29
|
+
9iZEZ7AxrS7vokhMlzSr/XMUihx/8aFKtk+tMLClqxZSmBWIErWdicCGTULXCBNb
|
30
|
+
E/mljo4zEVKhlTWpJklMIhr55ZRrSarKFuW7en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x6w=
|
46
|
+
-----END CERTIFICATE-----
|
47
|
+
date: 2022-08-01 00:00:00.000000000 Z
|
12
48
|
dependencies:
|
13
49
|
- !ruby/object:Gem::Dependency
|
14
50
|
name: async-http
|
@@ -177,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
177
213
|
- !ruby/object:Gem::Version
|
178
214
|
version: '0'
|
179
215
|
requirements: []
|
180
|
-
rubygems_version: 3.3.
|
216
|
+
rubygems_version: 3.3.7
|
181
217
|
signing_key:
|
182
218
|
specification_version: 4
|
183
219
|
summary: An async websocket library on top of websocket-driver.
|
metadata.gz.sig
ADDED