vzaar 1.6.1 → 1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +4 -0
- data/lib/vzaar.rb +1 -8
- data/lib/vzaar/request/signature.rb +1 -0
- data/lib/vzaar/uploaders/s3.rb +2 -1
- data/lib/vzaar/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/signature-default.yml +1 -1
- data/spec/fixtures/vcr_cassettes/signature-with-options.yml +1 -1
- data/spec/fixtures/vcr_cassettes/upload_video-multipart-success.yml +1 -1
- data/spec/fixtures/vcr_cassettes/upload_video-success.yml +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c165fd68fbf45eb211ac9388fad8d8368f3fe910
|
4
|
+
data.tar.gz: c6d7c43c4e280bbd539371c4b6dcdae6cee662ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28750b3d8512857828f7886e5506d032a93beea17530f9110f939dd0e47647dd33780d174a7fcf32f9f6c5630beb0454d3a6abe61a90c97ad1894ccc40952825
|
7
|
+
data.tar.gz: 66b6070ce49054d2c18bca86075ed6d7ed1c20a611eb75ab08c3385ea99f85d0fa435881bb5f49881853a4682b74de762bd69c0e18f008aa57c07ea02c580160
|
data/ChangeLog
CHANGED
data/lib/vzaar.rb
CHANGED
@@ -30,7 +30,7 @@ require 'nokogiri'
|
|
30
30
|
require 'oauth'
|
31
31
|
require 'json'
|
32
32
|
|
33
|
-
|
33
|
+
require 'vzaar/version'
|
34
34
|
require 'vzaar/request/multipart'
|
35
35
|
require 'vzaar/ext/oauth'
|
36
36
|
require 'vzaar/connection'
|
@@ -40,8 +40,6 @@ require 'vzaar/request/base'
|
|
40
40
|
|
41
41
|
require 'vzaar/resources/base'
|
42
42
|
require 'vzaar/resources/account_type'
|
43
|
-
|
44
|
-
|
45
43
|
require 'vzaar/resources/user'
|
46
44
|
require 'vzaar/resources/video'
|
47
45
|
require 'vzaar/resources/video_status'
|
@@ -69,16 +67,11 @@ require 'vzaar/request/link_upload'
|
|
69
67
|
require 'vzaar/request/generate_thumbnail'
|
70
68
|
require 'vzaar/request/upload_thumbnail'
|
71
69
|
require 'vzaar/request/add_subtitle'
|
72
|
-
|
73
|
-
|
74
70
|
require 'vzaar/uploader'
|
75
71
|
|
76
|
-
|
77
72
|
# response
|
78
73
|
|
79
74
|
require 'vzaar/response/base'
|
80
|
-
|
81
|
-
|
82
75
|
require 'vzaar/request/edit_video'
|
83
76
|
require 'vzaar/request/process_video'
|
84
77
|
require 'vzaar/request/process_audio'
|
@@ -20,6 +20,7 @@ module Vzaar
|
|
20
20
|
if options[:path]
|
21
21
|
_params[:filename] = File.basename(options[:path])
|
22
22
|
_params[:filesize] = File::Stat.new(options[:path]).size
|
23
|
+
_params[:uploader] = "Ruby #{VERSION}"
|
23
24
|
end
|
24
25
|
if options[:success_action_redirect]
|
25
26
|
_params[:success_action_redirect] = options[:success_action_redirect]
|
data/lib/vzaar/uploaders/s3.rb
CHANGED
@@ -77,7 +77,8 @@ module Vzaar
|
|
77
77
|
'success_action_status' => '201',
|
78
78
|
'policy' => signature.policy,
|
79
79
|
'AWSAccessKeyId' => signature.access_key_id,
|
80
|
-
'signature' => signature.signature
|
80
|
+
'signature' => signature.signature,
|
81
|
+
'x-amz-meta-uploader' => "Ruby #{VERSION}"
|
81
82
|
}
|
82
83
|
end
|
83
84
|
|
data/lib/vzaar/version.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://vzaar.com/api/v1.1/videos/signature.xml?filename=video.mp4&filesize=258430&multipart=true
|
5
|
+
uri: https://vzaar.com/api/v1.1/videos/signature.xml?filename=video.mp4&filesize=258430&multipart=true&uploader=Ruby%201.6.2
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://vzaar.com/api/v1.1/videos/signature.xml?filename=video.mp4&filesize=258430&include_metadata=yes&multipart=true&success_action_redirect=example.com
|
5
|
+
uri: https://vzaar.com/api/v1.1/videos/signature.xml?filename=video.mp4&filesize=258430&include_metadata=yes&multipart=true&success_action_redirect=example.com&uploader=Ruby%201.6.2
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://vzaar.com/api/v1.1/videos/signature.xml?filename=video-6mb.mp4&filesize=6291456&multipart=true
|
5
|
+
uri: https://vzaar.com/api/v1.1/videos/signature.xml?filename=video-6mb.mp4&filesize=6291456&multipart=true&uploader=Ruby%201.6.2
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://vzaar.com/api/v1.1/videos/signature.xml?filename=video.mp4&filesize=258430&multipart=true
|
5
|
+
uri: https://vzaar.com/api/v1.1/videos/signature.xml?filename=video.mp4&filesize=258430&multipart=true&uploader=Ruby%201.6.2
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vzaar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ed James
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-05-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -319,7 +319,7 @@ rubyforge_project:
|
|
319
319
|
rubygems_version: 2.5.1
|
320
320
|
signing_key:
|
321
321
|
specification_version: 4
|
322
|
-
summary: vzaar-1.6.
|
322
|
+
summary: vzaar-1.6.2
|
323
323
|
test_files:
|
324
324
|
- spec/fixtures/vcr_cassettes/account_type-fail.yml
|
325
325
|
- spec/fixtures/vcr_cassettes/account_type-success.yml
|