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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d986a80dad0ab36749cc38b8316f006c788909e
4
- data.tar.gz: 9ddee490c28424edff41e0147bea9e9a1d6a8756
3
+ metadata.gz: c165fd68fbf45eb211ac9388fad8d8368f3fe910
4
+ data.tar.gz: c6d7c43c4e280bbd539371c4b6dcdae6cee662ee
5
5
  SHA512:
6
- metadata.gz: f6234fb2dff305773bcd961079fc85e29a731fdf13358c92a487070137dd87d51019d59416928a1ff3ddc23e18010f59469d31fdb49a4c22dec59a8062e2ddec
7
- data.tar.gz: 7d0a77e07a21b27c36450b39c7a93e5b07b2ed6a5b5ffa39e25e6c8cad86abd9967ef021f7417b662c0d243275f262b653c56d7511828d58825b7c6085c8f947
6
+ metadata.gz: 28750b3d8512857828f7886e5506d032a93beea17530f9110f939dd0e47647dd33780d174a7fcf32f9f6c5630beb0454d3a6abe61a90c97ad1894ccc40952825
7
+ data.tar.gz: 66b6070ce49054d2c18bca86075ed6d7ed1c20a611eb75ab08c3385ea99f85d0fa435881bb5f49881853a4682b74de762bd69c0e18f008aa57c07ea02c580160
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ [1.6.2] 2016-05-19 EJ <ed@vzaar.com>
2
+
3
+ * add metadata to signature API call and S3 uploads
4
+
1
5
  [1.6.1] 2016-04-21 EJ <ed@vzaar.com>
2
6
 
3
7
  * escape ampersands in filename when sending signature request
@@ -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]
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Vzaar
2
- VERSION = "1.6.1"
2
+ VERSION = "1.6.2"
3
3
  end
@@ -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.1
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-04-21 00:00:00.000000000 Z
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.1
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