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 +4 -4
- data/lib/checker.rb +1 -1
- data/lib/expectations_hook.rb +4 -2
- data/lib/precompile_hook.rb +1 -1
- data/lib/test_hook.rb +1 -1
- data/lib/version_hook.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: 8ed154da8beda18cbe74626dad0c7b5b8ad58000451dd9cd1d507da24d0905f5
|
4
|
+
data.tar.gz: ff4176d1b3dc02bef224ac98fea3888bce0436d17df29e7609464ce832c2efc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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,
|
data/lib/expectations_hook.rb
CHANGED
@@ -22,9 +22,11 @@ class GobstonesExpectationsHook < Mumukit::Templates::MulangExpectationsHook
|
|
22
22
|
private
|
23
23
|
|
24
24
|
def extract_ast(request)
|
25
|
-
precompiled_output,
|
25
|
+
precompiled_output, precompiled_status = request.precompiled_result
|
26
26
|
|
27
|
-
if
|
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}
|
data/lib/precompile_hook.rb
CHANGED
@@ -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
|
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
data/lib/version_hook.rb
CHANGED