animoto 1.5.2 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -102,7 +102,9 @@ client and using HTTP callbacks for status updates.
102
102
  # and format.
103
103
  manifest = Manifests::DirectingAndRendering.new(
104
104
  :title => "Amazing Title!",
105
- :resolution => "720p",
105
+ :resolution => "360p",
106
+ :style => "original",
107
+ :pacing => "fast",
106
108
  :framerate => 24,
107
109
  :format => 'h264'
108
110
  )
@@ -140,7 +142,7 @@ status.
140
142
 
141
143
  # Create a directing manifest. The directing manifest controls the images
142
144
  # and other visual elements that will be in our final video.
143
- manifest = Manifests::Directing.new(:title => "Amazing Title!")
145
+ manifest = Manifests::Directing.new(:title => "Amazing Title!", :pacing => "fast", :style => "original")
144
146
 
145
147
  # Add some images, text, and footage to our manifest.
146
148
  manifest << Assets::Image.new("http://website.com/picture.png")
@@ -168,7 +170,7 @@ status.
168
170
  # a rendering manifest.
169
171
  manifest = Manifests::Rendering.new(
170
172
  storyboard,
171
- :resolution => "720p",
173
+ :resolution => "360p",
172
174
  :framerate => 24,
173
175
  :format => 'h264'
174
176
  )
data/lib/animoto.rb CHANGED
@@ -6,6 +6,6 @@ module Animoto
6
6
  #
7
7
  # @return [String]
8
8
  def self.version
9
- "1.5.2"
9
+ "1.5.3"
10
10
  end
11
11
  end
@@ -54,7 +54,7 @@ module Animoto
54
54
  # @see Animoto::Assets::Base#to_hash
55
55
  def to_hash
56
56
  hash = super
57
- hash['audio_mix'] = 'MIX' if audio_mix
57
+ hash['audio_mix'] = audio_mix if audio_mix
58
58
  hash['start_time'] = start_time if start_time
59
59
  hash['duration'] = duration if duration
60
60
  hash['rotation'] = rotation if rotation
@@ -26,7 +26,7 @@ module Animoto
26
26
  # @return [Manifests::DirectingAndRendering] the manifest
27
27
  def initialize options = {}
28
28
  super
29
- @directing_manifest = Manifests::Directing.new(options.only(:title, :pacing, :max_duration))
29
+ @directing_manifest = Manifests::Directing.new(options.only(:title, :pacing, :max_duration, :style, :postroll))
30
30
  @rendering_manifest = Manifests::Rendering.new(options.only(:resolution, :framerate, :format))
31
31
  end
32
32
 
@@ -3,7 +3,7 @@ module Animoto
3
3
  class Rendering < Animoto::Manifests::Base
4
4
 
5
5
  # The vertical resolution of the rendered video. Valid values are '180p', '270p',
6
- # '360p', '480p', '576p', '720p' or '1080p'.
6
+ # '360p', '480p', or '720p'.
7
7
  # @return [String]
8
8
  attr_accessor :resolution
9
9
 
@@ -11,7 +11,7 @@ module Animoto
11
11
  # @return [Integer]
12
12
  attr_accessor :framerate
13
13
 
14
- # The format of the rendered video. Valid values are 'h264', 'h264-iphone', 'flv' or 'iso'.
14
+ # The format of the rendered video. Valid values are 'h264'.
15
15
  # @return [String]
16
16
  attr_accessor :format
17
17
 
@@ -45,7 +45,7 @@ module Animoto
45
45
  @streaming = options[:streaming]
46
46
  # We may or may not ever support other streaming formats
47
47
  @streaming_format = "http_live_streaming"
48
- end
48
+ end
49
49
 
50
50
  # Returns true if an HTTP Live Streaming URL will be created for this video while it's
51
51
  # rendering.
@@ -8,7 +8,19 @@ module Animoto
8
8
  COSMIC_TIDINGS = "cosmic_tidings"
9
9
  WONDERLAND_OF_SNOW = "wonderland_of_snow"
10
10
  THROUGH_THE_BLOSSOMS = "valentines_day_2012_hands"
11
-
11
+ WATER = "elements_water"
12
+ SIMPLICITY = "slideshow_1"
13
+ AIR = "elements_air"
14
+ FIRE = "elements_fire"
15
+ EARTH = "elements_earth"
16
+ COLOR_FOLD = "Cubist_style"
17
+ COMING_UP_ROSES = "valentines_2011"
18
+ WRAPPING_SCRAPS = "xmas-2010-style1"
19
+ THE_WINDING_VINE = "mothers_day"
20
+ POPUP_PANDEMONIUM = "holiday_popup_pandemonium"
21
+ STARRY_NIGHT = "holiday_starry_night"
22
+ RETRO_WHEEL = "viewmaster"
23
+
12
24
  DEPRECATED_NAMES = {
13
25
  :ORIGINAL => :ANIMOTO_ORIGINAL,
14
26
  :MOTHERS_DAY_2011 => :WATERCOLOR_SEASHORE,
@@ -2,7 +2,7 @@ module Animoto
2
2
  module Support
3
3
  module StandardEnvelope
4
4
 
5
- # When included into a class, also extends ClassMethods, includes InstanceMethods, and
5
+ # When included into a class, also extends ClassMethods, inludes InstanceMethods, and
6
6
  # includes Support::ContentType
7
7
  #
8
8
  # @param [Module] base the module this is being included into
@@ -115,4 +115,4 @@ module Animoto
115
115
  end
116
116
  end
117
117
  end
118
- end
118
+ end
@@ -45,7 +45,7 @@ describe Animoto::Assets::Footage do
45
45
 
46
46
  describe "if audio mixing is turned on" do
47
47
  before do
48
- @footage.audio_mix = true
48
+ @footage.audio_mix = 'MIX'
49
49
  end
50
50
 
51
51
  it "should have an 'audio_mix' key telling how to mix" do
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: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 5
9
- - 2
10
- version: 1.5.2
9
+ - 3
10
+ version: 1.5.3
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: 2012-04-09 00:00:00 Z
18
+ date: 2012-08-20 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: json
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  requirements: []
140
140
 
141
141
  rubyforge_project:
142
- rubygems_version: 1.8.17
142
+ rubygems_version: 1.8.24
143
143
  signing_key:
144
144
  specification_version: 3
145
145
  summary: Client for working with the Animoto RESTful HTTP API