animoto 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/animoto/assets/title_card.rb +2 -2
- data/lib/animoto.rb +2 -2
- data/spec/animoto/assets/title_card_spec.rb +5 -0
- metadata +4 -4
@@ -36,7 +36,7 @@ module Animoto
|
|
36
36
|
#
|
37
37
|
# @return [Hash{String=>Object}] this TitleCard as a Hash
|
38
38
|
def to_hash
|
39
|
-
hash = {}
|
39
|
+
hash = { 'type' => 'title_card' }
|
40
40
|
hash['h1'] = title
|
41
41
|
hash['h2'] = subtitle if subtitle
|
42
42
|
hash['spotlit'] = spotlit? unless @spotlit.nil?
|
@@ -44,4 +44,4 @@ module Animoto
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end
|
47
|
-
end
|
47
|
+
end
|
data/lib/animoto.rb
CHANGED
@@ -25,6 +25,11 @@ describe Animoto::Assets::TitleCard do
|
|
25
25
|
@card = Animoto::Assets::TitleCard.new("hooray")
|
26
26
|
end
|
27
27
|
|
28
|
+
it "should have type 'title_card'" do
|
29
|
+
@card.to_hash.should have_key('type')
|
30
|
+
@card.to_hash['type'].should == 'title_card'
|
31
|
+
end
|
32
|
+
|
28
33
|
it "should have an 'h1' key with the title" do
|
29
34
|
@card.to_hash.should have_key('h1')
|
30
35
|
@card.to_hash['h1'].should == @card.title
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: animoto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 1.3.
|
9
|
+
- 1
|
10
|
+
version: 1.3.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Animoto
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-04-
|
18
|
+
date: 2011-04-28 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|