marte-ruby 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/marte/token.rb CHANGED
@@ -2,7 +2,6 @@ require 'hmac-sha1'
2
2
 
3
3
 
4
4
  module Marte
5
-
6
5
  class Token < ActiveResource::Base
7
6
 
8
7
  self.site = "http://marte.dit.upm.es:5080/marte/service"
@@ -57,6 +56,12 @@ module Marte
57
56
  prefix_options, query_options = split_options(prefix_options) if query_options.nil?
58
57
  "#{prefix(prefix_options)}#{collection_name}/#{id}#{query_string(query_options)}"
59
58
  end
59
+
60
+ def self.embed_for(*args)
61
+ new.embed_for(*args)
62
+ rescue StandardError => e
63
+ "The following error ocurred with the conference server: #{ e }"
64
+ end
60
65
 
61
66
  def createToken(user, room)
62
67
  connection.post(collection_path, room, self.class.headers(user, attributes)) do |response|
@@ -96,11 +101,4 @@ module Marte
96
101
  end
97
102
  end
98
103
  end
99
-
100
104
  end
101
-
102
-
103
-
104
-
105
-
106
-
data/lib/marte/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Marte
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marte-ruby
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - GING - UPM