moodle2cc 0.2.43 → 0.2.44
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: 8baf72f07d2a65667b1a1e8d8f62f0e87141e3c0e4cf719cb1502acefb89d70e
|
4
|
+
data.tar.gz: 3968532ffd944fb71159b2df750ad7bc5910868ade76cf94a6f95033b5274a15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d542c7bd25ccfddb029d128beb3bc6e3178087934ccf862a1488a341936b3393d6ca04899e9942d7776ed05ca739f7d7ec0b18b3154f525eec1adea4cf3d6389
|
7
|
+
data.tar.gz: 1908583476f19256292888175ed355e5d3e90b0fc2203cd4604be7bbf849885a96fa4f252263c500c8b6c0a272ffc060ebf50e70b07810557780f3bf6c1f906d
|
@@ -148,9 +148,9 @@ module Moodle2CC::Canvas
|
|
148
148
|
end
|
149
149
|
end
|
150
150
|
|
151
|
-
|
152
|
-
|
153
|
-
|
151
|
+
if question.instance_id
|
152
|
+
@assessment_question_identifierref = create_key(question.id, "#{@identifier_prefix}question_")
|
153
|
+
end
|
154
154
|
end
|
155
155
|
|
156
156
|
def create_item_xml(section_node)
|
@@ -93,11 +93,10 @@ module Moodle2CC::CanvasCC::Models
|
|
93
93
|
new_group = Moodle2CC::CanvasCC::Models::QuestionGroup.new
|
94
94
|
new_group.identifier = "#{@identifier}#{bank.identifier}_random_group"
|
95
95
|
new_group.selection_number = count
|
96
|
-
|
97
|
-
new_group.questions = bank.questions.map(&:dup)
|
96
|
+
new_group.questions = bank.questions.map(&:dup).map{|q| (q.identifier = "random_#{q.identifier}") && q }
|
98
97
|
child_banks = bank.find_children_banks(question_banks)
|
99
98
|
child_banks.each do |child|
|
100
|
-
new_group.questions += child.questions.map(&:dup)
|
99
|
+
new_group.questions += child.questions.map(&:dup).map{|q| (q.identifier = "random_#{q.identifier}") && q }
|
101
100
|
end
|
102
101
|
|
103
102
|
@items << new_group
|
data/lib/moodle2cc/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moodle2cc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.44
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Durtschi
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2024-01-
|
13
|
+
date: 2024-01-30 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rubyzip
|