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: 0bc31fa3d3f37c01ee13d90e2f7e2edf184844239e1c81b78152354a1e35d994
4
- data.tar.gz: ec1df6b211aa4c28fbfd88c978dbfed80af10ba3f1f70e5ec925d7e2368c4a2f
3
+ metadata.gz: 659899e2dc58610a3f7e719e40d37cec27036e9fac9efcb9faee18fbc6ea50c0
4
+ data.tar.gz: ccf516286aac773ca9dc6d5bd606f02df3a9defa01831c0024393254a243ff94
5
5
  SHA512:
6
- metadata.gz: ab7cf91e06678ded73179ac11dde2307709bfeb02aadbf382c5e3c410afa728b403581385501283be9e4c4104747eb7c1d585e5ef6b86e07ac55074d9d9d6559
7
- data.tar.gz: 919aaea15b36831abf51fcde6f5d82d5547fa8eaad12c85c540868913f4343ed0c14413b8932d996454529f197109e35634488877f5215adbc5463be8ab707c4
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[:query]
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[:regex]
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.with_indifferent_access[:output]
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.with_indifferent_access[:query] unless result[:status] == :passed
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.with_indifferent_access[:query] unless result[:status] == :failed
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.with_indifferent_access[:output]
42
+ expected = goal[:output]
43
43
  actual = result[:goal]
44
- fail_t :check_query_outputs, query: goal.with_indifferent_access[:query], expected: expected, actual: actual unless expected == actual
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)
@@ -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
- @goal = {postconditions: [[request.goal.with_indifferent_access[:kind], request.goal]]}
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
@@ -1,3 +1,3 @@
1
1
  module Mumukit
2
- VERSION = '2.18.0'
2
+ VERSION = '2.18.1'
3
3
  end
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.0
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-18 00:00:00.000000000 Z
11
+ date: 2017-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler