videojuicer-vj-sdk 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 1
4
- :patch: 3
4
+ :patch: 4
@@ -72,6 +72,12 @@ module Videojuicer
72
72
  request.body = post_body
73
73
  end
74
74
 
75
+ # Send a content-length on POST and PUT to avoid an HTTP 411 response
76
+ case method
77
+ when :post, :put
78
+ request.content_length = 0
79
+ end
80
+
75
81
  begin
76
82
  #response = HTTPClient.send(method, url, multipart_params)
77
83
  response = Net::HTTP.start(host, port) {|http| http.request(request) }
data/spec/audio_spec.rb CHANGED
@@ -30,8 +30,10 @@ describe Videojuicer::Asset::Audio do
30
30
  :licensed_by => "foo, bar",
31
31
  :licensed_under => "CC BY:NC:SA",
32
32
  :published_at => Time.now,
33
- :duration => 180000,
34
- :bit_rate => 262144,
33
+ :duration => 40200,
34
+ :bit_rate => 1280400,
35
+ :format => "MPEG Layer 3",
36
+ :stereo => "stereo",
35
37
  :file => File.open(File.join(File.dirname(__FILE__), "files", "audio.mp3"))
36
38
  }
37
39
  end
data/spec/video_spec.rb CHANGED
@@ -25,15 +25,20 @@ describe Videojuicer::Asset::Video do
25
25
  @singular_name = "asset"
26
26
  @plural_name = "assets/video"
27
27
  @good_attributes = {
28
- :user_id => rand(100) + 1,
29
- :licensed_at => Time.now,
30
- :licensed_by => "foo, bar",
31
- :licensed_under => "CC BY:NC:SA",
32
- :published_at => Time.now,
33
- :duration => 180000,
34
- :width => 640,
35
- :height => 480,
36
- :bit_rate => 262144,
28
+ :user_id => rand(100) + 1,
29
+ :licensed_at => Time.now,
30
+ :licensed_by => "foo, bar",
31
+ :licensed_under => "CC BY:NC:SA",
32
+ :published_at => Time.now,
33
+ :duration => 14990,
34
+ :audio_bit_rate => 354200,
35
+ :audio_format => "QDesign Music 2",
36
+ :audio_sample_rate => 22050,
37
+ :audio_stereo => "mono",
38
+ :video_bit_rate => 1000000,
39
+ :video_format => "Sorenson Video 3 Decompressor",
40
+ :width => 240,
41
+ :height => 180,
37
42
  :file => File.open(File.join(File.dirname(__FILE__), "files", "video.mov"))
38
43
  }
39
44
  end
data/vj-sdk.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{vj-sdk}
5
- s.version = "0.1.3"
5
+ s.version = "0.1.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["danski", "thejohnny", "knowtheory", "sixones"]
9
- s.date = %q{2009-08-04}
9
+ s.date = %q{2009-08-05}
10
10
  s.email = %q{dan@videojuicer.com}
11
11
  s.extra_rdoc_files = [
12
12
  "LICENSE",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: videojuicer-vj-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - danski
@@ -12,7 +12,7 @@ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
14
 
15
- date: 2009-08-04 00:00:00 -07:00
15
+ date: 2009-08-05 00:00:00 -07:00
16
16
  default_executable:
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency