asker-tool 2.3.0 → 2.3.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19f1b59f4c03c3860a9fee649625822e17d4a72e36a0e97e23094669a0a27f89
|
4
|
+
data.tar.gz: 5f039c02f0af9573a780591ad3672dc0a88dd569f8321773b19606e5f7677100
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10a4be2178720682d5d9dddcce6d94ee0fa28deaed7f637bd4ed662d302ac8a5c3174ec6f16ac5cf5cc69c5e8eace73e7ae5ce7408d591af7ef4c0dccdf7542c
|
7
|
+
data.tar.gz: 99b279f214b6ae3f9d3316e73958c30992727ff73e8f3082f4cb2c7b0ea225c139587dd6345442646e064389f76e29c3e687034aaf52063d2bd42060c095119c
|
data/lib/asker/application.rb
CHANGED
@@ -33,8 +33,9 @@ class Application
|
|
33
33
|
@config['questions']['stages'] = stages.map(&:to_sym)
|
34
34
|
|
35
35
|
fractions = @config['questions']['fractions'].split(',')
|
36
|
-
@config['questions']['fractions'] = fractions
|
37
|
-
|
36
|
+
@config['questions']['fractions'] = fractions + Array.new(5, '0')
|
37
|
+
# require 'debug'; binding.break
|
38
|
+
|
38
39
|
Rainbow.enabled = false
|
39
40
|
Rainbow.enabled = true if @config['global']['color'].downcase == 'yes'
|
40
41
|
end
|
data/lib/asker/files/asker.ini
CHANGED
@@ -15,6 +15,7 @@ module QuestionMoodleFormatter
|
|
15
15
|
fractions = Application.instance.config['questions']['fractions']
|
16
16
|
# penalties = ['', '-50', '-33.33333', '-25', '-20']
|
17
17
|
penalties = fractions
|
18
|
+
|
18
19
|
penalty = penalties[question.bads.size]
|
19
20
|
template = File.read(File.join(File.dirname(__FILE__), 'moodle', 'multichoice.erb'))
|
20
21
|
when :boolean
|
data/lib/asker/version.rb
CHANGED