vj-sdk 0.6.8 → 0.6.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,4 +2,4 @@
2
2
  :major: 0
3
3
  :build:
4
4
  :minor: 6
5
- :patch: 8
5
+ :patch: 9
@@ -4,6 +4,11 @@ module Videojuicer
4
4
  include Videojuicer::Resource
5
5
  include Videojuicer::Exceptions
6
6
 
7
+ property :name, String
8
+ property :type, String
9
+ property :created_at, DateTime
10
+ property :updated_at, DateTime
11
+
7
12
  def self.singular_name
8
13
  "asset"
9
14
  end
@@ -68,6 +68,8 @@ module Videojuicer
68
68
  end
69
69
 
70
70
  def has_default_content?
71
+ return false if document_content.include? "<"
72
+
71
73
  asset_ids
72
74
  return false if video_assets.length > 1
73
75
 
@@ -92,13 +92,16 @@ describe Videojuicer::Presentation do
92
92
  end
93
93
 
94
94
  it "should know it has the default document_content" do
95
- p @presentation.document_content
96
95
  @presentation.has_default_content?.should == true
97
96
  end
98
97
 
99
98
  it "should know it doesn't have the default document_content" do
100
99
  @presentation.document_content = "{% image %}{% id 1 %}{% endimage %}"
101
- p @presentation.document_content
100
+ @presentation.has_default_content?.should == false
101
+ end
102
+
103
+ it "should return false if there is any xml in the string" do
104
+ @presentation.document_content = "{% image %}{% id 1 %}{% endimage %} <br/>"
102
105
  @presentation.has_default_content?.should == false
103
106
  end
104
107
 
@@ -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"
8
+ s.version = "0.6.9"
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: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 8
10
- version: 0.6.8
9
+ - 9
10
+ version: 0.6.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - danski