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.
Files changed (3) hide show
  1. data/lib/net/ws.rb +3 -3
  2. data/lib/net/ws/version.rb +1 -1
  3. metadata +4 -4
@@ -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, payload.bytes.count].pack("C")
224
- @socket.write [payload.bytes.count].pack("n*")
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
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  module Net
3
3
  module Ws
4
- VERSION = "0.0.3"
4
+ VERSION = "0.0.4"
5
5
  end
6
6
  end
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.3
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-01-28 00:00:00.000000000 Z
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: -2090776782556819373
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: -2090776782556819373
136
+ hash: -841382601695462629
137
137
  requirements: []
138
138
  rubyforge_project:
139
139
  rubygems_version: 1.8.23