njacobeus-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 CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.1.3 2008-12-01 (UNPUBLISHED)
2
+
3
+ * Fixed bug when a VMail list is empty
4
+ * Corrected case of tokboxer.rb
5
+
1
6
  == 0.1.2 2008-11-27
2
7
 
3
8
  * VMail objects now hold both the message id and the vmail id
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
- spec/TokBoxer_spec.rb
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)["feed"].first["item"].map do |m|
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.2'
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.2"
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-11-27}
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.rb", "lib/TokBoxer/Api.rb", "lib/TokBoxer/Call.rb", "lib/TokBoxer/Exceptions.rb", "lib/TokBoxer/User.rb", "lib/TokBoxer/VMail.rb", "spec/TokBoxer_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "tasks/rspec.rake", "tokboxer.gemspec"]
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: njacobeus-tokboxer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
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-11-27 00:00:00 -08:00
12
+ date: 2008-12-01 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -55,16 +55,12 @@ files:
55
55
  - Manifest.txt
56
56
  - README.rdoc
57
57
  - Rakefile
58
- - lib/TokBoxer.rb
59
58
  - lib/TokBoxer/Api.rb
60
59
  - lib/TokBoxer/Call.rb
61
60
  - lib/TokBoxer/Exceptions.rb
62
61
  - lib/TokBoxer/User.rb
63
62
  - lib/TokBoxer/VMail.rb
64
- - spec/TokBoxer_spec.rb
65
- - spec/spec.opts
66
- - spec/spec_helper.rb
67
- - tasks/rspec.rake
63
+ - lib/tokboxer.rb
68
64
  - tokboxer.gemspec
69
65
  has_rdoc: true
70
66
  homepage: http://github.com/njacobeus/tokboxer/
@@ -1,11 +0,0 @@
1
- require File.dirname(__FILE__) + '/spec_helper.rb'
2
-
3
- # Time to add your specs!
4
- # http://rspec.info/
5
- describe "Place your specs here" do
6
-
7
- it "find this spec in spec directory" do
8
- violated "Be sure to write your specs"
9
- end
10
-
11
- end
data/spec/spec.opts DELETED
@@ -1 +0,0 @@
1
- --colour
data/spec/spec_helper.rb DELETED
@@ -1,10 +0,0 @@
1
- begin
2
- require 'spec'
3
- rescue LoadError
4
- require 'rubygems'
5
- gem 'rspec'
6
- require 'spec'
7
- end
8
-
9
- $:.unshift(File.dirname(__FILE__) + '/../lib')
10
- require 'TokBoxer'
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