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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6297bb8395a25f5db3b3bb9b4792bf81fe6d9b8d
4
- data.tar.gz: 6c87c2c7391451a144b39c0a2eb53f08dca216da
3
+ metadata.gz: 74cf7f7acd47c2012696e7b593fc5f3f995a40ef
4
+ data.tar.gz: fc68541545e42f6784b8edb3bace1ac2849a7ec7
5
5
  SHA512:
6
- metadata.gz: 820ef42d457b743fbe9e3d4c9e3b161f76a2c1a93258366f7f3b7504f2c13e903880978ac0e6c4aa1412b6ab96ce3eb148bf8ed07e93a2554f8c7ea61cd9163d
7
- data.tar.gz: b95667f10cf68d3251c83bc35d4a79183a0f230353cc863f999c25364e664fad7af122d5e3c38aa214311c1b436a772d6abf8d9550a251191bdbc89c2846597f
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
- (result.at_css('results scos').try(:element_children) || []).map do |archive|
28
- MeetingArchive.new(Nokogiri::XML(archive.to_xml))
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
- # meeting_id - The id of the meeting on Adobe Connect (must already exist).
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
- if ATTRIBUTES.include?(meth)
47
- @attr_cache[meth] ||= @archive.at_css("#{meth.to_s.dasherize}").try(:text)
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
@@ -1,3 +1,3 @@
1
1
  module CanvasConnect
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  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.1
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-06 00:00:00.000000000 Z
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: []