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 CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
+ :build:
2
3
  :major: 0
3
4
  :minor: 6
4
- :patch: 0
5
- :build:
5
+ :patch: 1
@@ -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
@@ -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.0"
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
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vj-sdk
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 0
10
- version: 0.6.0
9
+ - 1
10
+ version: 0.6.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - danski