moodle2cc 0.2.40 → 0.2.42
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/moodle2cc/canvas/assessment.rb +0 -0
- data/lib/moodle2cc/canvas/assignment.rb +0 -0
- data/lib/moodle2cc/canvas/converter.rb +0 -0
- data/lib/moodle2cc/canvas/course.rb +2 -2
- data/lib/moodle2cc/canvas/discussion_topic.rb +0 -0
- data/lib/moodle2cc/canvas/label.rb +0 -0
- data/lib/moodle2cc/canvas/question_bank.rb +0 -0
- data/lib/moodle2cc/canvas/question_group.rb +0 -0
- data/lib/moodle2cc/canvas/resource.rb +0 -0
- data/lib/moodle2cc/canvas/templates/assignment.html.erb +0 -0
- data/lib/moodle2cc/canvas/templates/syllabus.html.erb +0 -0
- data/lib/moodle2cc/canvas/templates/wiki_content.html.erb +0 -0
- data/lib/moodle2cc/canvas/web_content.rb +0 -0
- data/lib/moodle2cc/canvas/web_link.rb +0 -0
- data/lib/moodle2cc/canvas/wiki.rb +0 -0
- data/lib/moodle2cc/cc/assessment.rb +0 -0
- data/lib/moodle2cc/cc/assignment.rb +0 -0
- data/lib/moodle2cc/cc/course.rb +0 -0
- data/lib/moodle2cc/cc/discussion_topic.rb +0 -0
- data/lib/moodle2cc/cc/label.rb +0 -0
- data/lib/moodle2cc/cc/question.rb +0 -0
- data/lib/moodle2cc/cc/resource.rb +0 -0
- data/lib/moodle2cc/cc/templates/assignment.html.erb +0 -0
- data/lib/moodle2cc/cc/templates/syllabus.html.erb +0 -0
- data/lib/moodle2cc/cc/templates/wiki_content.html.erb +0 -0
- data/lib/moodle2cc/cc/web_link.rb +0 -0
- data/lib/moodle2cc/cc/wiki.rb +0 -0
- data/lib/moodle2cc/error.rb +0 -0
- data/lib/moodle2cc/logger.rb +0 -0
- data/lib/moodle2cc/moodle/course.rb +0 -0
- data/lib/moodle2cc/moodle/grade_item.rb +0 -0
- data/lib/moodle2cc/moodle/info.rb +0 -0
- data/lib/moodle2cc/moodle/question_category.rb +0 -0
- data/lib/moodle2cc/moodle/section.rb +0 -0
- data/lib/moodle2cc/moodle2/parsers/forum_parser.rb +2 -2
- data/lib/moodle2cc/version.rb +1 -1
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad9cd885a4cf5d5a10e81733e1cd61ac5c0fa34bb82855f45cade05c68fb367a
|
4
|
+
data.tar.gz: 57a4fc545f6f3e08910bba3d3109182a6c459952f37d0d14fb3647bcf62dd54f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9de51511aab3a65b53aeff0248ab325d486f27e07dccc5fb5118f13b7def76b68e900ce10913cb2d842d98bbdd5aaabb12170f623ad7c259ba21ef37e691112a
|
7
|
+
data.tar.gz: af5670bf3812e4e9673340c9edfe4c01296412705112f47f9470feac364276c3544697051bb942365e6c56d742436c13a8b215cc35eaf3d4921bbd7270186fac
|
File without changes
|
File without changes
|
File without changes
|
@@ -95,7 +95,7 @@ module Moodle2CC::Canvas
|
|
95
95
|
module_node.require_sequential_progress false
|
96
96
|
module_node.items do |items_node|
|
97
97
|
section.mods.each_with_index do |mod, index|
|
98
|
-
resource = @resource_factory.get_resource_from_mod(mod.instance)
|
98
|
+
resource = @resource_factory.get_resource_from_mod(mod.instance) if mod.instance
|
99
99
|
resource.create_module_meta_item_node(items_node, index) if resource
|
100
100
|
end
|
101
101
|
end
|
@@ -117,7 +117,7 @@ module Moodle2CC::Canvas
|
|
117
117
|
'xmlns' => "http://canvas.instructure.com/xsd/cccv1p0"
|
118
118
|
) do |assignment_groups_node|
|
119
119
|
@course.sections.each do |section|
|
120
|
-
next unless section.mods.select { |mod| mod.instance
|
120
|
+
next unless section.mods.select { |mod| mod.instance&.mod_type == "assignment" }.length > 0
|
121
121
|
assignment_groups_node.assignmentGroup(:identifier => create_key(section.id, "assignment_group_")) do |assignment_group_node|
|
122
122
|
assignment_group_node.title "Week #{section.number}"
|
123
123
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/moodle2cc/cc/course.rb
CHANGED
File without changes
|
File without changes
|
data/lib/moodle2cc/cc/label.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/moodle2cc/cc/wiki.rb
CHANGED
File without changes
|
data/lib/moodle2cc/error.rb
CHANGED
File without changes
|
data/lib/moodle2cc/logger.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -22,8 +22,8 @@ module Moodle2CC::Moodle2::Parsers
|
|
22
22
|
activity_dir = File.join(@backup_dir, forum_dir)
|
23
23
|
File.open(File.join(activity_dir, xml_file)) do |f|
|
24
24
|
forum_xml = Nokogiri::XML(f)
|
25
|
-
forum.id = forum_xml.at_xpath("/activity/#{module_name}/@id")
|
26
|
-
forum.module_id = forum_xml.at_xpath("/activity/@moduleid")
|
25
|
+
forum.id = forum_xml.at_xpath("/activity/#{module_name}/@id")&.value
|
26
|
+
forum.module_id = forum_xml.at_xpath("/activity/@moduleid")&.value
|
27
27
|
forum.name = parse_text(forum_xml, "/activity/#{module_name}/name")
|
28
28
|
forum.type = parse_text(forum_xml, "/activity/#{module_name}/type")
|
29
29
|
forum.intro = parse_text(forum_xml, "/activity/#{module_name}/intro")
|
data/lib/moodle2cc/version.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
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.42
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Durtschi
|
8
8
|
- Kevin Carter
|
9
9
|
- Instructure
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2023-10-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rubyzip
|
@@ -409,7 +409,7 @@ homepage: https://github.com/instructure/moodle2cc
|
|
409
409
|
licenses:
|
410
410
|
- AGPLv3
|
411
411
|
metadata: {}
|
412
|
-
post_install_message:
|
412
|
+
post_install_message:
|
413
413
|
rdoc_options: []
|
414
414
|
require_paths:
|
415
415
|
- lib
|
@@ -424,9 +424,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
424
424
|
- !ruby/object:Gem::Version
|
425
425
|
version: '0'
|
426
426
|
requirements: []
|
427
|
-
|
428
|
-
|
429
|
-
signing_key:
|
427
|
+
rubygems_version: 3.4.19
|
428
|
+
signing_key:
|
430
429
|
specification_version: 4
|
431
430
|
summary: Migrates Moodle backup ZIP to IMS Common Cartridge package
|
432
431
|
test_files: []
|