mumukit 2.36.0 → 2.37.0

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: fe34db4bf2fe3ea13c66a83ad0783b868bf12ff315073ee44d3802b74888722f
4
- data.tar.gz: 1943fa82dc1cfb03c956a9222e5dc7244278d0064bbdd627153273f41129fd3b
3
+ metadata.gz: dfa3c63e600cb5848a01f68ac274471b174e2812faf5895d99d0764b874a5d4b
4
+ data.tar.gz: c1c0d95c19b7b986759fb4c490a4ac1a88c5503e7fd99b3ad8a88f6370644555
5
5
  SHA512:
6
- metadata.gz: a3022b139dccd0a786edc7c02fad38e1c31978f397683e80c2c1f91ae6276084a7d82229022a1be2dc0c85421e1bd0b57853f24433ffa28aefd5f05300ba1f6e
7
- data.tar.gz: 1790b05e1f0361b501e89bba0c3fdd9cdd07971d41905cb24f1e503bb60f0a18625e4a196bd240251703dca3454db524a6fa43cf19bdb6b0eeffbb38f0f57604
6
+ metadata.gz: e86876cf4f194d7c1bf299d533001b57973a24e0c50ac46a4d054e948a959391a9f70482cecab30f97506bae3d2108040418e6187bdf59f6b45c0681566953ee
7
+ data.tar.gz: 2782593fbba56c18d46be88f69e8688b51056f9693d626662f442ff6c4afecbf9c367c77bd38a493e37c032e380990eb34b4c2083901acbb63df81cd6ddf20de
@@ -1,11 +1,17 @@
1
1
  class Mumukit::Explainer
2
+ include Mumukit::WithContentType
3
+
2
4
  def explain(content, test_results)
5
+ content_type.enumerate(explanations(content, test_results))
6
+ end
7
+
8
+ private
9
+
10
+ def explanations(content, test_results)
3
11
  explain_methods
4
12
  .map { |selector, key| eval_explain(selector, key, content, test_results) }
5
13
  .compact
6
14
  .map { |explain| I18n.t(explain[:key], explain[:binding]) }
7
- .map { |it| "* #{it}" }
8
- .join("\n")
9
15
  end
10
16
 
11
17
  def eval_explain(selector, key, content, test_results)
@@ -1,3 +1,3 @@
1
1
  module Mumukit
2
- VERSION = '2.36.0'
2
+ VERSION = '2.37.0'
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.36.0
4
+ version: 2.37.0
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: 2020-08-29 00:00:00.000000000 Z
11
+ date: 2020-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -266,22 +266,16 @@ dependencies:
266
266
  name: mumukit-content-type
267
267
  requirement: !ruby/object:Gem::Requirement
268
268
  requirements:
269
- - - ">="
270
- - !ruby/object:Gem::Version
271
- version: '0.2'
272
- - - "<"
269
+ - - "~>"
273
270
  - !ruby/object:Gem::Version
274
- version: '2'
271
+ version: '1.10'
275
272
  type: :runtime
276
273
  prerelease: false
277
274
  version_requirements: !ruby/object:Gem::Requirement
278
275
  requirements:
279
- - - ">="
280
- - !ruby/object:Gem::Version
281
- version: '0.2'
282
- - - "<"
276
+ - - "~>"
283
277
  - !ruby/object:Gem::Version
284
- version: '2'
278
+ version: '1.10'
285
279
  description: Helpers for building a Mumuki Test Server
286
280
  email:
287
281
  - flbulgarelli@yahoo.com.ar