mumuki-gobstones-runner 2.2.0 → 2.2.1

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: 91e8c6260caa533e79054eb0523b7a50ef314c39cbe095aa522985e7e76f8607
4
- data.tar.gz: f9b0337db874c710c5339f0454ac98c181961d8f3aa8be40a49b5c7a362235d6
3
+ metadata.gz: 8ed154da8beda18cbe74626dad0c7b5b8ad58000451dd9cd1d507da24d0905f5
4
+ data.tar.gz: ff4176d1b3dc02bef224ac98fea3888bce0436d17df29e7609464ce832c2efc2
5
5
  SHA512:
6
- metadata.gz: 8a8fcda16da5e7e2325bd5dec995855bcdc1a8096d2cce7124f9e2f6641ea358c8fd0899e0d20dbdf4a6fdb103e21e64f3a74a2b3007d2e895ae273f89a647fa
7
- data.tar.gz: f63dca544118647d5fb28a12bd5e4af9a89a335ab71b2984b6132409ce3b26b7254a92b0ebde10a4e44527b6ac7ebf2763309a67b7866ccc7eab34f3e73a80c7
6
+ metadata.gz: 30abe8471e156c0c2debfc289486df6afd31ccd0a591b66dab910342db97a08e5fd91897f6de161c536db611431eb17d5f71aae726a1743e9c6d27667d0af01c
7
+ data.tar.gz: b41b3e8aa4b954c454122861f2933a500efb86e11cd3adcc76d4f3e84af0d1071fd7dd61219b6fabbf7a232bd586dbaf52b9ec567291909ce472e63455e03b04
data/lib/checker.rb CHANGED
@@ -43,7 +43,7 @@ module Gobstones
43
43
  initial: result[:initialBoard],
44
44
  expected: :boom,
45
45
  final: result[:finalBoard]
46
- } if status == :passed
46
+ } if status.passed?
47
47
 
48
48
  reason_code = convert_known_reason_code result[:finalBoardError][:reason][:code]
49
49
  fail_with status: :check_error_failed_another_reason,
@@ -22,9 +22,11 @@ class GobstonesExpectationsHook < Mumukit::Templates::MulangExpectationsHook
22
22
  private
23
23
 
24
24
  def extract_ast(request)
25
- precompiled_output, _ = request.precompiled_result
25
+ precompiled_output, precompiled_status = request.precompiled_result
26
26
 
27
- if precompiled_output.is_a?(String)
27
+ if precompiled_status.aborted?
28
+ {tag: :None}
29
+ elsif precompiled_output.is_a?(String)
28
30
  # gobstones cli miserably failed on parsing the submission or the extra code
29
31
  logger.warn("Unprocessable GobstonesCLI output:\n\n#{precompiled_output}")
30
32
  {tag: :None}
@@ -45,7 +45,7 @@ class GobstonesPrecompileHook < Mumukit::Templates::FileHook
45
45
  end
46
46
 
47
47
  def post_process_file(_file, result, status)
48
- if status == :passed
48
+ if status.passed?
49
49
  result = result.parse_as_json
50
50
  status = :aborted if is_timeout? result and !expects_timeout?
51
51
  end
data/lib/test_hook.rb CHANGED
@@ -4,7 +4,7 @@ class GobstonesTestHook < Mumukit::Defaults::TestHook
4
4
 
5
5
  if request.precompiled_batch.options[:interactive]
6
6
  ['', :passed]
7
- elsif status == :passed
7
+ elsif status.passed?
8
8
  request.precompiled_batch.run_tests! output
9
9
  else
10
10
  request.precompiled_result
data/lib/version_hook.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module GobstonesVersionHook
2
- VERSION = '2.2.0'
2
+ VERSION = '2.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumuki-gobstones-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Alfonso