canvas_connect 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/canvas_connect/meeting_archive.rb +6 -11
- data/lib/canvas_connect/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74cf7f7acd47c2012696e7b593fc5f3f995a40ef
|
4
|
+
data.tar.gz: fc68541545e42f6784b8edb3bace1ac2849a7ec7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d04f5335fed9b2f8cd88e8bafaff9f4bf6332bce4f477152b27fba02d819e12440378d183fc7ec59941c7d7653ad26b37423d9491d17c0e8ccb4b75f187a35d3
|
7
|
+
data.tar.gz: 8dd35f8a6d3bd5701444dc29773be8311e896331baebebc8e2606d0f43261dcfcaa4bd8df85c112f93067baf658ba9d9c69d4f1bed2c153c44d7431d574f2e66
|
@@ -24,15 +24,14 @@ module CanvasConnect
|
|
24
24
|
|
25
25
|
def self.retrieve(meeting_id, client = CanvasConnect.client)
|
26
26
|
result = client.sco_contents(sco_id: meeting_id, filter_icon: 'archive')
|
27
|
-
|
28
|
-
MeetingArchive.new(
|
27
|
+
result.xpath('/results/scos/sco').map do |archive|
|
28
|
+
MeetingArchive.new(archive)
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
32
|
# Public: Create a new MeetingArchive.
|
33
33
|
#
|
34
|
-
#
|
35
|
-
# client - A CanvasConnect::Service to make requests with. (default: CanvasConnect.client)
|
34
|
+
# archive - A Nokogiri::XML representation of the Connect response to to sco-contents action.
|
36
35
|
def initialize(archive)
|
37
36
|
@attr_cache = {}
|
38
37
|
@archive = archive
|
@@ -43,12 +42,8 @@ module CanvasConnect
|
|
43
42
|
end
|
44
43
|
|
45
44
|
def method_missing(meth, *args, &block)
|
46
|
-
|
47
|
-
|
48
|
-
else
|
49
|
-
super
|
50
|
-
end
|
45
|
+
return super unless ATTRIBUTES.include?(meth.to_sym)
|
46
|
+
@attr_cache[meth] ||= @archive.at_xpath("//#{meth.to_s.dasherize}").try(:text)
|
51
47
|
end
|
52
|
-
|
53
48
|
end
|
54
|
-
end
|
49
|
+
end
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zach Pendleton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 0.9.6
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.9.6
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: adobe_connect
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 1.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 1.0.0
|
41
41
|
description: Canvas Connect is an Adobe Connect plugin for the Instructure Canvas
|
@@ -47,7 +47,7 @@ executables: []
|
|
47
47
|
extensions: []
|
48
48
|
extra_rdoc_files: []
|
49
49
|
files:
|
50
|
-
- .gitignore
|
50
|
+
- ".gitignore"
|
51
51
|
- Gemfile
|
52
52
|
- LICENSE.txt
|
53
53
|
- README.md
|
@@ -70,12 +70,12 @@ require_paths:
|
|
70
70
|
- lib
|
71
71
|
required_ruby_version: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
|
-
- -
|
78
|
+
- - ">="
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: '0'
|
81
81
|
requirements: []
|