mumukit 2.36.0 → 2.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mumukit/explainer.rb +8 -2
- data/lib/mumukit/version.rb +1 -1
- metadata +6 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dfa3c63e600cb5848a01f68ac274471b174e2812faf5895d99d0764b874a5d4b
|
|
4
|
+
data.tar.gz: c1c0d95c19b7b986759fb4c490a4ac1a88c5503e7fd99b3ad8a88f6370644555
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e86876cf4f194d7c1bf299d533001b57973a24e0c50ac46a4d054e948a959391a9f70482cecab30f97506bae3d2108040418e6187bdf59f6b45c0681566953ee
|
|
7
|
+
data.tar.gz: 2782593fbba56c18d46be88f69e8688b51056f9693d626662f442ff6c4afecbf9c367c77bd38a493e37c032e380990eb34b4c2083901acbb63df81cd6ddf20de
|
data/lib/mumukit/explainer.rb
CHANGED
|
@@ -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)
|
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.
|
|
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-
|
|
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: '
|
|
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: '
|
|
278
|
+
version: '1.10'
|
|
285
279
|
description: Helpers for building a Mumuki Test Server
|
|
286
280
|
email:
|
|
287
281
|
- flbulgarelli@yahoo.com.ar
|