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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4a96bee3c54c81518af3d9105a737f23f78f5b76
4
- data.tar.gz: 1d96fd26516fd0244f2d9ef625466a96b08008f4
3
+ metadata.gz: 7bbfdedb374d8745921858be0f57db08061efa0a
4
+ data.tar.gz: 536094ed6152a6dc6fc394188ad3bcf4087b5fb6
5
5
  SHA512:
6
- metadata.gz: 260ad5ab303a82b4aac2c9c4d66a27a5c4f33520d54a03f73368fb2bf2dfff2910fc281577d1b98c58522f5fb9da8fbf49576c15221fe7374fbf5d2bb7c04074
7
- data.tar.gz: 163b2d57d72292578a13b6e38084390a5c1b1545fce0d45ea3856de790350281fa2c3efe4cd5b558c26776ae27d92bcd307d4b1c65448668618d5201cbfdadf5
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.headers["sec-websocket-version"] = env["HTTP_SEC_WEBSOCKET_VERSION"]
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
 
@@ -1,3 +1,3 @@
1
1
  class Tubesock
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-14 00:00:00.000000000 Z
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.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