moodle2cc 0.2.32.1 → 0.2.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/moodle2cc/canvas_cc/models/assignment.rb +4 -1
- data/lib/moodle2cc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f969d2f7368900021156821b2c2ae6a281537a62
|
4
|
+
data.tar.gz: d7a74aabc0ac5b8e6685609c8585842160ff1fc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1425675e06c543e115183e120b3445de515a08534b355016d39d2e7b34d04c8e3cb4fb45959fc27e00314b5af3383a47ccb9d542299b2576542723e51dbb71e
|
7
|
+
data.tar.gz: 66257861517ed93c453649385228d3ea377c8da48fdfb5b7e9784c236ce395f44ba64890b60f62a9f26b38f40b03a602a93f1de5946e342c1d569bae53c6ca86
|
@@ -19,7 +19,10 @@ module Moodle2CC::CanvasCC::Models
|
|
19
19
|
def assignment_resource
|
20
20
|
resource = Moodle2CC::CanvasCC::Models::Resource.new
|
21
21
|
resource.identifier = @identifier
|
22
|
-
|
22
|
+
suffix = CGI::escape(title.downcase.gsub(/\s/, '-'))
|
23
|
+
suffix = suffix[0, 100] if suffix.length > 100
|
24
|
+
|
25
|
+
resource.href = "#{resource.identifier}/assignment-#{suffix}.html"
|
23
26
|
resource.type = LAR_TYPE
|
24
27
|
resource.files = [resource.href, "#{resource.identifier}/#{ASSIGNMENT_SETTINGS_FILE}"]
|
25
28
|
|
data/lib/moodle2cc/version.rb
CHANGED
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.
|
4
|
+
version: 0.2.33
|
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-
|
13
|
+
date: 2016-06-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rubyzip
|