em-zmq-tp10 0.1.15 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,7 +29,7 @@ module EventMachine
29
29
  end
30
30
 
31
31
  i = peers.size
32
- while i > 0
32
+ while peers
33
33
  while i > 0
34
34
  ident, connect = peers.shift
35
35
  if all_peers
@@ -108,9 +108,10 @@ module EventMachine
108
108
  start_at = 2
109
109
  end
110
110
  length -= 1
111
- break if data.bytesize < start_at + length
111
+ finish = start_at + length
112
+ break if data.bytesize < finish
112
113
  str = data.byteslice(start_at, length)
113
- data[0, start_at + length] = EMPTY
114
+ data = data.byteslice(finish, data.bytesize - finish)
114
115
  @recv_frames.last << str
115
116
  @recv_frames << [] if more & 1 == 0
116
117
  end
@@ -1,7 +1,7 @@
1
1
  module EventMachine
2
2
  module Protocols
3
3
  module Zmq2
4
- VERSION = '0.1.15'
4
+ VERSION = '0.1.17'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: em-zmq-tp10
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.15
5
+ version: 0.1.17
6
6
  platform: ruby
7
7
  authors:
8
8
  - Sokolov Yura 'funny-falcon'
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-11 00:00:00.000000000 Z
12
+ date: 2013-02-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  type: :runtime