kaltura-ruby 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.rdoc CHANGED
@@ -1,27 +1,40 @@
1
1
  = kaltura-ruby
2
2
 
3
- A gem implementation of Kaltura's Ruby API implementation.
4
-
5
- Currently this gem uses the very outdated api version 0.7, there are tools to generate a more up to date version of the api included in the main KalturaCE distribution. For more information, visit http://www.kaltura.org/api-client-library-generator-guide
3
+ A gem implementation of Kaltura's Ruby API client
6
4
 
7
5
  http://www.kaltura.org/project/kcl_ruby
8
6
 
7
+ = Installation
8
+
9
+ $ gem install kaltura-ruby
10
+
9
11
  = Usage
10
12
 
13
+ require 'yaml'
11
14
  require 'kaltura-ruby'
12
15
 
13
16
  # These values may be retrieved from your KMC account
14
17
  login_email = your_login_email
15
18
  login_password = your_login_password
16
- parner_id = your_partner_id
19
+ partner_id = your_partner_id
17
20
  subpartner_id = your_subpartner_id
18
21
  administrator_secret = your_administrator_secret
19
22
  user_secret = your_user_secret
20
23
 
21
- config = Kaltura::KalturaConfiguration.new( partner_id , subpartner_id )
22
- user = Kaltura::KalturaSessionUser.new( partner_id )
24
+ config = Kaltura::KalturaConfiguration.new( partner_id )
23
25
  client = Kaltura::KalturaClient.new( config )
24
- admin = client.adminLogin( user , login_email , login_password )
26
+ session = client.session_service.start( admin_secret, '', KalturaSessionType::ADMIN )
27
+ client.ks = session
28
+
29
+ filter = KalturaFilter.new
30
+ pager = KalturaFilterPager.new
31
+
32
+ media = client.media_service.list(filter, pager)
33
+ puts "\nmedia:"
34
+ puts media.to_yaml
35
+
36
+ #video = File.open("/home/papyromancer/ovb.ogv")
37
+ #client.media_service.upload(video)
25
38
 
26
39
  == Copyright
27
40
 
@@ -29,4 +42,4 @@ The original Ruby client library for Kaltura may be found at http://www.kaltura.
29
42
 
30
43
  This library is released in compliance with the GNU Affero General Public License.
31
44
 
32
- Copyright (c) 2006-2008 Kaltura Inc. See LICENSE for details.
45
+ Copyright (c) 2006-2010 Kaltura Inc. See LICENSE for details.
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 1
4
- :patch: 0
4
+ :patch: 1
5
5
  :build:
data/kaltura-ruby.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{kaltura-ruby}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["papyromancer"]
data/lib/kaltura-ruby.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  $LOAD_PATH.unshift(File.dirname(__FILE__))
2
2
  require 'kaltura_client'
3
+ require 'yaml'
3
4
 
4
5
  include Kaltura
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kaltura-ruby
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - papyromancer