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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a5f112f7dbf51abb34809d582efdd87cc46cb8a4
4
- data.tar.gz: 360d541359c4909f3c83b7a9c1d3ba808769f296
3
+ metadata.gz: 4655ddd5bac573639a1004edd6d6851be5586bef
4
+ data.tar.gz: 54694aa5f0309c9f214650b352cb8e6faabc9f8f
5
5
  SHA512:
6
- metadata.gz: 54ecc6bdf87e924667c16ca9cb8154ba9fa3ff304ff2f20e7cd8d08e7365501d532792aaff8418bd40884a9e8c5f1d71377058aa5af101e45070fcfebd00bdaa
7
- data.tar.gz: d096a8f1e351e26475d134fe70156e29b95869c522a254322fa57e8d542a027e9641aae4e1685c00ea666823475c5ede88de92231b3550332cf34aa57923ad26
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
 
@@ -1,3 +1,3 @@
1
1
  module RunLoop
2
- VERSION = '0.0.11'
2
+ VERSION = '0.0.12'
3
3
  end
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.11
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-22 00:00:00.000000000 Z
11
+ date: 2013-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor