asker-tool 2.4.0 → 2.4.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: 1881a2e04cd676c6eb0a07deeaef15666b8f880b138a4418248d1e80ef3b60e4
4
- data.tar.gz: e2dd9ddeee2eb2b83ee245c6cdbd6f0991d108c6bcd1bfac4a70e16f0f45af30
3
+ metadata.gz: ac1fb3da092335cdb8fe69f179547de5ec2f17b7b4fecd0537e1ec13976f7c51
4
+ data.tar.gz: 41613de8a7474c877e9b36c631e16a4ecd1fa83e285cad1820f7f2ca76ef639a
5
5
  SHA512:
6
- metadata.gz: 79bce51d1fc4ed05c08787dc0f5f5828bbf06ba3ba233323d2e4e573d9ada3594106c709fc5199d0ad5cfec23b8fa79a4cc140dbf6f3a48f6bb70bdbb3920139
7
- data.tar.gz: 8b550ee119b2e7c3a6e2239c5bdfca809e84b2f96f393cef7273c04e788b6f4bc7d096431913b3e407cbfaa7110bb74d8a7387343da3c307a57b9476810668b8
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
@@ -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 = 0, -50, -33.33, -25, -20
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
- module QuestionMoodleFormatter
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
@@ -1,7 +1,7 @@
1
1
 
2
2
  module Version
3
3
  MAJOR_NUMBER = '2.4'
4
- VERSION = "#{MAJOR_NUMBER}.0"
4
+ VERSION = "#{MAJOR_NUMBER}.1"
5
5
  NAME = 'asker'
6
6
  GEM = 'asker-tool'
7
7
  CONFIGFILE = 'asker.ini'
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.0
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-06 00:00:00.000000000 Z
11
+ date: 2022-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: haml