moodle2cc 0.1.8 → 0.1.9

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.
data/.travis.yml CHANGED
@@ -1,6 +1,5 @@
1
1
  nguage: ruby
2
2
  rvm:
3
- - "1.8.7"
4
3
  - "1.9.3"
5
4
  - "2.0.0"
6
5
  script: bundle exec rake
data/Changelog CHANGED
@@ -1,3 +1,6 @@
1
+ 2013-08-01 Version 0.1.9
2
+ * fix whitespace handling issue with mod_type
3
+
1
4
  2013-07-02 Version 0.1.8
2
5
  * Improved question image conversion by putting it in its own p tag
3
6
  * Added support for hsuforum content
@@ -83,6 +83,7 @@ module Moodle2CC::Moodle
83
83
  has_many :options, Option
84
84
 
85
85
  after_parse do |mod|
86
+ mod.mod_type = mod.mod_type.strip if mod.mod_type
86
87
  mod.question_instances.each { |question_instance| question_instance.mod = mod }
87
88
  end
88
89
 
@@ -1,3 +1,3 @@
1
1
  module Moodle2CC
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
@@ -569,7 +569,8 @@
569
569
  </MOD>
570
570
  <MOD>
571
571
  <ID>432</ID>
572
- <MODTYPE>resource</MODTYPE>
572
+ <MODTYPE>resource
573
+ </MODTYPE>
573
574
  <NAME>Test Text File</NAME>
574
575
  <TYPE>file</TYPE>
575
576
  <REFERENCE>folder/test.txt</REFERENCE>
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.1.8
4
+ version: 0.1.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-07-02 00:00:00.000000000 Z
14
+ date: 2013-08-01 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rubyzip