net-ws 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/net/ws.rb +3 -3
- data/lib/net/ws/version.rb +1 -1
- metadata +4 -4
data/lib/net/ws.rb
CHANGED
@@ -218,10 +218,10 @@ module Net
|
|
218
218
|
@socket.write [mask_flag + payload.bytes.count].pack("C")
|
219
219
|
elsif payload.bytes.count <= UNSIGNED_16BIT_MAX
|
220
220
|
@socket.write [mask_flag + 126].pack("C")
|
221
|
-
@socket.write [payload.bytes.count].pack("n
|
221
|
+
@socket.write [payload.bytes.count].pack("n")
|
222
222
|
elsif payload.bytes.count <= UNSIGNED_64BIT_MAX
|
223
|
-
@socket.write [mask_flag + 127
|
224
|
-
@socket.write
|
223
|
+
@socket.write [mask_flag + 127].pack("C")
|
224
|
+
@socket.write payload.bytes.count.divmod(2**32).pack("NN")
|
225
225
|
else
|
226
226
|
raise Error, "Unhandled payload size: #{payload.bytes.count.inspect}"
|
227
227
|
end
|
data/lib/net/ws/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: net-ws
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-02-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -124,7 +124,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
124
124
|
version: '0'
|
125
125
|
segments:
|
126
126
|
- 0
|
127
|
-
hash: -
|
127
|
+
hash: -841382601695462629
|
128
128
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
129
|
none: false
|
130
130
|
requirements:
|
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
133
|
version: '0'
|
134
134
|
segments:
|
135
135
|
- 0
|
136
|
-
hash: -
|
136
|
+
hash: -841382601695462629
|
137
137
|
requirements: []
|
138
138
|
rubyforge_project:
|
139
139
|
rubygems_version: 1.8.23
|