moodle2cc 0.2.1 → 0.2.2

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be523a4b92d0920e6e7bef88d5bf693552a69b7d
4
- data.tar.gz: ff8df82f8c6779019a2e0730ffa76f02b75d384d
3
+ metadata.gz: 1590fa1016ed943ed638b7ddf5d2565e6ea366a0
4
+ data.tar.gz: a80fd9e1a804e707a90a85fbbcbf8938e4fa90ae
5
5
  SHA512:
6
- metadata.gz: 4430e423442d0272bae6204ae5fcb9729a1327bd315f46f093eee1ea5ff84a3dc9f26d8ced30061882288fc4f364b4c75b0f0c359f2f5cd7f306b8bac9992c00
7
- data.tar.gz: fe3a02508e3514150e19c49ab6503593bf18efd338d52922257f608f59ad863ed2fbc59df0bcc1dc5ff1c9cc736c211e041c9d07083baf53157a32ed603504a3
6
+ metadata.gz: bfef5425ac90b27de48cac4a57dfb3826d904fb591f8266d179e8e02069e5bceea85915125503052f9423f2f463ac44d96bb718b9ada4e2604aafba8c8f67dda
7
+ data.tar.gz: d6b44d3e935699f4d781f0546f97d868fd8cf6e86c288aeef87cf2f6a08d636bcf8c74e5bd3059da3e8c68139531499128c2d08d2b3ac30a9202f8160cae1665
data/Changelog CHANGED
@@ -1,3 +1,6 @@
1
+ 2014-04-03 Version 0.2.2
2
+ * Fixed parse exception for quizzes with no configures attempt count
3
+
1
4
  2014-04-02 Version 0.2.1
2
5
  * Fixed true/false questions conversion for moodle 2
3
6
 
@@ -6,7 +6,7 @@ module Moodle2CC::Moodle2::Models
6
6
  :license, :sort_order, :repository_type, :repository_id, :reference, :file_location
7
7
 
8
8
  def file_size=(size)
9
- @file_size = Integer(size)
9
+ @file_size = Integer(size) if size
10
10
  end
11
11
 
12
12
  end
@@ -12,7 +12,7 @@ module Moodle2CC::Moodle2Converter
12
12
  canvas_assessment.lock_at = Time.at(Integer(moodle_quiz.time_close)) if moodle_quiz.time_close
13
13
  canvas_assessment.unlock_at = Time.at(Integer(moodle_quiz.time_open)) if moodle_quiz.time_open
14
14
 
15
- canvas_assessment.allowed_attempts = Integer(moodle_quiz.attempts_number)
15
+ canvas_assessment.allowed_attempts = Integer(moodle_quiz.attempts_number) if moodle_quiz.attempts_number
16
16
  canvas_assessment.allowed_attempts = -1 if canvas_assessment.allowed_attempts == 0
17
17
 
18
18
  canvas_assessment.scoring_policy = moodle_quiz.grade_method == 4 ? 'keep_latest' : 'keep_highest'
@@ -1,3 +1,3 @@
1
1
  module Moodle2CC
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
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.1
4
+ version: 0.2.2
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-04-02 00:00:00.000000000 Z
13
+ date: 2014-04-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rubyzip