moodle2cc 0.2.30 → 0.2.31

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 +0 -0
  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/moodle2converter/html_converter.rb +2 -6
  37. data/lib/moodle2cc/version.rb +1 -1
  38. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e6c36911d0c68c49fc24850f25e818056df51cf
4
- data.tar.gz: faf2f820d2ac7d2d09491ebea3e58b6416f3f166
3
+ metadata.gz: 454c08c2f88ab86fe2036e22d82db441706aaca7
4
+ data.tar.gz: c9b8432e8e060b7519b76bb4c8493e7820e594f5
5
5
  SHA512:
6
- metadata.gz: 5bfed27b724ba377f2cc52f5e54f210af65a95f74e85ea15345b33d2eded583187f2a308bb55e2cfb84e818bef13dec2292e8cd40fda81994c76089a9947cbc8
7
- data.tar.gz: 97fc34aefb8cc1d59f61dcfd2697b87b288670943c1e3e0b36ec2df68138593fe6dec4e55c6312dc04362d417d6e9cfdd4f112a1936c4717641fccc7bb9912ca
6
+ metadata.gz: 71ac2bb459b06db08c18b752c2475962b3dc1d7fdcb46aa68f9a49bc0c75ef882d3f4794a4a2c0cc09e5e6465d30b1ab7a076c21a5213ed6dce3281dc97a5b64
7
+ data.tar.gz: 3ed60f392be83ef7a59d930ff92205e15bdd130c99f9a9e1c8ed3b0f004218a188bbb385bf29aa6db90054e3a974bba53af481ae6f7c98b8c6392f0c505b571b
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
File without changes
File without changes
File without changes
File without changes
@@ -38,13 +38,9 @@ module Moodle2CC::Moodle2Converter
38
38
  def replace_media_anchor(tag)
39
39
  if tag.name == 'a'
40
40
  href = tag['href']
41
- match = href.match(/\.([A-z0-9]+)?/)
41
+ match = href.match(/\.([A-z0-9]+)$/)
42
42
  if (match && MEDIA_TYPES.key?(match.captures[0]))
43
- html = tag.to_s
44
- tag.delete('href')
45
- tag.name = 'audio'
46
- tag['controls'] = 'controls'
47
- tag.children = "<source src=\"#{href}\" type=\"#{MEDIA_TYPES[match.captures[0]]}\"></source>#{html.to_s}"
43
+ tag['class'] = 'instructure_inline_media_comment'
48
44
  end
49
45
  end
50
46
  end
@@ -1,3 +1,3 @@
1
1
  module Moodle2CC
2
- VERSION = "0.2.30"
2
+ VERSION = "0.2.31"
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.30
4
+ version: 0.2.31
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: 2016-03-28 00:00:00.000000000 Z
13
+ date: 2016-04-29 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.5.1
427
+ rubygems_version: 2.4.7
428
428
  signing_key:
429
429
  specification_version: 4
430
430
  summary: Migrates Moodle backup ZIP to IMS Common Cartridge package