moodle2cc 0.2.34 → 0.2.35

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: 6b1d22bdd944f0925c2befbbee3d813434430390
4
- data.tar.gz: 9df2399db6f8d7c7f69cd06dc614a47efd19e466
3
+ metadata.gz: 6deb93f985307e6ecc8e93ff19940ec9b53e45b6
4
+ data.tar.gz: 93dade76220dc4af4bb462a4fdbba7e02a4cd004
5
5
  SHA512:
6
- metadata.gz: fa64d74660520a99a1a10684f9dce33f93a5561b4e082e71143274ea9a04bbf29a39869fd58ce63e46c4703f2ea59cd87e0dded1b1dedced31fed52360bf4771
7
- data.tar.gz: b984fdff074b0571fe6374da222ec5afc7e22e0ffbc063440f9c1458ad1d42f9547a3eb12a7578d31c63bac0bd7794e8c969704cd033bad3acfc6e27b6f20761
6
+ metadata.gz: 12f659aa570bcac66727ba9e2e954d175e8d2a6df592f80261abdc13e3bf7ede7ad713ed3d53b976b0ccbc657c6d7509098d2272f918f31ecc3126a88746641d
7
+ data.tar.gz: fd4dddc21e033f936963f160f6ff4ad2cb421c1372492f38008ab50a48ebd2c3d82a29a21d47b0a1670eda7f4985540dfcc9b1e6509bc49fcf4876f5ed7c1067
@@ -13,7 +13,7 @@ module Moodle2CC::Moodle2Converter
13
13
  canvas_assignment.unlock_at = Time.at(Integer(moodle_assignment.allow_submissions_from_date)) if moodle_assignment.allow_submissions_from_date
14
14
  canvas_assignment.workflow_state = workflow_state(moodle_assignment.visible)
15
15
  canvas_assignment.external_tool_url = moodle_assignment.external_tool_url
16
- points = Integer(moodle_assignment.grade)
16
+ points = Float(moodle_assignment.grade).to_i
17
17
  if points > 0 || scale = moodle_grading_scales[-1 * points] # moodle uses negative numbers for grading scale ids
18
18
  if scale && scale.count == 2
19
19
  # I'm asssuming that if there's only two choices, that the best way to convert it will probably be pass/fail
@@ -1,3 +1,3 @@
1
1
  module Moodle2CC
2
- VERSION = "0.2.34"
2
+ VERSION = "0.2.35"
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.34
4
+ version: 0.2.35
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: 2016-07-12 00:00:00.000000000 Z
13
+ date: 2016-07-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rubyzip
@@ -424,7 +424,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
424
424
  version: '0'
425
425
  requirements: []
426
426
  rubyforge_project:
427
- rubygems_version: 2.4.7
427
+ rubygems_version: 2.6.6
428
428
  signing_key:
429
429
  specification_version: 4
430
430
  summary: Migrates Moodle backup ZIP to IMS Common Cartridge package