acts_as_kaltura 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,6 +9,7 @@ module ActsAsKaltura
9
9
 
10
10
  module ClassMethods
11
11
  def acts_as_kaltura_annotation options = { }
12
+ self._kaltura_options = options
12
13
  before_create :create_kaltura_annotation
13
14
  after_update :update_kaltura_annotation
14
15
  after_destroy :delete_kaltura_annotation
@@ -17,7 +18,7 @@ module ActsAsKaltura
17
18
 
18
19
  def create_kaltura_annotation
19
20
  if self.cuepoint_key.nil?
20
- @kaltura_annotation = self.class.kaltura_client.cuepoint_service.
21
+ @kaltura_annotation = local_or_global_kaltura_client.cuepoint_service.
21
22
  add( self.as_annotation_cuepoint )
22
23
  raise KalturaAnnotationAddFailure if @kaltura_annotation.nil?
23
24
 
@@ -27,7 +28,7 @@ module ActsAsKaltura
27
28
 
28
29
  def update_kaltura_annotation
29
30
  if self.cuepoint_key.present?
30
- @kaltura_annotation = self.class.kaltura_client.cuepoint_service.
31
+ @kaltura_annotation = local_or_global_kaltura_client.cuepoint_service.
31
32
  update(self.cuepoint_key, self.as_annotation_cuepoint )
32
33
  raise KalturaAnnotationUpdateFailure if @kaltura_annotation.nil?
33
34
  end
@@ -35,7 +36,7 @@ module ActsAsKaltura
35
36
 
36
37
  def delete_kaltura_annotation
37
38
  if self.cuepoint_key.present?
38
- self.class.kaltura_client.cuepoint_service.delete(self.cuepoint_key)
39
+ local_or_global_kaltura_client.cuepoint_service.delete(self.cuepoint_key)
39
40
  @kaltura_annotation = nil
40
41
  end
41
42
  end
@@ -51,7 +52,7 @@ module ActsAsKaltura
51
52
  private
52
53
  def find_kaltura_annotation
53
54
  if self.cuepoint_key.present?
54
- self.class.kaltura_client.cuepoint_service.get(self.cuepoint_key)
55
+ local_or_global_kaltura_client.cuepoint_service.get(self.cuepoint_key)
55
56
  end
56
57
  end
57
58
  end
@@ -22,4 +22,20 @@ end
22
22
 
23
23
  module Kaltura
24
24
  class Annotation < ActsAsKaltura::Extension::KalturaAnnotation; end
25
+
26
+ class BaseEntry
27
+ attr_accessor :creator_id, :entitled_users_edit, :entitled_users_publish
28
+ end
29
+
30
+ class Category
31
+ attr_accessor :full_ids, :updated_at, :description, :tags, :appear_in_list,
32
+ :privacy, :inheritance_type, :user_join_policy,
33
+ :default_permission_level, :owner, :direct_entries_count,
34
+ :reference_id, :contribution_policy, :members_count,
35
+ :pending_members_count, :privacy_context, :privacy_contexts,
36
+ :status, :inherited_parent_id, :partner_sort_value,
37
+ :partner_data, :default_order_by, :direct_sub_categories_count,
38
+ :moderation, :pending_entries_count
39
+
40
+ end
25
41
  end
@@ -4,6 +4,8 @@ module ActsAsKaltura
4
4
  end
5
5
  end
6
6
 
7
- module Kaltura::Response
8
- CuePointListResponse = ActsAsKaltura::Extension::CuePointListResponse
7
+ module Kaltura
8
+ module Response
9
+ CuePointListResponse = ActsAsKaltura::Extension::CuePointListResponse
10
+ end
9
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_kaltura
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-07-15 00:00:00.000000000 Z
13
+ date: 2012-07-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: jeweler
17
- requirement: &2156382720 !ruby/object:Gem::Requirement
17
+ requirement: &2152429240 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2156382720
25
+ version_requirements: *2152429240
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: velir_kaltura-ruby
28
- requirement: &2156402820 !ruby/object:Gem::Requirement
28
+ requirement: &2152449820 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *2156402820
36
+ version_requirements: *2152449820
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: activesupport
39
- requirement: &2156401740 !ruby/object:Gem::Requirement
39
+ requirement: &2152448580 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 3.0.0
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *2156401740
47
+ version_requirements: *2152448580
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: activerecord
50
- requirement: &2156400700 !ruby/object:Gem::Requirement
50
+ requirement: &2152447500 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,7 +55,7 @@ dependencies:
55
55
  version: 3.0.0
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *2156400700
58
+ version_requirements: *2152447500
59
59
  description: Acts as kaltura
60
60
  email:
61
61
  - hasan@somewherein.net