run_loop 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/run_loop/core.rb +8 -4
- data/lib/run_loop/version.rb +1 -1
- metadata +2 -3
data/lib/run_loop/core.rb
CHANGED
@@ -111,7 +111,7 @@ module RunLoop
|
|
111
111
|
|
112
112
|
run_loop = {:pid => pid, :repl_path => repl_path, :log_file => log_file, :results_dir => results_dir}
|
113
113
|
|
114
|
-
read_response(run_loop,0)
|
114
|
+
#read_response(run_loop,0)
|
115
115
|
begin
|
116
116
|
Timeout::timeout(30, TimeoutError) do
|
117
117
|
read_response(run_loop, 0)
|
@@ -150,7 +150,8 @@ module RunLoop
|
|
150
150
|
|
151
151
|
def self.read_response(run_loop, expected_index)
|
152
152
|
log_file = run_loop[:log_file]
|
153
|
-
|
153
|
+
initial_offset = run_loop[:initial_offset] || 0
|
154
|
+
offset = initial_offset
|
154
155
|
json_token = "OUTPUT_JSON:\n"
|
155
156
|
result = nil
|
156
157
|
loop do
|
@@ -191,9 +192,12 @@ module RunLoop
|
|
191
192
|
break
|
192
193
|
end
|
193
194
|
else
|
194
|
-
sleep(0.
|
195
|
+
sleep(0.1)
|
195
196
|
end
|
196
197
|
end
|
198
|
+
|
199
|
+
run_loop[:initial_offset] = offset
|
200
|
+
|
197
201
|
result
|
198
202
|
|
199
203
|
end
|
@@ -259,7 +263,7 @@ module RunLoop
|
|
259
263
|
Core.run_with_options(options)
|
260
264
|
end
|
261
265
|
|
262
|
-
def self.send_command(run_loop, cmd, timeout=
|
266
|
+
def self.send_command(run_loop, cmd, timeout=60)
|
263
267
|
|
264
268
|
if not cmd.is_a?(String)
|
265
269
|
raise "Illegal command #{cmd} (must be a string)"
|
data/lib/run_loop/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
@@ -98,4 +98,3 @@ signing_key:
|
|
98
98
|
specification_version: 3
|
99
99
|
summary: Tools related to running Calabash iOS tests
|
100
100
|
test_files: []
|
101
|
-
has_rdoc:
|