canvas_connect 0.3.11 → 0.3.15
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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7d3cc3165fdd2fa53312f64671de8172c4cddeefbe379f237883013878ac9a9d
|
4
|
+
data.tar.gz: b7c372e7f2e76526e7f8ede32aa9fc36dcbf7559c935616b2bee41bacd065076
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93c3595e3dc26221bb9e105bb8ec72fdce233ae5c23c1dcb1b42b134683bda62c79a596926c24872d65a21b8f6364f48dc8f94ed63005b8007caecccd0ae9e53
|
7
|
+
data.tar.gz: 7308a820d11171a91f166e273e48d1c9cf00ddff119c273e87259afad407f87426f1af8e5c6af8996544ec6418765702103975c2c20cf44c64597227cfbf27ce
|
@@ -16,6 +16,8 @@
|
|
16
16
|
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
17
17
|
#
|
18
18
|
|
19
|
+
require "canvas_errors"
|
20
|
+
|
19
21
|
class AdobeConnectConference < WebConference
|
20
22
|
|
21
23
|
MAX_NAME_LENGTH = 60
|
@@ -111,9 +113,13 @@ class AdobeConnectConference < WebConference
|
|
111
113
|
# Returns an SCO-ID string.
|
112
114
|
def find_conference_key
|
113
115
|
unless @conference_key.present?
|
114
|
-
|
115
|
-
|
116
|
-
|
116
|
+
begin
|
117
|
+
response = connect_service.sco_by_url(:url_path => meeting_url_suffix)
|
118
|
+
if response.body.at_xpath('//status').attr('code') == 'ok'
|
119
|
+
@conference_key = response.body.xpath('//sco[@sco-id]').attr('sco-id').value
|
120
|
+
end
|
121
|
+
rescue => e
|
122
|
+
CanvasErrors.capture_exception(:adobe_connect_conference, e, :warn)
|
117
123
|
end
|
118
124
|
end
|
119
125
|
@conference_key
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# this CANVAS_ZEITWERK constant flag is defined in canvas' "application.rb"
|
4
|
+
# from an env var. It should be temporary,
|
5
|
+
# and removed once we've fully upgraded to zeitwerk autoloading.
|
6
|
+
if defined?(CANVAS_ZEITWERK) && CANVAS_ZEITWERK
|
7
|
+
|
8
|
+
# make sure we don't try to create a "CanvasConnect::Version" thing,
|
9
|
+
# because that doesn't exist
|
10
|
+
Rails.autoloaders.main.ignore("#{__dir__}/../../lib/canvas_connect/version.rb")
|
11
|
+
|
12
|
+
end
|
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.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zach Pendleton
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -55,6 +55,7 @@ files:
|
|
55
55
|
- app/models/adobe_connect_conference.rb
|
56
56
|
- app/views/plugins/_connect_settings.html.erb
|
57
57
|
- canvas_connect.gemspec
|
58
|
+
- config/initializers/zeitwerk.rb
|
58
59
|
- lib/canvas/plugins/adobe_connect.rb
|
59
60
|
- lib/canvas/plugins/validators/adobe_connect_validator.rb
|
60
61
|
- lib/canvas_connect.rb
|
@@ -64,7 +65,7 @@ homepage: http://instructure.com
|
|
64
65
|
licenses:
|
65
66
|
- MIT
|
66
67
|
metadata: {}
|
67
|
-
post_install_message:
|
68
|
+
post_install_message:
|
68
69
|
rdoc_options: []
|
69
70
|
require_paths:
|
70
71
|
- app
|
@@ -80,9 +81,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
81
|
- !ruby/object:Gem::Version
|
81
82
|
version: '0'
|
82
83
|
requirements: []
|
83
|
-
|
84
|
-
|
85
|
-
signing_key:
|
84
|
+
rubygems_version: 3.1.4
|
85
|
+
signing_key:
|
86
86
|
specification_version: 4
|
87
87
|
summary: Adobe Connect integration for Instructure Canvas (http://instructure.com).
|
88
88
|
test_files: []
|