moodle2cc 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MGZkMWM1ODcxZGM3NzlkMTg2NmYzZjE0YTUzYTU4ODQxOGExZjQ5NQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Yzc3M2I1MWI1MzljZWFkMTM2YzI1YzFkODRmMzJkZDM5ZGYwZDc4Yg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDg2MmRjMmExMTUwM2NmMmEyMGY1NzNlZDgwZmZhM2Y0ZDJlYjAzNTBmM2Nh
|
10
|
+
ODJiZmM4YWY0OWI2YWYxNjcyZDQ4MWZjZjk0NTRhMmQ3ZjE4MTM0ZDAxNjE1
|
11
|
+
NGJhODA5MGQ4MjU1N2RjZDlhYzRlZDczM2JhYjQ0N2ZjMzU3MTI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Nzc1YWExZGQ4YjhmNjJkNTBjZTM2M2I0OWYxMThhMjEzZGIyZGI0ODMzN2M4
|
14
|
+
NGZkYjU2NWE3Zjg3NTE3ZWYzMGUyMzUwNzk4NWY0MmE4MDNlOGRjNWQyNDE5
|
15
|
+
MTE5MTBhZjI3M2E5MTFkM2YxM2ZmNjYwNDgxZTA1NDA2MzJhNTg=
|
data/Changelog
CHANGED
@@ -3,6 +3,10 @@ module Moodle2CC::Moodle2::Models::Quizzes
|
|
3
3
|
register_question_type 'multianswer'
|
4
4
|
attr_accessor :embedded_question_references, :embedded_questions
|
5
5
|
|
6
|
+
def initialize
|
7
|
+
@embedded_questions = []
|
8
|
+
end
|
9
|
+
|
6
10
|
def resolve_embedded_question_references(question_categories)
|
7
11
|
return unless @embedded_question_references
|
8
12
|
|
@@ -26,7 +26,7 @@ module Moodle2CC::Moodle2Converter
|
|
26
26
|
|
27
27
|
def update_links(content)
|
28
28
|
html = Nokogiri::HTML.fragment(content)
|
29
|
-
html.css('img').each { |img| img['src'] = update_url(img.attr('src')) }
|
29
|
+
html.css('img[src]').each { |img| img['src'] = update_url(img.attr('src')) }
|
30
30
|
html.css('a[href]').each do |tag|
|
31
31
|
tag['href'] = update_url(tag.attr('href'))
|
32
32
|
replace_media_anchor(tag)
|
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.9
|
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-05
|
13
|
+
date: 2014-06-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rubyzip
|