vj-sdk 0.7.3 → 0.7.4
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 +7 -1
- data/lib/videojuicer/resource/collection.rb +1 -0
- data/lib/videojuicer/shared/liquid_helper.rb +11 -0
- data/spec/presentation_spec.rb +5 -0
- data/vj-sdk.gemspec +2 -2
- metadata +4 -4
data/VERSION.yml
CHANGED
@@ -76,13 +76,19 @@ module Videojuicer
|
|
76
76
|
types = @@asset_types.dup
|
77
77
|
types.delete "video"
|
78
78
|
|
79
|
-
types.inject(true) do |memo, type|
|
79
|
+
result = types.inject(true) do |memo, type|
|
80
80
|
unless send("#{type}_asset_ids").nil?
|
81
81
|
return false
|
82
82
|
else
|
83
83
|
true
|
84
84
|
end
|
85
85
|
end
|
86
|
+
return result unless result
|
87
|
+
|
88
|
+
#OMG MEGA HAX until I can schedule some time to fix it properly
|
89
|
+
return false if document_content.include? "delivery"
|
90
|
+
|
91
|
+
true
|
86
92
|
end
|
87
93
|
|
88
94
|
end
|
@@ -25,6 +25,17 @@ module Videojuicer
|
|
25
25
|
def unknown_tag tag_name, args, tokens; nil; end;
|
26
26
|
|
27
27
|
end#end class
|
28
|
+
|
29
|
+
class SmilVideoFragment < ::Liquid::Block
|
30
|
+
|
31
|
+
end
|
32
|
+
|
33
|
+
class IdFragment < ::Liquid::Tag
|
34
|
+
end
|
35
|
+
|
36
|
+
class DeliveryFragment < ::Liquid::Tag
|
37
|
+
end
|
38
|
+
|
28
39
|
end
|
29
40
|
end
|
30
41
|
end
|
data/spec/presentation_spec.rb
CHANGED
@@ -105,6 +105,11 @@ describe Videojuicer::Presentation do
|
|
105
105
|
@presentation.has_default_content?.should == false
|
106
106
|
end
|
107
107
|
|
108
|
+
it "should return false if there are any other smil tags in the document" do
|
109
|
+
@presentation.document_content = "{% video %}{% id 323 %}{% delivery progressive-only %}{% endvideo %}"
|
110
|
+
@presentation.has_default_content?.should == false
|
111
|
+
end
|
112
|
+
|
108
113
|
end
|
109
114
|
|
110
115
|
end
|
data/vj-sdk.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{vj-sdk}
|
8
|
-
s.version = "0.7.
|
8
|
+
s.version = "0.7.4"
|
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", "lamp"]
|
12
|
-
s.date = %q{2011-01-
|
12
|
+
s.date = %q{2011-01-20}
|
13
13
|
s.email = %q{dan@videojuicer.com}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"LICENSE",
|
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:
|
4
|
+
hash: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 0.7.
|
9
|
+
- 4
|
10
|
+
version: 0.7.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- danski
|
@@ -20,7 +20,7 @@ autorequire:
|
|
20
20
|
bindir: bin
|
21
21
|
cert_chain: []
|
22
22
|
|
23
|
-
date: 2011-01-
|
23
|
+
date: 2011-01-20 00:00:00 +00:00
|
24
24
|
default_executable:
|
25
25
|
dependencies:
|
26
26
|
- !ruby/object:Gem::Dependency
|