animoto 0.1.0.beta1 → 0.1.1.beta1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -205,5 +205,24 @@ status.
205
205
  You might want to checkout our [the wiki page](http://wiki.github.com/animoto/animoto_ruby_client) for information
206
206
  on coding standards, new features, etc.
207
207
 
208
+ ## Copyright Information
209
+
210
+ Copyright © 2010 Animoto Inc. All rights reserved.
211
+
212
+ Notice – this software is owned by Animoto Inc. (“Animoto”) and is being licensed to you in source code form on the condition that you comply these terms. By continuing to use the software, you are agreeing to be bound by these terms. If you disagree with these terms, you must immediately stop using the software and permanently destroy it, or return it to Animoto.
213
+
214
+ Animoto hereby grants to you a limited, personal, worldwide, nontransferable license to copy, execute, compile, reproduce, modify, prepare and have prepared derivative works of the software solely for the Purpose. The “Purpose” shall mean use of the software for accessing the Animoto Application Programming Interface (“API”) in accordance with Animoto’s Terms of Service, and any other terms and conditions applicable to your Animoto user account.
215
+
216
+ For purposes of clarity, you agree that you have no right to use the software for any other purpose other than the Purpose as defined above. This license does not include the right to distribute, transfer, sell, or otherwise commercialize the software or any portion thereof.
217
+
218
+ To the extent you make any derivative works from software, you hereby grant back to Animoto a worldwide, irrevocable, perpetual, sublicenseable, assignable, royalty-free license to such derivative works, in source and object code form.
219
+
220
+ You agree to include these terms in all copies made of the software, and to not remove or alter the above copyright notice or these terms in such copies.
221
+
222
+ THIS SOFTWARE IS PROVIDED "AS IS," WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, OR THE WARRANTY OF NON-INFRINGEMENT.
223
+
224
+ IN NO EVENT SHALL ANIMOTO BE LIABLE TO YOU OR ANY THIRD PARTY FOR ANY SPECIAL, PUNITIVE, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING, WITHOUT LIMITATION, THOSE RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ANIMOTO HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, AND ON ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OF THIS SOFTWARE.
225
+
226
+ You agree to indemnify defend and hold Animoto, its parents, subsidiaries, affiliates, officers and employees, harmless from any liabilities, claims, expenses or demands, including reasonable attorneys’ fees and costs, made by any third party due to or arising out of your use of this software, derivative works created by you, the violation of laws, rules, regulations or these terms, and the infringement of any intellectual property right by your derivative works or by you.
208
227
 
209
228
  [api_docs]: http://animoto.com/developer/api
@@ -111,8 +111,8 @@ module Animoto
111
111
  @logger = options[:logger] || ::Logger.new(STDOUT)
112
112
  configure_from_rc_file
113
113
  @endpoint ||= API_ENDPOINT
114
- __send__ :http_engine=, options[:http_engine] || :net_http
115
- __send__ :response_parser=, options[:response_parser] || :json
114
+ self.http_engine = options[:http_engine] || :net_http
115
+ self.response_parser= options[:response_parser] || :json
116
116
  end
117
117
 
118
118
  def http_engine= engine
@@ -5,6 +5,11 @@ module Animoto
5
5
  class Base
6
6
  include Support::ContentType
7
7
 
8
+ # @return [String]
9
+ def self.infer_content_type
10
+ super + '_manifest'
11
+ end
12
+
8
13
  # Returns a representation of this manifest as a Hash, used to populate
9
14
  # request bodies when directing, rendering, etc.
10
15
  #
data/lib/animoto.rb CHANGED
@@ -6,6 +6,6 @@ module Animoto
6
6
  #
7
7
  # @return [String]
8
8
  def self.version
9
- "0.1.0.beta1"
9
+ "0.1.1.beta1"
10
10
  end
11
11
  end
data/spec/spec_helper.rb CHANGED
@@ -4,7 +4,7 @@ require 'mocha'
4
4
 
5
5
  Spec::Runner.configure do |config|
6
6
  config.mock_with :mocha
7
- config.include WebMock
7
+ config.include WebMock::API
8
8
  end
9
9
 
10
10
  require File.expand_path(File.dirname(__FILE__) + '/../lib/animoto/client')
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: -1848230075
4
+ hash: -1848230079
5
5
  prerelease: true
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
9
+ - 1
10
10
  - beta1
11
- version: 0.1.0.beta1
11
+ version: 0.1.1.beta1
12
12
  platform: ruby
13
13
  authors:
14
14
  - Animoto
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-10-12 00:00:00 -04:00
19
+ date: 2010-10-26 00:00:00 -04:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency