faye-websocket 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of faye-websocket might be problematic. Click here for more details.
- data/CHANGELOG.txt +6 -0
- data/lib/faye/websocket/hybi_parser.rb +9 -8
- data/lib/faye/websocket/hybi_parser/handshake.rb +2 -2
- metadata +32 -32
data/CHANGELOG.txt
CHANGED
@@ -27,14 +27,15 @@ module Faye
|
|
27
27
|
OPENING_OPCODES = OPCODES.values_at(:text, :binary)
|
28
28
|
|
29
29
|
ERRORS = {
|
30
|
-
:normal_closure
|
31
|
-
:going_away
|
32
|
-
:protocol_error
|
33
|
-
:unacceptable
|
34
|
-
:encoding_error
|
35
|
-
:policy_violation
|
36
|
-
:too_large
|
37
|
-
:extension_error
|
30
|
+
:normal_closure => 1000,
|
31
|
+
:going_away => 1001,
|
32
|
+
:protocol_error => 1002,
|
33
|
+
:unacceptable => 1003,
|
34
|
+
:encoding_error => 1007,
|
35
|
+
:policy_violation => 1008,
|
36
|
+
:too_large => 1009,
|
37
|
+
:extension_error => 1010,
|
38
|
+
:unexpected_condition => 1011
|
38
39
|
}
|
39
40
|
|
40
41
|
ERROR_CODES = ERRORS.values
|
@@ -17,9 +17,9 @@ module Faye
|
|
17
17
|
|
18
18
|
def request_data
|
19
19
|
hostname = @uri.host + (@uri.port ? ":#{@uri.port}" : '')
|
20
|
-
|
20
|
+
path = (@uri.path == '') ? '/' : @uri.path
|
21
21
|
headers = [
|
22
|
-
"GET #{
|
22
|
+
"GET #{path}#{@uri.query ? '?' : ''}#{@uri.query} HTTP/1.1",
|
23
23
|
"Host: #{hostname}",
|
24
24
|
"Upgrade: websocket",
|
25
25
|
"Connection: Upgrade",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faye-websocket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-04-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: eventmachine
|
16
|
-
requirement: &
|
16
|
+
requirement: &2151913440 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.12.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2151913440
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rack
|
27
|
-
requirement: &
|
27
|
+
requirement: &2151912900 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2151912900
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rake-compiler
|
38
|
-
requirement: &
|
38
|
+
requirement: &2151912240 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2151912240
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec
|
49
|
-
requirement: &
|
49
|
+
requirement: &2151927480 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 2.8.0
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2151927480
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: rainbows
|
60
|
-
requirement: &
|
60
|
+
requirement: &2151926140 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 1.0.0
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *2151926140
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: thin
|
71
|
-
requirement: &
|
71
|
+
requirement: &2151924160 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,7 +76,7 @@ dependencies:
|
|
76
76
|
version: 1.2.0
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *2151924160
|
80
80
|
description:
|
81
81
|
email: jcoglan@gmail.com
|
82
82
|
executables: []
|
@@ -90,39 +90,39 @@ files:
|
|
90
90
|
- ext/faye_websocket_mask/faye_websocket_mask.c
|
91
91
|
- ext/faye_websocket_mask/FayeWebsocketMaskService.java
|
92
92
|
- ext/faye_websocket_mask/extconf.rb
|
93
|
-
- lib/faye/
|
93
|
+
- lib/faye/adapters/goliath.rb
|
94
|
+
- lib/faye/adapters/rainbows.rb
|
95
|
+
- lib/faye/adapters/rainbows_client.rb
|
96
|
+
- lib/faye/adapters/thin.rb
|
97
|
+
- lib/faye/eventsource.rb
|
98
|
+
- lib/faye/websocket/adapter.rb
|
99
|
+
- lib/faye/websocket/api/event.rb
|
100
|
+
- lib/faye/websocket/api/event_target.rb
|
101
|
+
- lib/faye/websocket/api.rb
|
94
102
|
- lib/faye/websocket/client.rb
|
95
|
-
- lib/faye/websocket/
|
103
|
+
- lib/faye/websocket/draft75_parser.rb
|
96
104
|
- lib/faye/websocket/draft76_parser.rb
|
97
|
-
- lib/faye/websocket/utf8_match.rb
|
98
|
-
- lib/faye/websocket/api.rb
|
99
105
|
- lib/faye/websocket/hybi_parser/handshake.rb
|
100
106
|
- lib/faye/websocket/hybi_parser/stream_reader.rb
|
101
|
-
- lib/faye/websocket/
|
102
|
-
- lib/faye/websocket/
|
103
|
-
- lib/faye/websocket/adapter.rb
|
107
|
+
- lib/faye/websocket/hybi_parser.rb
|
108
|
+
- lib/faye/websocket/utf8_match.rb
|
104
109
|
- lib/faye/websocket.rb
|
105
|
-
- lib/faye/eventsource.rb
|
106
|
-
- lib/faye/adapters/thin.rb
|
107
|
-
- lib/faye/adapters/rainbows.rb
|
108
|
-
- lib/faye/adapters/goliath.rb
|
109
|
-
- lib/faye/adapters/rainbows_client.rb
|
110
110
|
- examples/app.rb
|
111
|
+
- examples/autobahn_client.rb
|
111
112
|
- examples/client.rb
|
112
|
-
- examples/haproxy.conf
|
113
|
-
- examples/sse.html
|
114
113
|
- examples/config.ru
|
114
|
+
- examples/haproxy.conf
|
115
115
|
- examples/server.rb
|
116
|
+
- examples/sse.html
|
116
117
|
- examples/ws.html
|
117
|
-
- examples/autobahn_client.rb
|
118
|
-
- spec/faye/websocket/draft75_parser_spec.rb
|
119
118
|
- spec/faye/websocket/client_spec.rb
|
120
119
|
- spec/faye/websocket/draft75_parser_examples.rb
|
120
|
+
- spec/faye/websocket/draft75_parser_spec.rb
|
121
121
|
- spec/faye/websocket/draft76_parser_spec.rb
|
122
122
|
- spec/faye/websocket/hybi_parser_spec.rb
|
123
|
-
- spec/server.key
|
124
|
-
- spec/server.crt
|
125
123
|
- spec/rainbows.conf
|
124
|
+
- spec/server.crt
|
125
|
+
- spec/server.key
|
126
126
|
- spec/spec_helper.rb
|
127
127
|
homepage: http://github.com/faye/faye-websocket-ruby
|
128
128
|
licenses: []
|