okuyama 0.2.0 → 0.2.1
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.
- data/VERSION +1 -1
- data/lib/okuyama/fast_client.rb +10 -8
- data/okuyama.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/lib/okuyama/fast_client.rb
CHANGED
@@ -180,12 +180,13 @@ module Okuyama
|
|
180
180
|
protected
|
181
181
|
def each(&block)
|
182
182
|
return if ! @recv_flag
|
183
|
-
while
|
184
|
-
|
185
|
-
if
|
183
|
+
while result = socket.gets do
|
184
|
+
result.chomp!
|
185
|
+
if result == "END" then
|
186
186
|
break
|
187
187
|
else
|
188
|
-
|
188
|
+
result = self.parse_result(result) if @parse_flag
|
189
|
+
yield(result)
|
189
190
|
end
|
190
191
|
end
|
191
192
|
end
|
@@ -193,12 +194,13 @@ module Okuyama
|
|
193
194
|
def readlines
|
194
195
|
return if ! @recv_flag
|
195
196
|
ret = []
|
196
|
-
while
|
197
|
-
|
198
|
-
if
|
197
|
+
while result = socket.gets do
|
198
|
+
result.chomp!
|
199
|
+
if result == "END" then
|
199
200
|
break
|
200
201
|
else
|
201
|
-
|
202
|
+
result = self.parse_result(result) if @parse_flag
|
203
|
+
ret.push result
|
202
204
|
end
|
203
205
|
end
|
204
206
|
return ret
|
data/okuyama.gemspec
CHANGED
metadata
CHANGED