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: 61831f6e3b8b9148533c7750c6cd1fe00da152b7b65f1b17c8e03a2230702299
4
- data.tar.gz: a50ed94ad78bbf063979f101a0598f6ef868e1b62d852f1dd5102bfed8cef6b2
3
+ metadata.gz: 518474522ae613afe0b7304efbac59c26aa0151baf03709e4364e257d4712e3c
4
+ data.tar.gz: 7d287f14be1ab7ff6885517a1660572352aaae5fb1b6b0bf17f6935dc1990174
5
5
  SHA512:
6
- metadata.gz: 9ae461914bc5d0af93cdb177ddbd7c29bda4757f8505ccf15a8c6033659e0ff0ff693600350861c32ca3621a3ff863dbec569c8b6ea35d3a44e1bf0f99a9c083
7
- data.tar.gz: 71477eb4923bba10efdb08fb9763c5e76c26f05a62069bb4a34921a6ecfed66d9365a7d57b374dace95f18028e0f4442a7b34b7cd5afe8d3aa0759d1e67548a7
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.capitalize}."
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
@@ -1,5 +1,5 @@
1
1
  class Mumukit::Assistant::Rule::ContentEmpty < Mumukit::Assistant::Rule::Base
2
2
  def matches?(submission)
3
- submission.content.empty?
3
+ submission.solution.empty?
4
4
  end
5
- end
5
+ 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
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  class Assistant
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  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.0
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: 2019-10-16 00:00:00.000000000 Z
12
+ date: 2020-03-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler