canvas_connect 0.3.7 → 0.3.8
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 +8 -8
- data/app/models/adobe_connect_conference.rb +11 -3
- data/lib/canvas_connect/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MGY4ZDg0Yjk3MmUxNGZmNTNjOTcyYzdkZmFhMGVhZDQ1MDA4NWQ4Yg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTNjZjMzNTQyODhkNmU0NjY0ODhkYmYxMDZiMGZhMzg2MTQ0M2U4YQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjQ4OTBjYzdmYzY2MzcwM2IwYzk1N2MxMjY4MGZlYTU3ZjUwMmU3ZDUxZTg3
|
10
|
+
ZTI2OWIyMTBiNTA2NTI1M2JiNGJlNTA4MjZhNzBmZDM3NjVkODY1YmY0ZWYw
|
11
|
+
YTNjZjg1ZTM4YTQzMzhmZDQzNDlkODkzZDhmNmVkZDUyZDcyNmU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Y2NjZDA4NGEyYmZlOWNmN2QwODBhY2ZmZjRiZWI4NWUxNDRjMmViMjI2ZWE4
|
14
|
+
ZmFlOTQ0YjNmYjViMmUzMjM1MzM5ZDA3YmFiOWViODk4ODY3ODUyYTdhZWY3
|
15
|
+
YjRiNWNkNGE4MmMyNWM4NjkwNDZkMTZmMDY0YTc1Nzg4NGYwNjA=
|
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
class AdobeConnectConference < WebConference
|
20
20
|
|
21
|
-
|
21
|
+
MAX_NAME_LENGTH = 60
|
22
22
|
|
23
23
|
# Public: Start a new conference and return its key. (required by WebConference)
|
24
24
|
#
|
@@ -161,7 +161,7 @@ class AdobeConnectConference < WebConference
|
|
161
161
|
|
162
162
|
preferred_extension = 'canvas-connect'
|
163
163
|
current_address = user.email
|
164
|
-
allowed_length =
|
164
|
+
allowed_length = MAX_NAME_LENGTH - current_address.length
|
165
165
|
allowed_length -= 1 unless current_address.match(/\+/)
|
166
166
|
postfix = if allowed_length >= preferred_extension.length
|
167
167
|
preferred_extension
|
@@ -262,7 +262,15 @@ class AdobeConnectConference < WebConference
|
|
262
262
|
'Canvas'
|
263
263
|
end
|
264
264
|
|
265
|
-
"#{course_code}: #{self.title} [#{self.id}]"
|
265
|
+
name = "#{course_code}: #{self.title} [#{self.id}]"
|
266
|
+
if name.length > MAX_NAME_LENGTH
|
267
|
+
name = "#{course_code} [#{self.id}]"
|
268
|
+
if name.length > MAX_NAME_LENGTH
|
269
|
+
suffix = "... [#{self.id}]"
|
270
|
+
name = "#{course_code.to_s[0...(MAX_NAME_LENGTH - suffix.length)]}" + suffix
|
271
|
+
end
|
272
|
+
end
|
273
|
+
name
|
266
274
|
end
|
267
275
|
|
268
276
|
# Internal: Get the unique ID to identify the meeting in an Adobe url.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: canvas_connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zach Pendleton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|