mumukit-assistant 0.2.0 → 0.2.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 518474522ae613afe0b7304efbac59c26aa0151baf03709e4364e257d4712e3c
|
|
4
|
+
data.tar.gz: 7d287f14be1ab7ff6885517a1660572352aaae5fb1b6b0bf17f6935dc1990174
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4e46e653a4fee5e2b65e4f679de06710395a4e83bb7679a04f0eb58fc8f42b68a802476a05463858036094c4f6088970778c12919b939c0a17b253da60968f5a
|
|
7
|
+
data.tar.gz: c7c5300ac824bb579cfa19969a45502f0cddc830dd3412fa73d795e7317cf9457f7c63f84d89c9bd8ef2d46fa24b467a47cbf689c65b52ef28bec67b1d4fcbcb
|
|
@@ -36,7 +36,7 @@ class Mumukit::Assistant::Narrator
|
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
def explanation_opening_paragraph(tip)
|
|
39
|
-
"#{tip.
|
|
39
|
+
"#{tip.upcase_first}."
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
def explanation_middle_paragraph(tip)
|
|
@@ -64,4 +64,4 @@ class Mumukit::Assistant::Narrator
|
|
|
64
64
|
def self.random_index
|
|
65
65
|
(0..2).to_a.sample
|
|
66
66
|
end
|
|
67
|
-
end
|
|
67
|
+
end
|
|
@@ -16,10 +16,10 @@ class Mumukit::Assistant::Rule::TheseTestsFailed < Mumukit::Assistant::Rule::Sub
|
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
def includes_failing_test?(title, submission)
|
|
19
|
-
failed_tests(submission).map { |it| it[:title] }.include?(title)
|
|
19
|
+
failed_tests(submission).map { |it| it[:title].strip }.include?(title.strip)
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
def failed_tests(submission)
|
|
23
23
|
@failed_tests ||= submission.test_results.select { |it| it[:status].failed? }
|
|
24
24
|
end
|
|
25
|
-
end
|
|
25
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mumukit-assistant
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Julián Berbel Alt
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2020-03-22 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|