tokboxer 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/Manifest.txt +1 -5
- data/lib/TokBoxer/User.rb +4 -1
- data/lib/{TokBoxer.rb → tokboxer.rb} +1 -2
- data/tokboxer.gemspec +3 -3
- metadata +3 -7
- data/spec/TokBoxer_spec.rb +0 -11
- data/spec/spec.opts +0 -1
- data/spec/spec_helper.rb +0 -10
- data/tasks/rspec.rake +0 -21
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
@@ -2,14 +2,10 @@ History.txt
|
|
2
2
|
Manifest.txt
|
3
3
|
README.rdoc
|
4
4
|
Rakefile
|
5
|
-
lib/TokBoxer.rb
|
6
5
|
lib/TokBoxer/Api.rb
|
7
6
|
lib/TokBoxer/Call.rb
|
8
7
|
lib/TokBoxer/Exceptions.rb
|
9
8
|
lib/TokBoxer/User.rb
|
10
9
|
lib/TokBoxer/VMail.rb
|
11
|
-
|
12
|
-
spec/spec.opts
|
13
|
-
spec/spec_helper.rb
|
14
|
-
tasks/rspec.rake
|
10
|
+
lib/tokboxer.rb
|
15
11
|
tokboxer.gemspec
|
data/lib/TokBoxer/User.rb
CHANGED
@@ -43,7 +43,9 @@ module TokBoxer
|
|
43
43
|
protected
|
44
44
|
|
45
45
|
def build_vmails_array(what)
|
46
|
-
@api.get_feed(@jabberId,what)
|
46
|
+
xml = @api.get_feed(@jabberId,what)
|
47
|
+
return [] unless xml["feed"].first["item"]
|
48
|
+
xml["feed"].first["item"].map do |m|
|
47
49
|
next unless m["videoMail"]
|
48
50
|
VMail.new :id => m["videoMail"].first["vmailId"],
|
49
51
|
:message_id => m["videoMail"].first["content"]["messageId"].first
|
@@ -91,6 +93,7 @@ module TokBoxer
|
|
91
93
|
<param name="movie" value="#{@api.api_server_url}#{API_SERVER_PLAYER_WIDGET}"></param>
|
92
94
|
<param name="allowFullScreen" value="true"></param>
|
93
95
|
<param name="allowScriptAccess" value="true"></param>
|
96
|
+
<param name="flashvars" value="targetVmail=#{messageId}"></param>
|
94
97
|
<embed id="tbx_player" src="#{@api.api_server_url}#{API_SERVER_PLAYER_WIDGET}"
|
95
98
|
type="application/x-shockwave-flash"
|
96
99
|
allowfullscreen="true"
|
@@ -5,13 +5,12 @@ require 'rubygems'
|
|
5
5
|
require 'net/http'
|
6
6
|
require 'uri'
|
7
7
|
require 'digest/md5'
|
8
|
-
#require 'rest_client'
|
9
8
|
require 'cgi'
|
10
9
|
require 'xmlsimple'
|
11
10
|
require 'pp' # just for debugging purposes
|
12
11
|
|
13
12
|
module TokBoxer
|
14
|
-
VERSION = '0.1.
|
13
|
+
VERSION = '0.1.3'
|
15
14
|
|
16
15
|
API_SERVER_LOGIN_URL = "view/oauth&"
|
17
16
|
API_SERVER_METHODS_URL = "a/v0"
|
data/tokboxer.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = %q{tokboxer}
|
3
|
-
s.version = "0.1.
|
3
|
+
s.version = "0.1.3"
|
4
4
|
|
5
5
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
6
6
|
s.authors = ["Nicolas Jacobeus"]
|
7
|
-
s.date = %q{2008-
|
7
|
+
s.date = %q{2008-12-01}
|
8
8
|
s.description = %q{This is a ruby implementation of the TokBox API. Tokbox is a free video calling / video mailing platform (see http://www.tokbox.com). All API methods specified in the Tokbox Developer API wiki (http://developers.tokbox.com/index.php/API) are implemented but not all objects yet. So you may have to dig into the hash returned by the call (XML converted to a Ruby hash). For the moment, this gem currently specifically serves our needs for the implementation of video conversations and video mails on iStockCV (www.istockcv.com), an online recruitment network which we are developing. Your needs may vary so feel free to contact me (nj@belighted.com).}
|
9
9
|
s.email = ["nj@belighted.com"]
|
10
10
|
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.rdoc"]
|
11
|
-
s.files = ["History.txt", "Manifest.txt", "README.rdoc", "Rakefile", "lib/TokBoxer
|
11
|
+
s.files = ["History.txt", "Manifest.txt", "README.rdoc", "Rakefile", "lib/TokBoxer/Api.rb", "lib/TokBoxer/Call.rb", "lib/TokBoxer/Exceptions.rb", "lib/TokBoxer/User.rb", "lib/TokBoxer/VMail.rb", "lib/tokboxer.rb", "tokboxer.gemspec"]
|
12
12
|
s.has_rdoc = true
|
13
13
|
s.homepage = %q{http://github.com/njacobeus/tokboxer/}
|
14
14
|
s.rdoc_options = ["--main", "README.rdoc"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tokboxer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicolas Jacobeus
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-12-01 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -58,16 +58,12 @@ files:
|
|
58
58
|
- Manifest.txt
|
59
59
|
- README.rdoc
|
60
60
|
- Rakefile
|
61
|
-
- lib/TokBoxer.rb
|
62
61
|
- lib/TokBoxer/Api.rb
|
63
62
|
- lib/TokBoxer/Call.rb
|
64
63
|
- lib/TokBoxer/Exceptions.rb
|
65
64
|
- lib/TokBoxer/User.rb
|
66
65
|
- lib/TokBoxer/VMail.rb
|
67
|
-
-
|
68
|
-
- spec/spec.opts
|
69
|
-
- spec/spec_helper.rb
|
70
|
-
- tasks/rspec.rake
|
66
|
+
- lib/tokboxer.rb
|
71
67
|
- tokboxer.gemspec
|
72
68
|
has_rdoc: true
|
73
69
|
homepage: http://github.com/njacobeus/tokboxer/
|
data/spec/TokBoxer_spec.rb
DELETED
data/spec/spec.opts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--colour
|
data/spec/spec_helper.rb
DELETED
data/tasks/rspec.rake
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
begin
|
2
|
-
require 'spec'
|
3
|
-
rescue LoadError
|
4
|
-
require 'rubygems'
|
5
|
-
require 'spec'
|
6
|
-
end
|
7
|
-
begin
|
8
|
-
require 'spec/rake/spectask'
|
9
|
-
rescue LoadError
|
10
|
-
puts <<-EOS
|
11
|
-
To use rspec for testing you must install rspec gem:
|
12
|
-
gem install rspec
|
13
|
-
EOS
|
14
|
-
exit(0)
|
15
|
-
end
|
16
|
-
|
17
|
-
desc "Run the specs under spec/models"
|
18
|
-
Spec::Rake::SpecTask.new do |t|
|
19
|
-
t.spec_opts = ['--options', "spec/spec.opts"]
|
20
|
-
t.spec_files = FileList['spec/**/*_spec.rb']
|
21
|
-
end
|