moodle2cc 0.2.18 → 0.2.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YmVmYjY3MmZlNDVmNmVmMjU4NmEzNDAzYTE0MjY0YmRmN2U2ZGRmMA==
4
+ NDM0YzI5NmM1ZmM1MTYyY2RkZmZkM2NlN2MyODQ2ZGM4OGYwZmE1OA==
5
5
  data.tar.gz: !binary |-
6
- NjVkZGJlZjcwNTFjNDJmZTkyY2Q2YmUzN2ViMjlkOTUzOTg3MTRmYw==
6
+ NThiMGZkNzQxN2FjMTUyYWI5YWIxYzZhMjQ4OTE1ZjFhZTAwNWQ1NA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODNkNDQ4NGM3MzJjOGEwMjhlNGUzZmFmZTMyNTkxN2EyY2JhMWZkZGJmMDc4
10
- ZTM4NDQ2YzI2NjlhNzgxOTBiMDg0MGMwMTgxNTE1MDdmOGU1Mjg5ZjgwZTg2
11
- OTU3NTZkZjVmYWFiMGZlYWE0MDk3ODRlNDliN2YxMGIwOWU2Mzg=
9
+ YWNhNzllMDBmMzZjNzhhYzEzM2E3Yzc3MzAxN2UzZGMzOGY3MmM2YjE0YzAy
10
+ OTk2OWRlZTg1YWEzMjljMjc5ZGIxNzhmYmJlMmY3NDAzOWViMWZiYTQ1YTQ4
11
+ ZjdjNmVjZmY5YjJhZjI0YWJhMzJjMDE0OGI2N2QzMmRjOTI4MzM=
12
12
  data.tar.gz: !binary |-
13
- YjFjOGFhOGZkYzUxMGJlYzZlNTBlZWVhZjUyMGZlYzIzM2M0NmQ4MDE1MWQ3
14
- YWY5ZTMwZmIzYzgzNTZjMmNiNmQ2N2E5ZGZkOTBkNDAxMDJjNDBkOWYxNzNl
15
- NTI3NzA3ZDY0NDMxOTQ5MzViMjkwNWI5YzRkZTgwMTkyN2JjNzQ=
13
+ YzdhMjdhZTYzMTlmNjgxMjM1N2Q1YTJkY2IxZDc5MGIzMDY4ZGUyMTE1NDBl
14
+ MmU3ZWZmYTE2ZGM5MDkyOTYyZDkzNmM2ZWQzZTQ3ODlhYWI1YzRhZjQ5OGFh
15
+ MDA0MDc3MTY4YmEyZmQzYTU0NmVjYzBkZTE3NmY3ZDgwNmRmZmU=
data/Changelog CHANGED
@@ -1,3 +1,6 @@
1
+ 2015-05-11 Version 0.2.19
2
+ * Fix quiz question association parsing for Moodle 2.7+
3
+
1
4
  2015-04-13 Version 0.2.18
2
5
  * Improve invalid URL handling
3
6
 
@@ -64,7 +64,7 @@ module Moodle2CC::Moodle2::Parsers
64
64
 
65
65
  xml.search('/activity/quiz/question_instances/question_instance').each do |node|
66
66
  quiz.question_instances << {
67
- :question => parse_text(node, 'question'),
67
+ :question => parse_text(node, 'question') || parse_text(node, 'questionid'),
68
68
  :grade => parse_text(node, 'grade')
69
69
  }
70
70
  end
@@ -1,3 +1,3 @@
1
1
  module Moodle2CC
2
- VERSION = "0.2.18"
2
+ VERSION = "0.2.19"
3
3
  end
@@ -40,7 +40,7 @@
40
40
  <showblocks>0</showblocks>
41
41
  <question_instances>
42
42
  <question_instance id="1">
43
- <question>1</question>
43
+ <questionid>1</questionid>
44
44
  <grade>1.0000000</grade>
45
45
  </question_instance>
46
46
  <question_instance id="2">
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.18
4
+ version: 0.2.19
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: 2015-04-13 00:00:00.000000000 Z
13
+ date: 2015-05-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rubyzip