moodle2cc 0.2.43 → 0.2.44

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: 00f4e9ab98639c0cfad6a74817e7658bcd09b6e8c7e5f6d344000321f3f226ae
4
- data.tar.gz: f6ed3c60d489fc0949022feecf030cc8733b43294263da35844c866c63b3777c
3
+ metadata.gz: 8baf72f07d2a65667b1a1e8d8f62f0e87141e3c0e4cf719cb1502acefb89d70e
4
+ data.tar.gz: 3968532ffd944fb71159b2df750ad7bc5910868ade76cf94a6f95033b5274a15
5
5
  SHA512:
6
- metadata.gz: 90961bcb581bbb15314bce622dac900fca05a840e9c80f73602341759f69a00ce644299a9348015387067335d467549920f02d63ca147db503b6d3cbe441fba7
7
- data.tar.gz: 3b8a6392926134b26847a2ada520eaff43698e27f9dcbd724acbd260a632c770775d15fea37786cf427527b1b81c65370e28aaebcc3038b74118e1f6eb6fc660
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
- # if question.instance_id
152
- @assessment_question_identifierref = create_key(question.instance_id || question.id, "#{@identifier_prefix}question_")
153
- # end
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
@@ -1,3 +1,3 @@
1
1
  module Moodle2CC
2
- VERSION = "0.2.43"
2
+ VERSION = "0.2.44"
3
3
  end
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.43
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-25 00:00:00.000000000 Z
13
+ date: 2024-01-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rubyzip