active_encode 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +72 -0
- data/.rubocop.yml +8 -70
- data/.rubocop_todo.yml +64 -0
- data/Gemfile +3 -3
- data/active_encode.gemspec +4 -1
- data/app/controllers/active_encode/encode_record_controller.rb +1 -0
- data/app/jobs/active_encode/polling_job.rb +1 -1
- data/app/models/active_encode/encode_record.rb +1 -0
- data/db/migrate/20180822021048_create_active_encode_encode_records.rb +1 -0
- data/db/migrate/20190702153755_add_create_options_to_active_encode_encode_records.rb +6 -0
- data/db/migrate/20190712174821_add_progress_to_active_encode_encode_records.rb +6 -0
- data/lib/active_encode.rb +1 -0
- data/lib/active_encode/base.rb +1 -0
- data/lib/active_encode/callbacks.rb +1 -0
- data/lib/active_encode/core.rb +4 -3
- data/lib/active_encode/engine.rb +1 -0
- data/lib/active_encode/engine_adapter.rb +1 -0
- data/lib/active_encode/engine_adapters.rb +2 -1
- data/lib/active_encode/engine_adapters/elastic_transcoder_adapter.rb +25 -24
- data/lib/active_encode/engine_adapters/ffmpeg_adapter.rb +43 -58
- data/lib/active_encode/engine_adapters/matterhorn_adapter.rb +5 -4
- data/lib/active_encode/engine_adapters/test_adapter.rb +5 -4
- data/lib/active_encode/engine_adapters/zencoder_adapter.rb +3 -2
- data/lib/active_encode/global_id.rb +2 -1
- data/lib/active_encode/input.rb +3 -2
- data/lib/active_encode/output.rb +3 -2
- data/lib/active_encode/persistence.rb +7 -3
- data/lib/active_encode/polling.rb +2 -1
- data/lib/active_encode/status.rb +1 -0
- data/lib/active_encode/technical_metadata.rb +3 -2
- data/lib/active_encode/version.rb +2 -1
- data/lib/file_locator.rb +7 -8
- data/spec/controllers/encode_record_controller_spec.rb +2 -1
- data/spec/integration/elastic_transcoder_adapter_spec.rb +26 -26
- data/spec/integration/ffmpeg_adapter_spec.rb +26 -22
- data/spec/integration/matterhorn_adapter_spec.rb +6 -5
- data/spec/integration/zencoder_adapter_spec.rb +15 -14
- data/spec/rails_helper.rb +1 -0
- data/spec/routing/encode_record_controller_routing_spec.rb +1 -0
- data/spec/shared_specs/engine_adapter_specs.rb +1 -1
- data/spec/spec_helper.rb +2 -1
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +13 -12
- data/spec/units/callbacks_spec.rb +3 -2
- data/spec/units/core_spec.rb +9 -8
- data/spec/units/engine_adapter_spec.rb +1 -0
- data/spec/units/file_locator_spec.rb +19 -18
- data/spec/units/global_id_spec.rb +4 -3
- data/spec/units/input_spec.rb +8 -5
- data/spec/units/output_spec.rb +8 -5
- data/spec/units/persistence_spec.rb +8 -4
- data/spec/units/polling_job_spec.rb +7 -6
- data/spec/units/polling_spec.rb +1 -0
- data/spec/units/status_spec.rb +3 -3
- metadata +37 -7
- data/.travis.yml +0 -19
data/spec/units/polling_spec.rb
CHANGED
data/spec/units/status_spec.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
require 'spec_helper'
|
2
3
|
|
3
4
|
describe ActiveEncode::Status do
|
@@ -5,13 +6,12 @@ describe ActiveEncode::Status do
|
|
5
6
|
class CustomEncode < ActiveEncode::Base
|
6
7
|
end
|
7
8
|
end
|
8
|
-
|
9
|
+
after do
|
9
10
|
Object.send(:remove_const, :CustomEncode)
|
10
11
|
end
|
11
12
|
|
12
|
-
let(:encode_class) { ActiveEncode::Base }
|
13
|
-
|
14
13
|
subject { encode_class.new(nil) }
|
14
|
+
let(:encode_class) { ActiveEncode::Base }
|
15
15
|
|
16
16
|
describe 'attributes' do
|
17
17
|
it { is_expected.to respond_to(:state, :errors, :created_at, :updated_at) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_encode
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Klein, Chris Colvard, Phuong Dinh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bixby
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.0.0
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.0.0
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: bundler
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,6 +150,20 @@ dependencies:
|
|
136
150
|
- - ">="
|
137
151
|
- !ruby/object:Gem::Version
|
138
152
|
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rspec_junit_formatter
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
139
167
|
- !ruby/object:Gem::Dependency
|
140
168
|
name: rspec-rails
|
141
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -150,19 +178,19 @@ dependencies:
|
|
150
178
|
- - ">="
|
151
179
|
- !ruby/object:Gem::Version
|
152
180
|
version: '0'
|
153
|
-
description: This gem
|
154
|
-
|
155
|
-
Zencoder, and Amazon Elastic Transcoder.
|
181
|
+
description: This gem provides an interface to transcoding services such as Ffmpeg,
|
182
|
+
Amazon Elastic Transcoder, or Zencoder.
|
156
183
|
email:
|
157
184
|
- mbklein@gmail.com, chris.colvard@gmail.com, phuongdh@gmail.com
|
158
185
|
executables: []
|
159
186
|
extensions: []
|
160
187
|
extra_rdoc_files: []
|
161
188
|
files:
|
189
|
+
- ".circleci/config.yml"
|
162
190
|
- ".coveralls.yml"
|
163
191
|
- ".gitignore"
|
164
192
|
- ".rubocop.yml"
|
165
|
-
- ".
|
193
|
+
- ".rubocop_todo.yml"
|
166
194
|
- CODE_OF_CONDUCT.md
|
167
195
|
- CONTRIBUTING.md
|
168
196
|
- Gemfile
|
@@ -176,6 +204,8 @@ files:
|
|
176
204
|
- app/models/active_encode/encode_record.rb
|
177
205
|
- config/routes.rb
|
178
206
|
- db/migrate/20180822021048_create_active_encode_encode_records.rb
|
207
|
+
- db/migrate/20190702153755_add_create_options_to_active_encode_encode_records.rb
|
208
|
+
- db/migrate/20190712174821_add_progress_to_active_encode_encode_records.rb
|
179
209
|
- lib/active_encode.rb
|
180
210
|
- lib/active_encode/base.rb
|
181
211
|
- lib/active_encode/callbacks.rb
|
@@ -292,7 +322,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
292
322
|
- !ruby/object:Gem::Version
|
293
323
|
version: '0'
|
294
324
|
requirements: []
|
295
|
-
rubygems_version: 3.0.
|
325
|
+
rubygems_version: 3.0.4
|
296
326
|
signing_key:
|
297
327
|
specification_version: 4
|
298
328
|
summary: Declare encode job classes that can be run by a variety of encoding services
|
data/.travis.yml
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
cache: bundler
|
3
|
-
before_install:
|
4
|
-
# - sudo apt-get install mediainfo
|
5
|
-
- sudo apt-get install libmms0
|
6
|
-
- wget https://mediaarea.net/download/binary/libzen0/0.4.37/libzen0_0.4.37-1_amd64.xUbuntu_14.04.deb
|
7
|
-
- sudo dpkg -i libzen0_0.4.37-1_amd64.xUbuntu_14.04.deb
|
8
|
-
- wget https://mediaarea.net/download/binary/libmediainfo0/18.08.1/libmediainfo0_18.08.1-1_amd64.xUbuntu_14.04.deb
|
9
|
-
- sudo dpkg -i libmediainfo0_18.08.1-1_amd64.xUbuntu_14.04.deb
|
10
|
-
- wget https://mediaarea.net/download/binary/mediainfo/18.08.1/mediainfo_18.08.1-1_amd64.xUbuntu_14.04.deb
|
11
|
-
- sudo dpkg -i mediainfo_18.08.1-1_amd64.xUbuntu_14.04.deb
|
12
|
-
sudo: false
|
13
|
-
rvm:
|
14
|
-
- 2.3.7
|
15
|
-
- 2.4.4
|
16
|
-
- 2.5.1
|
17
|
-
env:
|
18
|
-
global:
|
19
|
-
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
|