canvas_connect 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -115,7 +115,7 @@ class AdobeConnectConference < WebConference
115
115
  Rails.logger.error "Adobe Connect error on meeting create. Field: #{error['field']}, Value: #{error['subcode']}"
116
116
 
117
117
  if error['field'] == 'folder-id'
118
- throw CanvasConnect::MeetingFolderError.new("Folder '#{CanvasConnect.config[:meeting_folder]}' doesn't exist!")
118
+ throw CanvasConnect::MeetingFolderError.new("Folder '#{CanvasConnect.config[:meeting_container]}' doesn't exist!")
119
119
  end
120
120
 
121
121
  return nil
@@ -16,13 +16,13 @@
16
16
  # with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require "canvas_connect/version"
20
- require "canvas/plugins/validators/adobe_connect_validator"
21
- require "canvas/plugins/adobe_connect"
22
- require "canvas_connect/response"
23
- require "canvas_connect/meeting_folder"
24
- require "canvas_connect/connect_user"
25
- require "canvas_connect/service"
19
+ require_dependency "canvas_connect/version"
20
+ require_dependency "canvas/plugins/validators/adobe_connect_validator"
21
+ require_dependency "canvas/plugins/adobe_connect"
22
+ require_dependency "canvas_connect/response"
23
+ require_dependency "canvas_connect/meeting_folder"
24
+ require_dependency "canvas_connect/connect_user"
25
+ require_dependency "canvas_connect/service"
26
26
 
27
27
  module CanvasConnect
28
28
  class ConnectionError < StandardError; end
@@ -38,7 +38,7 @@ module CanvasConnect
38
38
  ApplicationController.view_paths.unshift(view_path)
39
39
  end
40
40
 
41
- require "models/adobe_connect_conference"
41
+ require_dependency "models/adobe_connect_conference"
42
42
 
43
43
  Canvas::Plugins::AdobeConnect.new
44
44
  end
@@ -53,7 +53,7 @@ module CanvasConnect
53
53
  #
54
54
  # Returns a username string.
55
55
  def username
56
- "canvas_user_#{@canvas_user.id}"
56
+ @canvas_user.email
57
57
  end
58
58
 
59
59
  # Internal: Generate a 10 character password for Adobe Connect.
@@ -31,7 +31,7 @@ module CanvasConnect
31
31
  unless logged_in?
32
32
  response = login(:login => @username, :password => @password)
33
33
  if response.xpath('//status[@code="ok"]').empty?
34
- raise ConnectionError.new("Could not log in to #{@domain}.")
34
+ raise ConnectionError.new("Could not log in to #{@domain} as #{@username}.")
35
35
  end
36
36
 
37
37
  @is_authenticated = true
@@ -17,6 +17,6 @@
17
17
  #
18
18
 
19
19
  module CanvasConnect
20
- VERSION = "0.0.1"
20
+ VERSION = "0.0.2"
21
21
  end
22
22
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canvas_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-10 00:00:00.000000000 Z
12
+ date: 2013-01-21 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Canvas Connect is an Adobe Connect plugin for the Instructure Canvas
15
15
  LMS. It allows teachers and administrators to create and launch Connect conferences
@@ -66,4 +66,3 @@ signing_key:
66
66
  specification_version: 3
67
67
  summary: Adobe Connect integration for Instructure Canvas (http://instructure.com).
68
68
  test_files: []
69
- has_rdoc: