animoto 0.0.0.alpha0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. data/README.md +39 -0
  2. data/lib/animoto/asset.rb +25 -0
  3. data/lib/animoto/client.rb +226 -0
  4. data/lib/animoto/content_type.rb +47 -0
  5. data/lib/animoto/directing_and_rendering_job.rb +19 -0
  6. data/lib/animoto/directing_and_rendering_manifest.rb +25 -0
  7. data/lib/animoto/directing_job.rb +18 -0
  8. data/lib/animoto/directing_manifest.rb +115 -0
  9. data/lib/animoto/errors.rb +3 -0
  10. data/lib/animoto/footage.rb +15 -0
  11. data/lib/animoto/image.rb +14 -0
  12. data/lib/animoto/job.rb +37 -0
  13. data/lib/animoto/manifest.rb +21 -0
  14. data/lib/animoto/rendering_job.rb +24 -0
  15. data/lib/animoto/rendering_manifest.rb +37 -0
  16. data/lib/animoto/resource.rb +153 -0
  17. data/lib/animoto/song.rb +16 -0
  18. data/lib/animoto/standard_envelope.rb +27 -0
  19. data/lib/animoto/storyboard.rb +22 -0
  20. data/lib/animoto/title_card.rb +26 -0
  21. data/lib/animoto/video.rb +29 -0
  22. data/lib/animoto/visual.rb +30 -0
  23. data/lib/animoto.rb +5 -0
  24. data/spec/animoto/asset_spec.rb +1 -0
  25. data/spec/animoto/client_spec.rb +119 -0
  26. data/spec/animoto/directing_and_rendering_job_spec.rb +45 -0
  27. data/spec/animoto/directing_and_rendering_manifest_spec.rb +143 -0
  28. data/spec/animoto/directing_job_spec.rb +48 -0
  29. data/spec/animoto/directing_manifest_spec.rb +186 -0
  30. data/spec/animoto/footage_spec.rb +56 -0
  31. data/spec/animoto/image_spec.rb +41 -0
  32. data/spec/animoto/job_spec.rb +128 -0
  33. data/spec/animoto/rendering_job_spec.rb +57 -0
  34. data/spec/animoto/rendering_manifest_spec.rb +115 -0
  35. data/spec/animoto/resource_spec.rb +55 -0
  36. data/spec/animoto/song_spec.rb +54 -0
  37. data/spec/animoto/standard_envelope_spec.rb +0 -0
  38. data/spec/animoto/storyboard_spec.rb +8 -0
  39. data/spec/animoto/title_card_spec.rb +42 -0
  40. data/spec/animoto/video_spec.rb +1 -0
  41. data/spec/animoto/visual_spec.rb +0 -0
  42. data/spec/animoto_spec.rb +5 -0
  43. data/spec/spec_helper.rb +10 -0
  44. metadata +127 -0
File without changes
@@ -0,0 +1,8 @@
1
+ require File.expand_path(File.dirname(__FILE__) + "/../spec_helper")
2
+
3
+ describe Animoto::Storyboard do
4
+ def storyboard options = {}
5
+ @storyboard ||= Animoto::Storyboard.new options
6
+ end
7
+
8
+ end
@@ -0,0 +1,42 @@
1
+ require File.expand_path(File.dirname(__FILE__) + "/../spec_helper")
2
+
3
+ describe Animoto::TitleCard do
4
+
5
+ it "should be a visual" do
6
+ Animoto::TitleCard.should include(Animoto::Visual)
7
+ end
8
+
9
+ describe "#to_hash" do
10
+ before do
11
+ @card = Animoto::TitleCard.new("hooray")
12
+ end
13
+
14
+ it "should have an 'h1' key with the title" do
15
+ @card.to_hash.should have_key('h1')
16
+ @card.to_hash['h1'].should == @card.title
17
+ end
18
+
19
+ describe "if there is a subtitle" do
20
+ before do
21
+ @card.subtitle = "for everything!"
22
+ end
23
+
24
+ it "should have an 'h2' key with the subtitle" do
25
+ @card.to_hash.should have_key('h2')
26
+ @card.to_hash['h2'].should == @card.subtitle
27
+ end
28
+ end
29
+
30
+ describe "if spotlit" do
31
+ before do
32
+ @card.spotlit = true
33
+ end
34
+
35
+ it "should have a 'spotlit' key telling whether or not it is spotlit" do
36
+ @card.to_hash.should have_key('spotlit')
37
+ @card.to_hash['spotlit'].should == @card.spotlit?
38
+ end
39
+ end
40
+ end
41
+
42
+ end
@@ -0,0 +1 @@
1
+ require File.expand_path(File.dirname(__FILE__) + "/../spec_helper")
File without changes
@@ -0,0 +1,5 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe Animoto do
4
+
5
+ end
@@ -0,0 +1,10 @@
1
+ require 'spec'
2
+ require 'webmock/rspec'
3
+ require 'mocha'
4
+
5
+ Spec::Runner.configure do |config|
6
+ config.mock_with :mocha
7
+ config.include WebMock
8
+ end
9
+
10
+ require File.dirname(__FILE__) + '/../lib/animoto/client'
metadata ADDED
@@ -0,0 +1,127 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: animoto
3
+ version: !ruby/object:Gem::Version
4
+ hash: -1710980558
5
+ prerelease: true
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 0
10
+ - alpha0
11
+ version: 0.0.0.alpha0
12
+ platform: ruby
13
+ authors:
14
+ - Animoto
15
+ autorequire:
16
+ bindir: bin
17
+ cert_chain: []
18
+
19
+ date: 2010-08-11 00:00:00 -04:00
20
+ default_executable:
21
+ dependencies:
22
+ - !ruby/object:Gem::Dependency
23
+ name: json
24
+ prerelease: false
25
+ requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ">"
29
+ - !ruby/object:Gem::Version
30
+ hash: 31
31
+ segments:
32
+ - 0
33
+ - 0
34
+ - 0
35
+ version: 0.0.0
36
+ type: :runtime
37
+ version_requirements: *id001
38
+ description: ""
39
+ email: theteam@animoto.com
40
+ executables: []
41
+
42
+ extensions: []
43
+
44
+ extra_rdoc_files: []
45
+
46
+ files:
47
+ - README.md
48
+ - ./lib/animoto/asset.rb
49
+ - ./lib/animoto/client.rb
50
+ - ./lib/animoto/content_type.rb
51
+ - ./lib/animoto/directing_and_rendering_job.rb
52
+ - ./lib/animoto/directing_and_rendering_manifest.rb
53
+ - ./lib/animoto/directing_job.rb
54
+ - ./lib/animoto/directing_manifest.rb
55
+ - ./lib/animoto/errors.rb
56
+ - ./lib/animoto/footage.rb
57
+ - ./lib/animoto/image.rb
58
+ - ./lib/animoto/job.rb
59
+ - ./lib/animoto/manifest.rb
60
+ - ./lib/animoto/rendering_job.rb
61
+ - ./lib/animoto/rendering_manifest.rb
62
+ - ./lib/animoto/resource.rb
63
+ - ./lib/animoto/song.rb
64
+ - ./lib/animoto/standard_envelope.rb
65
+ - ./lib/animoto/storyboard.rb
66
+ - ./lib/animoto/title_card.rb
67
+ - ./lib/animoto/video.rb
68
+ - ./lib/animoto/visual.rb
69
+ - ./lib/animoto.rb
70
+ - ./spec/animoto/asset_spec.rb
71
+ - ./spec/animoto/client_spec.rb
72
+ - ./spec/animoto/directing_and_rendering_job_spec.rb
73
+ - ./spec/animoto/directing_and_rendering_manifest_spec.rb
74
+ - ./spec/animoto/directing_job_spec.rb
75
+ - ./spec/animoto/directing_manifest_spec.rb
76
+ - ./spec/animoto/footage_spec.rb
77
+ - ./spec/animoto/image_spec.rb
78
+ - ./spec/animoto/job_spec.rb
79
+ - ./spec/animoto/rendering_job_spec.rb
80
+ - ./spec/animoto/rendering_manifest_spec.rb
81
+ - ./spec/animoto/resource_spec.rb
82
+ - ./spec/animoto/song_spec.rb
83
+ - ./spec/animoto/standard_envelope_spec.rb
84
+ - ./spec/animoto/storyboard_spec.rb
85
+ - ./spec/animoto/title_card_spec.rb
86
+ - ./spec/animoto/video_spec.rb
87
+ - ./spec/animoto/visual_spec.rb
88
+ - ./spec/animoto_spec.rb
89
+ - ./spec/spec_helper.rb
90
+ has_rdoc: true
91
+ homepage: http://animoto.com
92
+ licenses: []
93
+
94
+ post_install_message:
95
+ rdoc_options: []
96
+
97
+ require_paths:
98
+ - lib
99
+ required_ruby_version: !ruby/object:Gem::Requirement
100
+ none: false
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ hash: 3
105
+ segments:
106
+ - 0
107
+ version: "0"
108
+ required_rubygems_version: !ruby/object:Gem::Requirement
109
+ none: false
110
+ requirements:
111
+ - - ">"
112
+ - !ruby/object:Gem::Version
113
+ hash: 25
114
+ segments:
115
+ - 1
116
+ - 3
117
+ - 1
118
+ version: 1.3.1
119
+ requirements: []
120
+
121
+ rubyforge_project:
122
+ rubygems_version: 1.3.7
123
+ signing_key:
124
+ specification_version: 3
125
+ summary: ""
126
+ test_files: []
127
+