kaltura-ruby 0.1.0

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 ADDED
@@ -0,0 +1,32 @@
1
+ = kaltura-ruby
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
6
+
7
+ http://www.kaltura.org/project/kcl_ruby
8
+
9
+ = Usage
10
+
11
+ require 'kaltura-ruby'
12
+
13
+ # These values may be retrieved from your KMC account
14
+ login_email = your_login_email
15
+ login_password = your_login_password
16
+ parner_id = your_partner_id
17
+ subpartner_id = your_subpartner_id
18
+ administrator_secret = your_administrator_secret
19
+ user_secret = your_user_secret
20
+
21
+ config = Kaltura::KalturaConfiguration.new( partner_id , subpartner_id )
22
+ user = Kaltura::KalturaSessionUser.new( partner_id )
23
+ client = Kaltura::KalturaClient.new( config )
24
+ admin = client.adminLogin( user , login_email , login_password )
25
+
26
+ == Copyright
27
+
28
+ The original Ruby client library for Kaltura may be found at http://www.kaltura.org/project/kcl_ruby . This implementation of the library as a gem attempts to track the Kaltura svn as closely as possible while adding relevant documentation.
29
+
30
+ This library is released in compliance with the GNU Affero General Public License.
31
+
32
+ Copyright (c) 2006-2008 Kaltura Inc. See LICENSE for details.
data/Rakefile ADDED
@@ -0,0 +1,59 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+
4
+ begin
5
+ require 'jeweler'
6
+ Jeweler::Tasks.new do |gem|
7
+ gem.name = "kaltura-ruby"
8
+ gem.summary = "Ruby gem for accessing the Kaltura API"
9
+ gem.email = "papyromancer@papyromancer.net"
10
+ gem.homepage = "http://github.com/papyromancer/kaltura-ruby"
11
+ gem.authors = ["papyromancer"]
12
+ gem.add_dependency('activesupport')
13
+ gem.add_dependency('activeresource')
14
+ gem.add_dependency('json')
15
+ # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16
+ end
17
+
18
+ rescue LoadError
19
+ puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
20
+ end
21
+
22
+ require 'rake/testtask'
23
+ Rake::TestTask.new(:test) do |test|
24
+ test.libs << 'lib' << 'test'
25
+ test.pattern = 'test/**/*_test.rb'
26
+ test.verbose = true
27
+ end
28
+
29
+ begin
30
+ require 'rcov/rcovtask'
31
+ Rcov::RcovTask.new do |test|
32
+ test.libs << 'test'
33
+ test.pattern = 'test/**/*_test.rb'
34
+ test.verbose = true
35
+ end
36
+ rescue LoadError
37
+ task :rcov do
38
+ abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
39
+ end
40
+ end
41
+
42
+
43
+ task :default => :test
44
+
45
+ require 'rake/rdoctask'
46
+ Rake::RDocTask.new do |rdoc|
47
+ if File.exist?('VERSION.yml')
48
+ config = YAML.load(File.read('VERSION.yml'))
49
+ version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
50
+ else
51
+ version = ""
52
+ end
53
+
54
+ rdoc.rdoc_dir = 'rdoc'
55
+ rdoc.title = "kaltura-ruby #{version}"
56
+ rdoc.rdoc_files.include('README*')
57
+ rdoc.rdoc_files.include('lib/**/*.rb')
58
+ end
59
+
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.0.0
data/VERSION.yml ADDED
@@ -0,0 +1,5 @@
1
+ ---
2
+ :major: 0
3
+ :minor: 1
4
+ :patch: 0
5
+ :build:
@@ -0,0 +1,65 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{kaltura-ruby}
8
+ s.version = "0.1.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["papyromancer"]
12
+ s.date = %q{2010-05-16}
13
+ s.email = %q{papyromancer@papyromancer.net}
14
+ s.extra_rdoc_files = [
15
+ "LICENSE",
16
+ "README.rdoc"
17
+ ]
18
+ s.files = [
19
+ ".document",
20
+ ".gitignore",
21
+ "LICENSE",
22
+ "README.rdoc",
23
+ "Rakefile",
24
+ "VERSION",
25
+ "VERSION.yml",
26
+ "kaltura-ruby.gemspec",
27
+ "lib/kaltura-ruby.rb",
28
+ "lib/kaltura_client.rb",
29
+ "lib/kaltura_client_base.rb",
30
+ "lib/test.rb",
31
+ "test/kaltura-ruby_test.rb",
32
+ "test/test.rb",
33
+ "test/test_helper.rb"
34
+ ]
35
+ s.homepage = %q{http://github.com/papyromancer/kaltura-ruby}
36
+ s.rdoc_options = ["--charset=UTF-8"]
37
+ s.require_paths = ["lib"]
38
+ s.rubygems_version = %q{1.3.7}
39
+ s.summary = %q{Ruby gem for accessing the Kaltura API}
40
+ s.test_files = [
41
+ "test/kaltura-ruby_test.rb",
42
+ "test/test.rb",
43
+ "test/test_helper.rb"
44
+ ]
45
+
46
+ if s.respond_to? :specification_version then
47
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
48
+ s.specification_version = 3
49
+
50
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
51
+ s.add_runtime_dependency(%q<activesupport>, [">= 0"])
52
+ s.add_runtime_dependency(%q<activeresource>, [">= 0"])
53
+ s.add_runtime_dependency(%q<json>, [">= 0"])
54
+ else
55
+ s.add_dependency(%q<activesupport>, [">= 0"])
56
+ s.add_dependency(%q<activeresource>, [">= 0"])
57
+ s.add_dependency(%q<json>, [">= 0"])
58
+ end
59
+ else
60
+ s.add_dependency(%q<activesupport>, [">= 0"])
61
+ s.add_dependency(%q<activeresource>, [">= 0"])
62
+ s.add_dependency(%q<json>, [">= 0"])
63
+ end
64
+ end
65
+
@@ -0,0 +1,4 @@
1
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
2
+ require 'kaltura_client'
3
+
4
+ include Kaltura