modsvaskr 0.1.6 → 0.1.7

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
  SHA256:
3
- metadata.gz: dbeaf699d4603223071a9caae99b832d690b2a8d0e944c601a4f1b0cb015a0bb
4
- data.tar.gz: f1e0538f49674f83d459180d1a62b5b5d00a4d45721fcead5f58516d247547ac
3
+ metadata.gz: fd6d0c139d7abd4ebc630cb1704182149bfae4213fa5bf44d8befee491c87606
4
+ data.tar.gz: 4f5c1ef541e86c57093ac8633190fd473aa61d66cfff5d4454d5db691f570f03
5
5
  SHA512:
6
- metadata.gz: 9e786f5797a20ea302d55c5af01e1b3f80b0fb52a539e21ab8e19dec302e7ed15b44360df0b48bc545a626497e3483c1849002b8b025acd377d3cbc2ff39205b
7
- data.tar.gz: 691350a1b4c5222bf5f5c65511f4ad0cd8d8b595b44db5d845300c0a92a18555e8bb7f4d3bb284f2dd109152d2dc477d4eadd41f06d5fbebd802cc4bc1050086
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
- unless @config.no_prompt
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
- end
218
- out "We are going to start again in #{@game.timeout_interrupt_tests_secs} seconds. Press Enter now to interrupt it."
219
- key_pressed =
220
- begin
221
- Timeout.timeout(@game.timeout_interrupt_tests_secs) { $stdin.gets }
222
- rescue Timeout::Error
223
- nil
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
@@ -1,5 +1,5 @@
1
1
  module Modsvaskr
2
2
 
3
- VERSION = '0.1.6'
3
+ VERSION = '0.1.7'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: modsvaskr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Muriel Salvan