asker-tool 2.4.0 → 2.4.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: ac1fb3da092335cdb8fe69f179547de5ec2f17b7b4fecd0537e1ec13976f7c51
|
4
|
+
data.tar.gz: 41613de8a7474c877e9b36c631e16a4ecd1fa83e285cad1820f7f2ca76ef639a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 807ca9e728b41f823e64d0c65ea64c8c4aca25a9bae2fc41ed64be5bbb6de0e0cf67989f8f3b0852db7eb8de767266afad27ee9feaab494243bcb58985502aad
|
7
|
+
data.tar.gz: ef63e746954850b2eb64214753801e4736f6438c89f5a3eae3a0761ab828d9d4b303d022923011dbb21e718ec0df86c9b6e579e626090de6197f73e8f26f12e9
|
@@ -31,7 +31,6 @@ module ConceptAIMoodleExporter
|
|
31
31
|
# Export 1 concept_ai from project
|
32
32
|
# @param concept_ai (ConceptAI)
|
33
33
|
# @param file (File)
|
34
|
-
# rubocop:disable Metrics/AbcSize
|
35
34
|
private_class_method def self.export(concept_ai, file)
|
36
35
|
return unless concept_ai.concept.process?
|
37
36
|
|
@@ -41,5 +40,4 @@ module ConceptAIMoodleExporter
|
|
41
40
|
end
|
42
41
|
end
|
43
42
|
end
|
44
|
-
# rubocop:enable Metrics/AbcSize
|
45
43
|
end
|
data/lib/asker/files/asker.ini
CHANGED
@@ -49,7 +49,7 @@ formula_weights = 1, 1, 1
|
|
49
49
|
; Default values
|
50
50
|
; fractions = 0 to disable
|
51
51
|
; Only used for multichoice questions
|
52
|
-
fractions =
|
52
|
+
fractions = ",-50,-33.33333,-25,-20,-16.66667,-14.28571,-12.5,-11.11111,-10"
|
53
53
|
|
54
54
|
; List of values d,b,f,i,s,t
|
55
55
|
stages = d,b,f,i,s,t
|
@@ -4,7 +4,7 @@ require 'erb'
|
|
4
4
|
require_relative '../application'
|
5
5
|
|
6
6
|
# Transform Questions into Gift format
|
7
|
-
|
7
|
+
class QuestionMoodleFormatter
|
8
8
|
##
|
9
9
|
# Convert question object into gift formatted string
|
10
10
|
# @param question (Question)
|
@@ -13,9 +13,11 @@ module QuestionMoodleFormatter
|
|
13
13
|
case question.type
|
14
14
|
when :choice
|
15
15
|
fractions = Application.instance.config['questions']['fractions']
|
16
|
-
# penalties = ['', '-50', '-33.33333', '-25', '-20']
|
17
16
|
penalties = fractions
|
18
|
-
|
17
|
+
# penalties = ['', '-50', '-33.33333', '-25', '-20']
|
18
|
+
# puts "[DEBUG] fractions : #{fractions}"
|
19
|
+
# puts "[DEBUG] penalties : #{penalties}"
|
20
|
+
|
19
21
|
penalty = penalties[question.bads.size]
|
20
22
|
template = File.read(File.join(File.dirname(__FILE__), 'moodle', 'multichoice.erb'))
|
21
23
|
when :boolean
|
data/lib/asker/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asker-tool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Vargas Ruiz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: haml
|