moodle2cc 0.2.15 → 0.2.16
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 +8 -8
- data/Changelog +3 -0
- data/lib/moodle2cc/moodle2converter/questionnaire_converter.rb +6 -1
- data/lib/moodle2cc/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
M2MyZjI2MDhmODI3YmRkZTg5NWQ4YjgzZjRhZWU0NDUzYTViYWExNg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
MTA3YWYwMjI1YjEwODZmZWU4NzI4NmEwZTZlMjhkODUwZjI4MjYxZA==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
NGE2YmFhZjJkNDUyMzNhZGI2OWE5MjYwMDRhZmU5ZDIxNTJhZjBlNzAwMmI4
|
|
10
|
+
MmUyYTIyYWRiNjAxOTFlN2IwNjNmMTU5Yzc3ZTlmZGRkMzNjNTAxMGZjZDNl
|
|
11
|
+
OTRkN2VlZjhkOTE2YTI3NDU0NjFhODhiNGE1Zjk3NjM0NDA0NTQ=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
OGYyMmYyZGFmOTQ0NTY3ODk4Mzk5NjAxN2Y3MDZmZTZmNWRjNmY0ZjBjY2Rl
|
|
14
|
+
ODhiNDJiYzE2ZmRhYTIzY2Y4MDgwMjgwMTAxODU3NTBmNmIxYzMwYzRkNjc3
|
|
15
|
+
MDZhMGQ0OGUzNGQ1NGIxNTlmYjg2OWNlMzI3ZTRmYzA1NWM0ZTk=
|
data/Changelog
CHANGED
|
@@ -27,7 +27,7 @@ module Moodle2CC::Moodle2Converter
|
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
QUESTION_TYPE_ID_MAP = {
|
|
30
|
-
1 => '
|
|
30
|
+
1 => 'multiple_choice_question', # yes/no question
|
|
31
31
|
2 => 'essay_question', # text box question
|
|
32
32
|
3 => 'essay_question', # essay box question
|
|
33
33
|
4 => 'multiple_choice_question', # radio buttons question
|
|
@@ -48,6 +48,11 @@ module Moodle2CC::Moodle2Converter
|
|
|
48
48
|
canvas_question.material = moodle_question.content
|
|
49
49
|
canvas_question.answers = []
|
|
50
50
|
|
|
51
|
+
if moodle_question.type_id.to_i == 1
|
|
52
|
+
# yes/no question
|
|
53
|
+
moodle_question.choices = [{:id => 'yes', :content => "Yes"}, {:id => 'no', :content => "No"}]
|
|
54
|
+
end
|
|
55
|
+
|
|
51
56
|
if canvas_type == 'multiple_dropdowns_question'
|
|
52
57
|
# rating scale question
|
|
53
58
|
convert_rating_question(moodle_question, canvas_question)
|
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.16
|
|
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: 2014-
|
|
13
|
+
date: 2014-09-17 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rubyzip
|
|
@@ -822,7 +822,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
822
822
|
version: '0'
|
|
823
823
|
requirements: []
|
|
824
824
|
rubyforge_project:
|
|
825
|
-
rubygems_version: 2.
|
|
825
|
+
rubygems_version: 2.4.1
|
|
826
826
|
signing_key:
|
|
827
827
|
specification_version: 4
|
|
828
828
|
summary: Migrates Moodle backup ZIP to IMS Common Cartridge package
|