moodle2cc 0.2.40 → 0.2.42

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/lib/moodle2cc/canvas/assessment.rb +0 -0
  3. data/lib/moodle2cc/canvas/assignment.rb +0 -0
  4. data/lib/moodle2cc/canvas/converter.rb +0 -0
  5. data/lib/moodle2cc/canvas/course.rb +2 -2
  6. data/lib/moodle2cc/canvas/discussion_topic.rb +0 -0
  7. data/lib/moodle2cc/canvas/label.rb +0 -0
  8. data/lib/moodle2cc/canvas/question_bank.rb +0 -0
  9. data/lib/moodle2cc/canvas/question_group.rb +0 -0
  10. data/lib/moodle2cc/canvas/resource.rb +0 -0
  11. data/lib/moodle2cc/canvas/templates/assignment.html.erb +0 -0
  12. data/lib/moodle2cc/canvas/templates/syllabus.html.erb +0 -0
  13. data/lib/moodle2cc/canvas/templates/wiki_content.html.erb +0 -0
  14. data/lib/moodle2cc/canvas/web_content.rb +0 -0
  15. data/lib/moodle2cc/canvas/web_link.rb +0 -0
  16. data/lib/moodle2cc/canvas/wiki.rb +0 -0
  17. data/lib/moodle2cc/cc/assessment.rb +0 -0
  18. data/lib/moodle2cc/cc/assignment.rb +0 -0
  19. data/lib/moodle2cc/cc/course.rb +0 -0
  20. data/lib/moodle2cc/cc/discussion_topic.rb +0 -0
  21. data/lib/moodle2cc/cc/label.rb +0 -0
  22. data/lib/moodle2cc/cc/question.rb +0 -0
  23. data/lib/moodle2cc/cc/resource.rb +0 -0
  24. data/lib/moodle2cc/cc/templates/assignment.html.erb +0 -0
  25. data/lib/moodle2cc/cc/templates/syllabus.html.erb +0 -0
  26. data/lib/moodle2cc/cc/templates/wiki_content.html.erb +0 -0
  27. data/lib/moodle2cc/cc/web_link.rb +0 -0
  28. data/lib/moodle2cc/cc/wiki.rb +0 -0
  29. data/lib/moodle2cc/error.rb +0 -0
  30. data/lib/moodle2cc/logger.rb +0 -0
  31. data/lib/moodle2cc/moodle/course.rb +0 -0
  32. data/lib/moodle2cc/moodle/grade_item.rb +0 -0
  33. data/lib/moodle2cc/moodle/info.rb +0 -0
  34. data/lib/moodle2cc/moodle/question_category.rb +0 -0
  35. data/lib/moodle2cc/moodle/section.rb +0 -0
  36. data/lib/moodle2cc/moodle2/parsers/forum_parser.rb +2 -2
  37. data/lib/moodle2cc/version.rb +1 -1
  38. metadata +6 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 561c4793b8d845cf9a8228cd849f08b1e7bfd37f407010263c98128049c8eb5e
4
- data.tar.gz: 7c7f0e96704d839d02660c7824690021c1426bdb546f9ca6ca8ba82f4d36ba30
3
+ metadata.gz: ad9cd885a4cf5d5a10e81733e1cd61ac5c0fa34bb82855f45cade05c68fb367a
4
+ data.tar.gz: 57a4fc545f6f3e08910bba3d3109182a6c459952f37d0d14fb3647bcf62dd54f
5
5
  SHA512:
6
- metadata.gz: c57cfa1e009d6c07da4fbdc18e2dd323286ea77e2b08cc1ff453e6fae672570795330d6f15284b6b4ac9e837235788eaf19b9b6ab7c992a69ef194b040216e0d
7
- data.tar.gz: b363223b4e7f9601084580de445f3bcfac4da1206e616efb0ba07e4eb7cc4d66788162db0f2a8e2670e484e009b7dddec6fb62273b8a24bba47564d35a216618
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.mod_type == "assignment" }.length > 0
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
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
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").value
26
- forum.module_id = forum_xml.at_xpath("/activity/@moduleid").value
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")
@@ -1,3 +1,3 @@
1
1
  module Moodle2CC
2
- VERSION = "0.2.40"
2
+ VERSION = "0.2.42"
3
3
  end
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.40
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: 2018-05-09 00:00:00.000000000 Z
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
- rubyforge_project:
428
- rubygems_version: 2.7.3
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: []