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
- N2Q2ZTc4YzA1YTkwZDA5Y2VlMmEyMDBlODFhZDMwOTM1YTc0ZGI0ZQ==
4
+ MGZkMWM1ODcxZGM3NzlkMTg2NmYzZjE0YTUzYTU4ODQxOGExZjQ5NQ==
5
5
  data.tar.gz: !binary |-
6
- ODZkNTJlZGZkYjJkMzdiNGQzZGFhNmM2N2Y3YWE4MGE2NjU5NjdhOQ==
6
+ Yzc3M2I1MWI1MzljZWFkMTM2YzI1YzFkODRmMzJkZDM5ZGYwZDc4Yg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MDFkYWJhYjY2YWU1ZWE1MDVmN2I4YjI5ZWQ1YjhhM2E2Nzc2MDhiNjBhZTc5
10
- YzhlYzk5YjUyZDI5YzY3ZWY2ZWRkM2U0M2IzNTAzYTY1MDBhY2QzYjY4MTgz
11
- ODE4ZGQxZWJjYzIxNmY2N2VjY2Q0M2Y1MzM4NDVkMDg5MzViNTM=
9
+ MDg2MmRjMmExMTUwM2NmMmEyMGY1NzNlZDgwZmZhM2Y0ZDJlYjAzNTBmM2Nh
10
+ ODJiZmM4YWY0OWI2YWYxNjcyZDQ4MWZjZjk0NTRhMmQ3ZjE4MTM0ZDAxNjE1
11
+ NGJhODA5MGQ4MjU1N2RjZDlhYzRlZDczM2JhYjQ0N2ZjMzU3MTI=
12
12
  data.tar.gz: !binary |-
13
- YzFmYjIyYWNhNWY3OWM2NTJiMTAyNGViZjEzMTU3Mjg4OTBlMzVkYjRhNTRm
14
- MWRiMjQxZWZiMTVjZTZlNTU5NDgzMjRlNzlhNjFhYWQ1M2ZmMzFlNzYwNWRi
15
- NjA3MDNmOTRmYmE5MjE5YTU5YWU4NzVlYjYxMjE0YWVjODVlYTg=
13
+ Nzc1YWExZGQ4YjhmNjJkNTBjZTM2M2I0OWYxMThhMjEzZGIyZGI0ODMzN2M4
14
+ NGZkYjU2NWE3Zjg3NTE3ZWYzMGUyMzUwNzk4NWY0MmE4MDNlOGRjNWQyNDE5
15
+ MTE5MTBhZjI3M2E5MTFkM2YxM2ZmNjYwNDgxZTA1NDA2MzJhNTg=
data/Changelog CHANGED
@@ -1,3 +1,6 @@
1
+ 2014-06-05 Version 0.2.9
2
+ * Minor fixes for multi-answer and html conversion
3
+
1
4
  2014-05-27 Version 0.2.8
2
5
  * Improve handling of missing and external file references
3
6
 
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Moodle2CC
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
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.8
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-27 00:00:00.000000000 Z
13
+ date: 2014-06-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rubyzip