modsvaskr 0.1.6 → 0.1.7
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.
- checksums.yaml +4 -4
- data/lib/modsvaskr/in_game_tests_runner.rb +14 -12
- data/lib/modsvaskr/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd6d0c139d7abd4ebc630cb1704182149bfae4213fa5bf44d8befee491c87606
|
4
|
+
data.tar.gz: 4f5c1ef541e86c57093ac8633190fd473aa61d66cfff5d4454d5db691f570f03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 112d6f09e79b130dd9db2b561848dbabdbd3e771faf791d71b54a53ac09bb8928d70f6f50c0e1586689ad3519b7795e6fe16e980d3f3340da83aa702a4f0300d
|
7
|
+
data.tar.gz: b5531b0ecadc34ad551e874a2ac26b7a21a7698a5ceed70f9d182e32c94beb2943eb7e58d73c5004994f9c358ff207a7b94af02c12a30b866287e564414f0cba
|
@@ -211,21 +211,23 @@ module Modsvaskr
|
|
211
211
|
end
|
212
212
|
end
|
213
213
|
# We will start again. Leave some time to interrupt if we want.
|
214
|
-
|
214
|
+
if @config.no_prompt
|
215
|
+
out 'Start again automatically as no_prompt has been set.'
|
216
|
+
else
|
215
217
|
# First, flush stdin of any pending character
|
216
218
|
$stdin.getc while !select([$stdin], nil, nil, 2).nil?
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
Timeout
|
222
|
-
|
223
|
-
|
219
|
+
out "We are going to start again in #{@game.timeout_interrupt_tests_secs} seconds. Press Enter now to interrupt it."
|
220
|
+
key_pressed =
|
221
|
+
begin
|
222
|
+
Timeout.timeout(@game.timeout_interrupt_tests_secs) { $stdin.gets }
|
223
|
+
rescue Timeout::Error
|
224
|
+
nil
|
225
|
+
end
|
226
|
+
if key_pressed
|
227
|
+
log "[ In-game testing #{@game.name} ] - Run interrupted by user."
|
228
|
+
# TODO: Remove AutoTest start on load: it has been interrupted by the user, so we should not keep it in case the user launches the game by itself.
|
229
|
+
break
|
224
230
|
end
|
225
|
-
if key_pressed
|
226
|
-
log "[ In-game testing #{@game.name} ] - Run interrupted by user."
|
227
|
-
# TODO: Remove AutoTest start on load: it has been interrupted by the user, so we should not keep it in case the user launches the game by itself.
|
228
|
-
break
|
229
231
|
end
|
230
232
|
end
|
231
233
|
end
|
data/lib/modsvaskr/version.rb
CHANGED