run_loop 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/run_loop/core.rb +7 -0
- data/lib/run_loop/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4655ddd5bac573639a1004edd6d6851be5586bef
|
4
|
+
data.tar.gz: 54694aa5f0309c9f214650b352cb8e6faabc9f8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c18252a9d041153a5dc2b041989ad5f8a61e81e96bb2090a802a5eaaefebd96a1fd1356bb4b4e996cd0b373a30cb39c93de96595e60568a3b2987c9eec21bc7
|
7
|
+
data.tar.gz: 006f175aaf2756e9af3b6fbadb347144860c15e2f8a9166cbd62cfedbb0cc6e1f23635f56fadf883e2ed75dc4321b1a044baa548098094b187f7b09e2fe86fce
|
data/lib/run_loop/core.rb
CHANGED
@@ -183,8 +183,15 @@ module RunLoop
|
|
183
183
|
rest = output[index_if_found+START_DELIMITER.size..output.length]
|
184
184
|
index_of_json = rest.index("}#{END_DELIMITER}")
|
185
185
|
|
186
|
+
if index_of_json.nil?
|
187
|
+
#Wait for rest of json
|
188
|
+
sleep(0.1)
|
189
|
+
next
|
190
|
+
end
|
191
|
+
|
186
192
|
json = rest[0..index_of_json]
|
187
193
|
|
194
|
+
|
188
195
|
if ENV['DEBUG_READ']=='1'
|
189
196
|
puts "Index #{index_if_found}, Size: #{size} Offset #{offset}"
|
190
197
|
|
data/lib/run_loop/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: run_loop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karl Krukow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-05-
|
11
|
+
date: 2013-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|