protoplasm-em-server 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -70,7 +70,10 @@ module Protoplasm
70
70
  if fetch_objects
71
71
  len_buf = socket.sysread(8)
72
72
  len = len_buf.unpack("Q").first
73
- data = socket.sysread(len)
73
+ data = ''
74
+ while data.size < len
75
+ data << socket.sysread([len - data.size, 4096].min)
76
+ end
74
77
  obj = type.response_class.decode(data)
75
78
  yield obj if block_given?
76
79
  end
@@ -1,3 +1,3 @@
1
1
  module Protoplasm
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protoplasm-em-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-03 00:00:00.000000000 Z
12
+ date: 2012-02-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine
16
- requirement: &70249433648200 !ruby/object:Gem::Requirement
16
+ requirement: &70098254751460 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70249433648200
24
+ version_requirements: *70098254751460
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: beefcake
27
- requirement: &70249433663300 !ruby/object:Gem::Requirement
27
+ requirement: &70098254748100 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.3.7
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70249433663300
35
+ version_requirements: *70098254748100
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
- requirement: &70249433661880 !ruby/object:Gem::Requirement
38
+ requirement: &70098254746360 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70249433661880
46
+ version_requirements: *70098254746360
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: minitest
49
- requirement: &70249433658340 !ruby/object:Gem::Requirement
49
+ requirement: &70098254734380 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: 2.6.1
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70249433658340
57
+ version_requirements: *70098254734380
58
58
  description: A protoplasm server backed by EventMachine.
59
59
  email:
60
60
  - joshbuddy@gmail.com
@@ -87,12 +87,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
87
87
  - - ! '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
+ segments:
91
+ - 0
92
+ hash: -844767653554300454
90
93
  required_rubygems_version: !ruby/object:Gem::Requirement
91
94
  none: false
92
95
  requirements:
93
96
  - - ! '>='
94
97
  - !ruby/object:Gem::Version
95
98
  version: '0'
99
+ segments:
100
+ - 0
101
+ hash: -844767653554300454
96
102
  requirements: []
97
103
  rubyforge_project: protoplasm-em-server
98
104
  rubygems_version: 1.8.15
@@ -102,4 +108,3 @@ summary: A protoplasm server backed by EventMachine
102
108
  test_files:
103
109
  - test/protoplasm_test.rb
104
110
  - test/test_helper.rb
105
- has_rdoc: