vj-sdk 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +2 -2
- data/lib/videojuicer/presentation.rb +6 -1
- data/spec/presentation_spec.rb +7 -0
- data/vj-sdk.gemspec +1 -1
- metadata +3 -3
data/VERSION.yml
CHANGED
@@ -29,7 +29,7 @@ module Videojuicer
|
|
29
29
|
|
30
30
|
property :tag_list, String
|
31
31
|
|
32
|
-
|
32
|
+
attr_accessor :image_asset
|
33
33
|
@@asset_types = %w(video flash image document audio)
|
34
34
|
|
35
35
|
def permalink
|
@@ -47,6 +47,11 @@ module Videojuicer
|
|
47
47
|
return Videojuicer::SDKLiquidHelper::Filters::AssetBlock.asset_ids
|
48
48
|
end
|
49
49
|
|
50
|
+
#get the thumbnail image associated with the presentation
|
51
|
+
def image_asset
|
52
|
+
@image_asset ||= Videojuicer::Asset::Image.get(image_asset_id)
|
53
|
+
end
|
54
|
+
|
50
55
|
@@asset_types.each do |type|
|
51
56
|
sym_type = type.to_sym
|
52
57
|
define_method "#{type}_asset_ids" do
|
data/spec/presentation_spec.rb
CHANGED
@@ -26,6 +26,7 @@ describe Videojuicer::Presentation do
|
|
26
26
|
before :each do
|
27
27
|
@presentation = @klass.gen
|
28
28
|
Videojuicer::Asset::Video.create :file_name => 'foo.mp4'
|
29
|
+
Videojuicer::Asset::Image.create :file_name => 'foo.png'
|
29
30
|
end
|
30
31
|
|
31
32
|
it "should fetch asset ids" do
|
@@ -61,6 +62,12 @@ describe Videojuicer::Presentation do
|
|
61
62
|
@presentation.video_assets.first.id.should == 1
|
62
63
|
end
|
63
64
|
|
65
|
+
it "should return the image asset" do
|
66
|
+
@presentation.image_asset_id = 1
|
67
|
+
@presentation.image_asset.should_not == nil
|
68
|
+
@presentation.image_asset.class.should == Videojuicer::Asset::Image
|
69
|
+
end
|
70
|
+
|
64
71
|
end
|
65
72
|
|
66
73
|
|
data/vj-sdk.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{vj-sdk}
|
8
|
-
s.version = "0.6.
|
8
|
+
s.version = "0.6.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["danski", "thejohnny", "knowtheory", "sixones", "btab"]
|
metadata
CHANGED