mumukit 2.18.0 → 2.18.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 659899e2dc58610a3f7e719e40d37cec27036e9fac9efcb9faee18fbc6ea50c0
|
4
|
+
data.tar.gz: ccf516286aac773ca9dc6d5bd606f02df3a9defa01831c0024393254a243ff94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 884a8ff595db7f16443537c457c11a160747ba3002687fbe30d1292b0cec3d237385d7c328111d423097696a040dc36ef8e330e50f5e8c9c92e7f5f80922ffa1
|
7
|
+
data.tar.gz: 026858365c740fe5175791e1c7555ec249f7d8aa782b270b1590217809c2b6622bf309f7e7a1cad4bf1503e2a9c438f27aa3745968903ec027539444e1f2196e
|
@@ -6,13 +6,13 @@ module Mumukit::Metatest
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def check_last_query_equals(_result, goal)
|
9
|
-
expected = goal[:
|
9
|
+
expected = goal[:value]
|
10
10
|
actual = @request.query
|
11
11
|
fail_t :check_last_query_equals, expected: expected, actual: actual unless expected == actual
|
12
12
|
end
|
13
13
|
|
14
14
|
def check_last_query_matches(_result, goal)
|
15
|
-
regex = goal[:
|
15
|
+
regex = goal[:regexp]
|
16
16
|
fail_t :check_last_query_matches, regex: regex.inspect unless regex.matches? @request.query
|
17
17
|
end
|
18
18
|
|
@@ -21,7 +21,7 @@ module Mumukit::Metatest
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def check_last_query_outputs(result, goal)
|
24
|
-
expected = goal
|
24
|
+
expected = goal[:output]
|
25
25
|
actual = result[:query][:result]
|
26
26
|
fail_t :check_last_query_outputs, expected: expected, actual: actual unless expected == actual
|
27
27
|
end
|
@@ -31,17 +31,17 @@ module Mumukit::Metatest
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def check_query_passes(result, goal)
|
34
|
-
fail_t :check_query_passes, query: goal
|
34
|
+
fail_t :check_query_passes, query: goal[:query] unless result[:status] == :passed
|
35
35
|
end
|
36
36
|
|
37
37
|
def check_query_fails(result, goal)
|
38
|
-
fail_t :check_query_fails, query: goal
|
38
|
+
fail_t :check_query_fails, query: goal[:query] unless result[:status] == :failed
|
39
39
|
end
|
40
40
|
|
41
41
|
def check_query_outputs(result, goal)
|
42
|
-
expected = goal
|
42
|
+
expected = goal[:output]
|
43
43
|
actual = result[:goal]
|
44
|
-
fail_t :check_query_outputs, query: goal
|
44
|
+
fail_t :check_query_outputs, query: goal[:query], expected: expected, actual: actual unless expected == actual
|
45
45
|
end
|
46
46
|
|
47
47
|
def render_success_output(_value)
|
data/lib/mumukit/runtime/info.rb
CHANGED
@@ -6,6 +6,7 @@ module Mumukit::RuntimeInfo
|
|
6
6
|
escualo_base_version: ENV['ESCUALO_BASE_VERSION'],
|
7
7
|
escualo_service_version: ENV['ESCUALO_SERVICE_VERSION'],
|
8
8
|
mumukit_version: Mumukit::VERSION,
|
9
|
+
worker_image: Mumukit.config.docker_image,
|
9
10
|
output_content_type: Mumukit.config.content_type,
|
10
11
|
comment_type: Mumukit.config.comment_type,
|
11
12
|
features: {
|
@@ -28,4 +29,4 @@ module Mumukit::RuntimeInfo
|
|
28
29
|
def any_hook_include?(hooks, mixin)
|
29
30
|
hooks.any? { |it| hook_includes?(it, mixin) }
|
30
31
|
end
|
31
|
-
end
|
32
|
+
end
|
@@ -1,7 +1,9 @@
|
|
1
1
|
module Mumukit
|
2
2
|
class Templates::TryHook < Templates::FileHook
|
3
3
|
def compile(request)
|
4
|
-
|
4
|
+
request_goal = request.goal.with_indifferent_access
|
5
|
+
|
6
|
+
@goal = {postconditions: [[request_goal[:kind], request_goal]]}
|
5
7
|
@checker = Metatest::InteractiveChecker.new request
|
6
8
|
super request
|
7
9
|
end
|
data/lib/mumukit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumukit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.18.
|
4
|
+
version: 2.18.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franco Leonardo Bulgarelli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|