kaltura_fu 0.1.0.prel
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/MIT-LICENSE +20 -0
- data/README.markdown +66 -0
- data/Rakefile +57 -0
- data/VERSION.yml +5 -0
- data/config/kaltura.yml +22 -0
- data/install.rb +1 -0
- data/javascripts/kaltura_upload.js +67 -0
- data/kaltura_fu.gemspec +65 -0
- data/lib/kaltura_fu/category.rb +112 -0
- data/lib/kaltura_fu/report.rb +147 -0
- data/lib/kaltura_fu/video.rb +190 -0
- data/lib/kaltura_fu/view_helpers.rb +182 -0
- data/lib/kaltura_fu.rb +112 -0
- data/rails/init.rb +22 -0
- data/spec/kaltura_fu_spec.rb +166 -0
- data/spec/spec_helper.rb +10 -0
- data/tasks/kaltura_fu_tasks.rake +45 -0
- data/test/kaltura_fu_test.rb +8 -0
- data/test/test_helper.rb +3 -0
- data/uninstall.rb +1 -0
- metadata +108 -0
@@ -0,0 +1,45 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
CONFIG = File.join Rails.root, "config"
|
3
|
+
PUBLIC = File.join Rails.root, "public"
|
4
|
+
JS = File.join PUBLIC, "javascripts"
|
5
|
+
KALTURA_FU_PATH = File.join Rails.root, "vendor","plugins", "kaltura_fu"
|
6
|
+
|
7
|
+
namespace :kaltura_fu do
|
8
|
+
|
9
|
+
namespace :install do
|
10
|
+
|
11
|
+
desc 'Install the Kaltura Config File'
|
12
|
+
task :config do
|
13
|
+
config_file = File.join(KALTURA_FU_PATH,"config","kaltura.yml")
|
14
|
+
|
15
|
+
existing_config_file = File.join(CONFIG,"kaltura.yml")
|
16
|
+
unless File.exists?(existing_config_file)
|
17
|
+
FileUtils.cp_r config_file, CONFIG
|
18
|
+
puts "Config File Loaded"
|
19
|
+
else
|
20
|
+
puts "Config File Already Exists"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
task :js do
|
25
|
+
source_js_file = File.join(KALTURA_FU_PATH,"javascripts","kaltura_upload.js")
|
26
|
+
target_js_file = File.join(JS,"kaltura_upload.js")
|
27
|
+
|
28
|
+
unless File.exists?(target_js_file)
|
29
|
+
FileUtils.cp_r source_js_file, JS
|
30
|
+
puts "JS Files Loaded"
|
31
|
+
else
|
32
|
+
puts "JS Files already exist"
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
task :all,
|
37
|
+
:needs => ['kaltura_fu:install:config','kaltura_fu:install:js'] do
|
38
|
+
puts "Kaltura Fu has been installed!"
|
39
|
+
puts "---"
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
|
data/test/test_helper.rb
ADDED
data/uninstall.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
# Uninstall hook code here
|
metadata
ADDED
@@ -0,0 +1,108 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: kaltura_fu
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: -1876988243
|
5
|
+
prerelease: true
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 0
|
10
|
+
- prel
|
11
|
+
version: 0.1.0.prel
|
12
|
+
platform: ruby
|
13
|
+
authors:
|
14
|
+
- Patrick Robertson
|
15
|
+
autorequire:
|
16
|
+
bindir: bin
|
17
|
+
cert_chain: []
|
18
|
+
|
19
|
+
date: 2010-10-07 00:00:00 -04:00
|
20
|
+
default_executable:
|
21
|
+
dependencies:
|
22
|
+
- !ruby/object:Gem::Dependency
|
23
|
+
name: velir_kaltura-ruby
|
24
|
+
prerelease: false
|
25
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ">="
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
hash: 9
|
31
|
+
segments:
|
32
|
+
- 0
|
33
|
+
- 4
|
34
|
+
- 3
|
35
|
+
version: 0.4.3
|
36
|
+
type: :runtime
|
37
|
+
version_requirements: *id001
|
38
|
+
description:
|
39
|
+
email: patrick.robertson@velir.com
|
40
|
+
executables: []
|
41
|
+
|
42
|
+
extensions: []
|
43
|
+
|
44
|
+
extra_rdoc_files:
|
45
|
+
- README.markdown
|
46
|
+
files:
|
47
|
+
- .gitignore
|
48
|
+
- MIT-LICENSE
|
49
|
+
- README.markdown
|
50
|
+
- Rakefile
|
51
|
+
- VERSION.yml
|
52
|
+
- config/kaltura.yml
|
53
|
+
- install.rb
|
54
|
+
- javascripts/kaltura_upload.js
|
55
|
+
- kaltura_fu.gemspec
|
56
|
+
- lib/kaltura_fu.rb
|
57
|
+
- lib/kaltura_fu/category.rb
|
58
|
+
- lib/kaltura_fu/report.rb
|
59
|
+
- lib/kaltura_fu/video.rb
|
60
|
+
- lib/kaltura_fu/view_helpers.rb
|
61
|
+
- rails/init.rb
|
62
|
+
- spec/kaltura_fu_spec.rb
|
63
|
+
- spec/spec_helper.rb
|
64
|
+
- tasks/kaltura_fu_tasks.rake
|
65
|
+
- test/kaltura_fu_test.rb
|
66
|
+
- test/test_helper.rb
|
67
|
+
- uninstall.rb
|
68
|
+
has_rdoc: true
|
69
|
+
homepage: http://github.com/Velir/kaltura_fu
|
70
|
+
licenses: []
|
71
|
+
|
72
|
+
post_install_message:
|
73
|
+
rdoc_options:
|
74
|
+
- --charset=UTF-8
|
75
|
+
require_paths:
|
76
|
+
- lib
|
77
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
78
|
+
none: false
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
hash: 3
|
83
|
+
segments:
|
84
|
+
- 0
|
85
|
+
version: "0"
|
86
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
|
+
none: false
|
88
|
+
requirements:
|
89
|
+
- - ">"
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
hash: 25
|
92
|
+
segments:
|
93
|
+
- 1
|
94
|
+
- 3
|
95
|
+
- 1
|
96
|
+
version: 1.3.1
|
97
|
+
requirements: []
|
98
|
+
|
99
|
+
rubyforge_project:
|
100
|
+
rubygems_version: 1.3.7
|
101
|
+
signing_key:
|
102
|
+
specification_version: 3
|
103
|
+
summary: Rails gem for making Kaltura integrations easier.
|
104
|
+
test_files:
|
105
|
+
- spec/kaltura_fu_spec.rb
|
106
|
+
- spec/spec_helper.rb
|
107
|
+
- test/kaltura_fu_test.rb
|
108
|
+
- test/test_helper.rb
|