em-websocket 0.3.7 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +5 -0
- data/lib/em-websocket/connection.rb +2 -1
- data/lib/em-websocket/masking04.rb +2 -1
- data/lib/em-websocket/version.rb +1 -1
- metadata +118 -68
data/CHANGELOG.rdoc
CHANGED
@@ -161,7 +161,8 @@ module EventMachine
|
|
161
161
|
|
162
162
|
# Revert data back to the original encoding (which we assume is UTF-8)
|
163
163
|
# Doing this to avoid duping the string - there may be a better way
|
164
|
-
data.force_encoding(UTF8)
|
164
|
+
data.force_encoding(UTF8) if ENCODING_SUPPORTED
|
165
|
+
return nil
|
165
166
|
end
|
166
167
|
|
167
168
|
# Send a ping to the client. The client must respond with a pong.
|
@@ -29,7 +29,8 @@ module EventMachine
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def getbytes(start_index, count)
|
32
|
-
data = ''
|
32
|
+
data = ''
|
33
|
+
data.force_encoding('ASCII-8BIT') if data.respond_to?(:force_encoding)
|
33
34
|
count.times do |i|
|
34
35
|
data << getbyte(start_index + i)
|
35
36
|
end
|
data/lib/em-websocket/version.rb
CHANGED
metadata
CHANGED
@@ -1,102 +1,144 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: em-websocket
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 3
|
9
|
+
- 8
|
10
|
+
version: 0.3.8
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Ilya Grigorik
|
9
14
|
- Martyn Loughran
|
10
15
|
autorequire:
|
11
16
|
bindir: bin
|
12
17
|
cert_chain: []
|
13
|
-
|
14
|
-
|
15
|
-
|
18
|
+
|
19
|
+
date: 2012-07-12 00:00:00 Z
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
16
22
|
name: eventmachine
|
17
|
-
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
18
25
|
none: false
|
19
|
-
requirements:
|
20
|
-
- -
|
21
|
-
- !ruby/object:Gem::Version
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 61
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
- 12
|
33
|
+
- 9
|
22
34
|
version: 0.12.9
|
23
35
|
type: :runtime
|
24
|
-
|
25
|
-
|
26
|
-
- !ruby/object:Gem::Dependency
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
27
38
|
name: addressable
|
28
|
-
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
29
41
|
none: false
|
30
|
-
requirements:
|
31
|
-
- -
|
32
|
-
- !ruby/object:Gem::Version
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 9
|
46
|
+
segments:
|
47
|
+
- 2
|
48
|
+
- 1
|
49
|
+
- 1
|
33
50
|
version: 2.1.1
|
34
51
|
type: :runtime
|
35
|
-
|
36
|
-
|
37
|
-
- !ruby/object:Gem::Dependency
|
52
|
+
version_requirements: *id002
|
53
|
+
- !ruby/object:Gem::Dependency
|
38
54
|
name: em-spec
|
39
|
-
|
55
|
+
prerelease: false
|
56
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
40
57
|
none: false
|
41
|
-
requirements:
|
58
|
+
requirements:
|
42
59
|
- - ~>
|
43
|
-
- !ruby/object:Gem::Version
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
hash: 27
|
62
|
+
segments:
|
63
|
+
- 0
|
64
|
+
- 2
|
65
|
+
- 6
|
44
66
|
version: 0.2.6
|
45
67
|
type: :development
|
46
|
-
|
47
|
-
|
48
|
-
- !ruby/object:Gem::Dependency
|
68
|
+
version_requirements: *id003
|
69
|
+
- !ruby/object:Gem::Dependency
|
49
70
|
name: eventmachine
|
50
|
-
|
71
|
+
prerelease: false
|
72
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
51
73
|
none: false
|
52
|
-
requirements:
|
74
|
+
requirements:
|
53
75
|
- - ~>
|
54
|
-
- !ruby/object:Gem::Version
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
hash: 59
|
78
|
+
segments:
|
79
|
+
- 0
|
80
|
+
- 12
|
81
|
+
- 10
|
55
82
|
version: 0.12.10
|
56
83
|
type: :development
|
57
|
-
|
58
|
-
|
59
|
-
- !ruby/object:Gem::Dependency
|
84
|
+
version_requirements: *id004
|
85
|
+
- !ruby/object:Gem::Dependency
|
60
86
|
name: em-http-request
|
61
|
-
|
87
|
+
prerelease: false
|
88
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
62
89
|
none: false
|
63
|
-
requirements:
|
90
|
+
requirements:
|
64
91
|
- - ~>
|
65
|
-
- !ruby/object:Gem::Version
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
hash: 27
|
94
|
+
segments:
|
95
|
+
- 0
|
96
|
+
- 2
|
97
|
+
- 6
|
66
98
|
version: 0.2.6
|
67
99
|
type: :development
|
68
|
-
|
69
|
-
|
70
|
-
- !ruby/object:Gem::Dependency
|
100
|
+
version_requirements: *id005
|
101
|
+
- !ruby/object:Gem::Dependency
|
71
102
|
name: rspec
|
72
|
-
|
103
|
+
prerelease: false
|
104
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
73
105
|
none: false
|
74
|
-
requirements:
|
106
|
+
requirements:
|
75
107
|
- - ~>
|
76
|
-
- !ruby/object:Gem::Version
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
hash: 47
|
110
|
+
segments:
|
111
|
+
- 2
|
112
|
+
- 8
|
113
|
+
- 0
|
77
114
|
version: 2.8.0
|
78
115
|
type: :development
|
79
|
-
|
80
|
-
|
81
|
-
- !ruby/object:Gem::Dependency
|
116
|
+
version_requirements: *id006
|
117
|
+
- !ruby/object:Gem::Dependency
|
82
118
|
name: rake
|
83
|
-
|
119
|
+
prerelease: false
|
120
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
84
121
|
none: false
|
85
|
-
requirements:
|
86
|
-
- -
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
hash: 3
|
126
|
+
segments:
|
127
|
+
- 0
|
128
|
+
version: "0"
|
89
129
|
type: :development
|
90
|
-
|
91
|
-
version_requirements: *70199777817860
|
130
|
+
version_requirements: *id007
|
92
131
|
description: EventMachine based WebSocket server
|
93
|
-
email:
|
132
|
+
email:
|
94
133
|
- ilya@igvita.com
|
95
134
|
- me@mloughran.com
|
96
135
|
executables: []
|
136
|
+
|
97
137
|
extensions: []
|
138
|
+
|
98
139
|
extra_rdoc_files: []
|
99
|
-
|
140
|
+
|
141
|
+
files:
|
100
142
|
- .gitignore
|
101
143
|
- CHANGELOG.rdoc
|
102
144
|
- Gemfile
|
@@ -156,29 +198,38 @@ files:
|
|
156
198
|
- spec/unit/masking_spec.rb
|
157
199
|
homepage: http://github.com/igrigorik/em-websocket
|
158
200
|
licenses: []
|
201
|
+
|
159
202
|
post_install_message:
|
160
203
|
rdoc_options: []
|
161
|
-
|
204
|
+
|
205
|
+
require_paths:
|
162
206
|
- lib
|
163
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
207
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
164
208
|
none: false
|
165
|
-
requirements:
|
166
|
-
- -
|
167
|
-
- !ruby/object:Gem::Version
|
168
|
-
|
169
|
-
|
209
|
+
requirements:
|
210
|
+
- - ">="
|
211
|
+
- !ruby/object:Gem::Version
|
212
|
+
hash: 3
|
213
|
+
segments:
|
214
|
+
- 0
|
215
|
+
version: "0"
|
216
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
170
217
|
none: false
|
171
|
-
requirements:
|
172
|
-
- -
|
173
|
-
- !ruby/object:Gem::Version
|
174
|
-
|
218
|
+
requirements:
|
219
|
+
- - ">="
|
220
|
+
- !ruby/object:Gem::Version
|
221
|
+
hash: 3
|
222
|
+
segments:
|
223
|
+
- 0
|
224
|
+
version: "0"
|
175
225
|
requirements: []
|
226
|
+
|
176
227
|
rubyforge_project: em-websocket
|
177
|
-
rubygems_version: 1.8.
|
228
|
+
rubygems_version: 1.8.6
|
178
229
|
signing_key:
|
179
230
|
specification_version: 3
|
180
231
|
summary: EventMachine based WebSocket server
|
181
|
-
test_files:
|
232
|
+
test_files:
|
182
233
|
- spec/helper.rb
|
183
234
|
- spec/integration/common_spec.rb
|
184
235
|
- spec/integration/draft03_spec.rb
|
@@ -191,4 +242,3 @@ test_files:
|
|
191
242
|
- spec/unit/framing_spec.rb
|
192
243
|
- spec/unit/handler_spec.rb
|
193
244
|
- spec/unit/masking_spec.rb
|
194
|
-
has_rdoc:
|