adobe_connect_api 0.0.5.alpha → 0.0.6.alpha

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module AdobeConnectApi
2
- VERSION = "0.0.5.alpha"
2
+ VERSION = "0.0.6.alpha"
3
3
  end
@@ -11,6 +11,7 @@ require "net/https"
11
11
  require "uri"
12
12
  require 'xmlsimple'
13
13
  require "cgi"
14
+ require "yaml"
14
15
  #require 'logger'
15
16
 
16
17
  require "adobe_connect_api/version"
@@ -40,7 +41,14 @@ class AdobeConnectAPI
40
41
  #The URL is the base URL of the Connect-Server, without the trailing slash
41
42
  def initialize (url = nil)
42
43
  #TODO ChR: Get this from the application config/initializer/abobe_connect_api.rb
43
- @pointconfig = YAML::load_file("#{Rails.root}/config/config.breeze.yml")[Rails.env]
44
+ begin
45
+ environment = Rails.env
46
+ # KG: we need the rescue blog since belt does not know Rails, but instead uses Sinatra.env
47
+ rescue
48
+ environment = Sinatra.env
49
+ end
50
+
51
+ @pointconfig = YAML::load_file("#{Rails.root}/config/config.breeze.yml")[environment]
44
52
  if (url == nil)
45
53
  @url = pointconfig["url"]
46
54
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adobe_connect_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5.alpha
4
+ version: 0.0.6.alpha
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-14 00:00:00.000000000Z
12
+ date: 2012-09-24 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: xml-simple
16
- requirement: &2152701020 !ruby/object:Gem::Requirement
16
+ requirement: &2152705220 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2152701020
24
+ version_requirements: *2152705220
25
25
  description: Wrapper to the Adobe Connect API
26
26
  email:
27
27
  - christian.rohrer@switch.ch