distributor 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/distributor/packet.rb +1 -2
- data/lib/distributor/version.rb +1 -1
- metadata +3 -3
data/lib/distributor/packet.rb
CHANGED
@@ -19,8 +19,7 @@ class Distributor::Packet
|
|
19
19
|
version = unpack(io.read(4))
|
20
20
|
channel = unpack(io.read(4))
|
21
21
|
length = unpack(io.read(4))
|
22
|
-
data =
|
23
|
-
data += io.readpartial([4096,length-data.length].min) while data.length < length
|
22
|
+
data = io.read(length)
|
24
23
|
|
25
24
|
[ channel, data ]
|
26
25
|
end
|
data/lib/distributor/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: distributor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-06-14 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
16
|
-
requirement: &
|
16
|
+
requirement: &70281449141900 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 0.13.6
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70281449141900
|
25
25
|
description: TCP Multiplexer
|
26
26
|
email: ddollar@gmail.com
|
27
27
|
executables: []
|