moodle2cc 0.2.38 → 0.2.39
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc69ac975ad9eb29e995fc53883b09e155470480
|
4
|
+
data.tar.gz: ce7ac78d3aaf59a141a2418729b85345181a5932
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6c353b0b9a009348557663d87fa30079f0661f6a16eca2a6f5a12de889874962c1b9421f189d2df1b09864e072d1dc046c79b6b7480706601df0cfaca05062a
|
7
|
+
data.tar.gz: 7add535d0d984727131dbb20a9f13065f6a90c80245bf70b2f9c2bef151c5f778ba557f6a5022d7912abafc5f81df4c5824e325c28999cfd1f120be913a91f93
|
@@ -21,7 +21,7 @@ module Moodle2CC
|
|
21
21
|
|
22
22
|
if moodle_book.intro && moodle_book.intro.length > 0
|
23
23
|
page = create_page(moodle_book.name)
|
24
|
-
page.identifier =
|
24
|
+
page.identifier = generate_unique_identifier_for_activity(moodle_book)
|
25
25
|
page.body = moodle_book.intro
|
26
26
|
if pages.any?{|p| page.title == p.title}
|
27
27
|
page.title = "#{truncate_text(page.title, MAX_TITLE_LENGTH - 20)} (Introduction)"
|
@@ -58,8 +58,7 @@ module Moodle2CC
|
|
58
58
|
module_item = create_module_item_with_defaults()
|
59
59
|
module_item.title = 'Introduction'
|
60
60
|
module_item.indent = '1'
|
61
|
-
module_item.
|
62
|
-
module_item.identifierref = generate_unique_identifier_for_book_intro(moodle_book)
|
61
|
+
module_item.identifierref = get_unique_identifier_for_activity(moodle_book)
|
63
62
|
module_item.workflow_state = workflow_state(moodle_book.visible)
|
64
63
|
|
65
64
|
module_item
|
@@ -69,8 +68,7 @@ module Moodle2CC
|
|
69
68
|
module_item = create_module_item_with_defaults()
|
70
69
|
module_item.title = truncate_text(moodle_chapter.title)
|
71
70
|
module_item.indent = moodle_chapter.subchapter ? "2" : "1"
|
72
|
-
module_item.
|
73
|
-
module_item.identifierref = generate_unique_identifier_for_activity(moodle_chapter)
|
71
|
+
module_item.identifierref = get_unique_identifier_for_activity(moodle_chapter)
|
74
72
|
module_item.workflow_state = CanvasCC::Models::WorkflowState::UNPUBLISHED if moodle_chapter.hidden
|
75
73
|
|
76
74
|
module_item
|
@@ -93,9 +91,5 @@ module Moodle2CC
|
|
93
91
|
page.editing_roles = CanvasCC::Models::Page::EDITING_ROLE_TEACHER
|
94
92
|
page
|
95
93
|
end
|
96
|
-
|
97
|
-
def generate_unique_identifier_for_book_intro(moodle_book)
|
98
|
-
generate_unique_identifier_for(moodle_book.id, INTRO_SUFFIX)
|
99
|
-
end
|
100
94
|
end
|
101
95
|
end
|
@@ -25,6 +25,7 @@ module Moodle2CC
|
|
25
25
|
Moodle2::Models::Assignment => {suffix: ASSIGNMENT_SUFFIX, content_type: CanvasCC::Models::ModuleItem::CONTENT_TYPE_ASSIGNMENT},
|
26
26
|
Moodle2::Models::Folder => {suffix: FOLDER_SUFFIX, content_type: CanvasCC::Models::ModuleItem::CONTENT_TYPE_WIKI_PAGE},
|
27
27
|
Moodle2::Models::Forum => {suffix: DISCUSSION_SUFFIX, content_type: CanvasCC::Models::ModuleItem::CONTENT_TYPE_DISCUSSION_TOPIC},
|
28
|
+
Moodle2::Models::Book => {suffix: INTRO_SUFFIX, content_type: CanvasCC::Models::ModuleItem::CONTENT_TYPE_WIKI_PAGE},
|
28
29
|
Moodle2::Models::BookChapter => {suffix: CHAPTER_SUFFIX, content_type: CanvasCC::Models::ModuleItem::CONTENT_TYPE_WIKI_PAGE},
|
29
30
|
Moodle2::Models::Quizzes::Quiz => {suffix: ASSESSMENT_SUFFIX, content_type: CanvasCC::Models::ModuleItem::CONTENT_TYPE_QUIZ},
|
30
31
|
Moodle2::Models::Choice => {suffix: CHOICE_ASSESSMENT_SUFFIX, content_type: CanvasCC::Models::ModuleItem::CONTENT_TYPE_QUIZ},
|
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.39
|
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: 2017-
|
13
|
+
date: 2017-10-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rubyzip
|
@@ -424,7 +424,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
424
424
|
version: '0'
|
425
425
|
requirements: []
|
426
426
|
rubyforge_project:
|
427
|
-
rubygems_version: 2.
|
427
|
+
rubygems_version: 2.6.10
|
428
428
|
signing_key:
|
429
429
|
specification_version: 4
|
430
430
|
summary: Migrates Moodle backup ZIP to IMS Common Cartridge package
|