clint-upload 0.2.1 → 0.3.0

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: 164b10b59f678d1149d2c4eb1bc1ba43271b0031
4
- data.tar.gz: 91b2d31b3c8c0f06adf20b4fdb5b909f46191f2c
3
+ metadata.gz: fa92cae35de1ae36660ec36838a84f9602bd505c
4
+ data.tar.gz: a0ec91f78b7b7eadf65505028314820806a1a31c
5
5
  SHA512:
6
- metadata.gz: 98d06fb27f9a4c5d9ea1ecf514f0835b47a20fe3e16ba03b65c831a2d7f715e97e3d9690da1eec9a728f1dda996a4c85fa21e8443fe69513aa04f5080a8625f3
7
- data.tar.gz: caa21a304e5fbefdc38f43162cf824c9fdda58f53c698946692e7d3e7ee7b028bf6c7005eeaa271729615e862e94e1c8b70e49337e652f6fc3428be6bfa29ea7
6
+ metadata.gz: c7a196600e192e24b141c88d0787b4324886e74e0bdb7a437dadd500b02792401fdd249f3cbf1cd87d9665b8b27b8ebbdcceacf0a9528a9688dff3c4b93ea15c
7
+ data.tar.gz: 754d2e226f36a01f0e9e5d2d0ac1faa7b990b30a9be95074d315a3f30869f2be7d353cea93015ae4aa10fc5ca70f76350b48f07f1a444e42fb6204026a40681c
@@ -1,5 +1,5 @@
1
1
  module Clint
2
2
  module Upload
3
- VERSION = "0.2.1".freeze
3
+ VERSION = "0.3.0".freeze
4
4
  end
5
5
  end
@@ -1,6 +1,7 @@
1
1
  require 'aws-sdk'
2
2
  require 'clint/upload/elastic_transcoder/payload/gif'
3
3
  require 'clint/upload/elastic_transcoder/payload/mp4'
4
+ require 'clint/upload/elastic_transcoder/payload/mp4_web'
4
5
  require 'clint/upload/elastic_transcoder/unsupported_output_type'
5
6
 
6
7
  module Clint
@@ -13,6 +14,8 @@ module Clint
13
14
  Payload::Gif.new
14
15
  when 'mp4'
15
16
  Payload::Mp4.new
17
+ when 'mp4-web'
18
+ Payload::Mp4Web.new
16
19
  else
17
20
  raise UnsupportedOutputType.new(output_type)
18
21
  end
@@ -44,10 +44,6 @@ module Clint
44
44
  meta.merge('type' => type)
45
45
  end
46
46
 
47
- def type
48
- self.class.name.split('::').last.downcase
49
- end
50
-
51
47
  def config
52
48
  Wes::Cloudkit.config('elastic_transcoder')
53
49
  end
@@ -11,6 +11,12 @@ module Clint
11
11
  end
12
12
  end
13
13
 
14
+ protected
15
+
16
+ def type
17
+ 'gif'
18
+ end
19
+
14
20
  private
15
21
 
16
22
  def prefix
@@ -9,6 +9,12 @@ module Clint
9
9
  'output.mp4'
10
10
  end
11
11
 
12
+ protected
13
+
14
+ def type
15
+ 'mp4'
16
+ end
17
+
12
18
  private
13
19
 
14
20
  def preset_id
@@ -0,0 +1,27 @@
1
+ require 'clint/upload/elastic_transcoder/payload/base'
2
+
3
+ module Clint
4
+ module Upload
5
+ module ElasticTranscoder
6
+ module Payload
7
+ class Mp4Web < Base
8
+ def filename
9
+ 'web.mp4'
10
+ end
11
+
12
+ protected
13
+
14
+ def type
15
+ 'mp4-web'
16
+ end
17
+
18
+ private
19
+
20
+ def preset_id
21
+ config.mp4_web_preset_id
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clint-upload
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-23 00:00:00.000000000 Z
11
+ date: 2017-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -137,6 +137,7 @@ files:
137
137
  - lib/clint/upload/elastic_transcoder/payload/base.rb
138
138
  - lib/clint/upload/elastic_transcoder/payload/gif.rb
139
139
  - lib/clint/upload/elastic_transcoder/payload/mp4.rb
140
+ - lib/clint/upload/elastic_transcoder/payload/mp4_web.rb
140
141
  - lib/clint/upload/elastic_transcoder/unsupported_output_type.rb
141
142
  - lib/clint/upload/signed_url.rb
142
143
  homepage: ''