tubesock 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tubesock.rb +1 -8
- data/lib/tubesock/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bbfdedb374d8745921858be0f57db08061efa0a
|
4
|
+
data.tar.gz: 536094ed6152a6dc6fc394188ad3bcf4087b5fb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 696025befa9b62e79e2a92a3f76817b2252e0ccb7d266b41c798f1ec553f93492e55a22f6c269eaa4ecc0fe54a03d04e5e81bb574254dea7412123b55eaa065e
|
7
|
+
data.tar.gz: dcdac25b4eadf8d0c13e7f56b804237356a58b7de0fdcea8c3161fb8133bed66aad2bdb60d57f2d62731c3d6f9dc6763ecdef01decfc43cfb5eaa7f247b647b7
|
data/lib/tubesock.rb
CHANGED
@@ -16,14 +16,7 @@ class Tubesock
|
|
16
16
|
socket = env['rack.hijack_io']
|
17
17
|
|
18
18
|
handshake = WebSocket::Handshake::Server.new
|
19
|
-
handshake.
|
20
|
-
handshake.headers["sec-websocket-draft"] = env["HTTP_SEC_WEBSOCKET_DRAFT"]
|
21
|
-
handshake.headers["sec-websocket-key"] = env["HTTP_SEC_WEBSOCKET_KEY"]
|
22
|
-
handshake.headers["sec-websocket-extensions"] = env["HTTP_SEC_WEBSOCKET_EXTENSIONS"]
|
23
|
-
handshake.headers["host"] = env["HTTP_HOST"]
|
24
|
-
handshake.path = env["REQUEST_PATH"]
|
25
|
-
handshake.query = env["QUERY_STRING"]
|
26
|
-
handshake.set_version
|
19
|
+
handshake.from_rack env
|
27
20
|
|
28
21
|
socket.write handshake.to_s
|
29
22
|
|
data/lib/tubesock/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tubesock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Gauthier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-03-
|
11
|
+
date: 2013-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
102
|
version: '0'
|
103
103
|
requirements: []
|
104
104
|
rubyforge_project:
|
105
|
-
rubygems_version: 2.0.
|
105
|
+
rubygems_version: 2.0.3
|
106
106
|
signing_key:
|
107
107
|
specification_version: 4
|
108
108
|
summary: Handle websocket connections via Rack and Rails 4 using concurrency
|