animoto 0.0.0.alpha6 → 0.0.0.alpha7

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/lib/animoto/asset.rb CHANGED
@@ -12,7 +12,7 @@ module Animoto
12
12
  #
13
13
  # @return [Hash] this asset as a Hash
14
14
  def to_hash
15
- { 'source' => @source }
15
+ { 'source_url' => @source }
16
16
  end
17
17
 
18
18
  end
@@ -196,7 +196,7 @@ module Animoto
196
196
  # @param [Hash] options
197
197
  # @return [Hash] deserialized response body
198
198
  def send_manifest manifest, endpoint, options = {}
199
- u = URI.parse(endpoint)
199
+ u = URI.parse(self.endpoint)
200
200
  u.path = endpoint
201
201
  request(
202
202
  :post,
data/lib/animoto.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Animoto
2
2
  def self.version
3
- "0.0.0.alpha6"
3
+ "0.0.0.alpha7"
4
4
  end
5
5
  end
@@ -11,9 +11,9 @@ describe Animoto::Footage do
11
11
  @footage = Animoto::Footage.new 'http://website.com/movie.mp4'
12
12
  end
13
13
 
14
- it "should have a 'source' key with the url" do
15
- @footage.to_hash.should have_key('source')
16
- @footage.to_hash['source'].should == @footage.source
14
+ it "should have a 'source_url' key with the url" do
15
+ @footage.to_hash.should have_key('source_url')
16
+ @footage.to_hash['source_url'].should == @footage.source
17
17
  end
18
18
 
19
19
  it "should not have a 'spotlit' key" do
@@ -11,9 +11,9 @@ describe Animoto::Image do
11
11
  @image = Animoto::Image.new 'http://website.com/image.png'
12
12
  end
13
13
 
14
- it "should have a 'source' key with the url" do
15
- @image.to_hash.should have_key('source')
16
- @image.to_hash['source'].should == @image.source
14
+ it "should have a 'source_url' key with the url" do
15
+ @image.to_hash.should have_key('source_url')
16
+ @image.to_hash['source_url'].should == @image.source
17
17
  end
18
18
 
19
19
  describe "if rotated" do
@@ -7,9 +7,9 @@ describe Animoto::Song do
7
7
  @song = Animoto::Song.new 'http://website.com/song.mp3'
8
8
  end
9
9
 
10
- it "should have a 'source' key with the url" do
11
- @song.to_hash.should have_key('source')
12
- @song.to_hash['source'].should == @song.source
10
+ it "should have a 'source_url' key with the url" do
11
+ @song.to_hash.should have_key('source_url')
12
+ @song.to_hash['source_url'].should == @song.source
13
13
  end
14
14
 
15
15
  describe "if a start time was specified" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: animoto
3
3
  version: !ruby/object:Gem::Version
4
- hash: -1710980404
4
+ hash: -1710980403
5
5
  prerelease: true
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
9
  - 0
10
- - alpha6
11
- version: 0.0.0.alpha6
10
+ - alpha7
11
+ version: 0.0.0.alpha7
12
12
  platform: ruby
13
13
  authors:
14
14
  - Animoto