active_encode 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +26 -18
  3. data/.rubocop_todo.yml +3 -0
  4. data/active_encode.gemspec +3 -0
  5. data/lib/active_encode/base.rb +1 -2
  6. data/lib/active_encode/engine_adapters.rb +1 -0
  7. data/lib/active_encode/engine_adapters/elastic_transcoder_adapter.rb +5 -4
  8. data/lib/active_encode/engine_adapters/ffmpeg_adapter.rb +86 -30
  9. data/lib/active_encode/engine_adapters/pass_through_adapter.rb +239 -0
  10. data/lib/active_encode/errors.rb +6 -0
  11. data/lib/active_encode/persistence.rb +5 -3
  12. data/lib/active_encode/version.rb +1 -1
  13. data/spec/controllers/encode_record_controller_spec.rb +2 -2
  14. data/spec/fixtures/ffmpeg/cancelled-id/cancelled +0 -0
  15. data/spec/fixtures/file with space.low.mp4 +0 -0
  16. data/spec/fixtures/file with space.mp4 +0 -0
  17. data/spec/fixtures/fireworks.low.mp4 +0 -0
  18. data/spec/fixtures/pass_through/cancelled-id/cancelled +0 -0
  19. data/spec/fixtures/pass_through/cancelled-id/input_metadata +90 -0
  20. data/spec/fixtures/pass_through/completed-id/completed +0 -0
  21. data/spec/fixtures/pass_through/completed-id/input_metadata +102 -0
  22. data/spec/fixtures/pass_through/completed-id/output_metadata-high +90 -0
  23. data/spec/fixtures/pass_through/completed-id/output_metadata-low +90 -0
  24. data/spec/fixtures/pass_through/completed-id/video-high.mp4 +0 -0
  25. data/spec/fixtures/pass_through/completed-id/video-low.mp4 +0 -0
  26. data/spec/fixtures/pass_through/failed-id/error.log +1 -0
  27. data/spec/fixtures/pass_through/failed-id/input_metadata +90 -0
  28. data/spec/fixtures/pass_through/running-id/input_metadata +90 -0
  29. data/spec/integration/ffmpeg_adapter_spec.rb +66 -2
  30. data/spec/integration/pass_through_adapter_spec.rb +151 -0
  31. data/spec/shared_specs/engine_adapter_specs.rb +7 -8
  32. metadata +50 -2
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.6.0
4
+ version: 0.7.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-07-29 00:00:00.000000000 Z
11
+ date: 2019-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -178,6 +178,20 @@ dependencies:
178
178
  - - ">="
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: sprockets
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "<"
186
+ - !ruby/object:Gem::Version
187
+ version: '4'
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "<"
193
+ - !ruby/object:Gem::Version
194
+ version: '4'
181
195
  description: This gem provides an interface to transcoding services such as Ffmpeg,
182
196
  Amazon Elastic Transcoder, or Zencoder.
183
197
  email:
@@ -216,8 +230,10 @@ files:
216
230
  - lib/active_encode/engine_adapters/elastic_transcoder_adapter.rb
217
231
  - lib/active_encode/engine_adapters/ffmpeg_adapter.rb
218
232
  - lib/active_encode/engine_adapters/matterhorn_adapter.rb
233
+ - lib/active_encode/engine_adapters/pass_through_adapter.rb
219
234
  - lib/active_encode/engine_adapters/test_adapter.rb
220
235
  - lib/active_encode/engine_adapters/zencoder_adapter.rb
236
+ - lib/active_encode/errors.rb
221
237
  - lib/active_encode/global_id.rb
222
238
  - lib/active_encode/input.rb
223
239
  - lib/active_encode/output.rb
@@ -242,6 +258,7 @@ files:
242
258
  - spec/fixtures/elastic_transcoder/output_failed.json
243
259
  - spec/fixtures/elastic_transcoder/output_progressing.json
244
260
  - spec/fixtures/elastic_transcoder/output_submitted.json
261
+ - spec/fixtures/ffmpeg/cancelled-id/cancelled
245
262
  - spec/fixtures/ffmpeg/cancelled-id/error.log
246
263
  - spec/fixtures/ffmpeg/cancelled-id/input_metadata
247
264
  - spec/fixtures/ffmpeg/cancelled-id/pid
@@ -262,6 +279,9 @@ files:
262
279
  - spec/fixtures/ffmpeg/running-id/input_metadata
263
280
  - spec/fixtures/ffmpeg/running-id/pid
264
281
  - spec/fixtures/ffmpeg/running-id/progress
282
+ - spec/fixtures/file with space.low.mp4
283
+ - spec/fixtures/file with space.mp4
284
+ - spec/fixtures/fireworks.low.mp4
265
285
  - spec/fixtures/fireworks.mp4
266
286
  - spec/fixtures/matterhorn/cancelled_response.xml
267
287
  - spec/fixtures/matterhorn/completed_response.xml
@@ -272,6 +292,17 @@ files:
272
292
  - spec/fixtures/matterhorn/running_response.xml
273
293
  - spec/fixtures/matterhorn/stop_completed_response.xml
274
294
  - spec/fixtures/matterhorn/stop_running_response.xml
295
+ - spec/fixtures/pass_through/cancelled-id/cancelled
296
+ - spec/fixtures/pass_through/cancelled-id/input_metadata
297
+ - spec/fixtures/pass_through/completed-id/completed
298
+ - spec/fixtures/pass_through/completed-id/input_metadata
299
+ - spec/fixtures/pass_through/completed-id/output_metadata-high
300
+ - spec/fixtures/pass_through/completed-id/output_metadata-low
301
+ - spec/fixtures/pass_through/completed-id/video-high.mp4
302
+ - spec/fixtures/pass_through/completed-id/video-low.mp4
303
+ - spec/fixtures/pass_through/failed-id/error.log
304
+ - spec/fixtures/pass_through/failed-id/input_metadata
305
+ - spec/fixtures/pass_through/running-id/input_metadata
275
306
  - spec/fixtures/zencoder/job_create.json
276
307
  - spec/fixtures/zencoder/job_details_cancelled.json
277
308
  - spec/fixtures/zencoder/job_details_completed.json
@@ -286,6 +317,7 @@ files:
286
317
  - spec/integration/elastic_transcoder_adapter_spec.rb
287
318
  - spec/integration/ffmpeg_adapter_spec.rb
288
319
  - spec/integration/matterhorn_adapter_spec.rb
320
+ - spec/integration/pass_through_adapter_spec.rb
289
321
  - spec/integration/zencoder_adapter_spec.rb
290
322
  - spec/rails_helper.rb
291
323
  - spec/routing/encode_record_controller_routing_spec.rb
@@ -342,6 +374,7 @@ test_files:
342
374
  - spec/fixtures/elastic_transcoder/output_failed.json
343
375
  - spec/fixtures/elastic_transcoder/output_progressing.json
344
376
  - spec/fixtures/elastic_transcoder/output_submitted.json
377
+ - spec/fixtures/ffmpeg/cancelled-id/cancelled
345
378
  - spec/fixtures/ffmpeg/cancelled-id/error.log
346
379
  - spec/fixtures/ffmpeg/cancelled-id/input_metadata
347
380
  - spec/fixtures/ffmpeg/cancelled-id/pid
@@ -362,6 +395,9 @@ test_files:
362
395
  - spec/fixtures/ffmpeg/running-id/input_metadata
363
396
  - spec/fixtures/ffmpeg/running-id/pid
364
397
  - spec/fixtures/ffmpeg/running-id/progress
398
+ - spec/fixtures/file with space.low.mp4
399
+ - spec/fixtures/file with space.mp4
400
+ - spec/fixtures/fireworks.low.mp4
365
401
  - spec/fixtures/fireworks.mp4
366
402
  - spec/fixtures/matterhorn/cancelled_response.xml
367
403
  - spec/fixtures/matterhorn/completed_response.xml
@@ -372,6 +408,17 @@ test_files:
372
408
  - spec/fixtures/matterhorn/running_response.xml
373
409
  - spec/fixtures/matterhorn/stop_completed_response.xml
374
410
  - spec/fixtures/matterhorn/stop_running_response.xml
411
+ - spec/fixtures/pass_through/cancelled-id/cancelled
412
+ - spec/fixtures/pass_through/cancelled-id/input_metadata
413
+ - spec/fixtures/pass_through/completed-id/completed
414
+ - spec/fixtures/pass_through/completed-id/input_metadata
415
+ - spec/fixtures/pass_through/completed-id/output_metadata-high
416
+ - spec/fixtures/pass_through/completed-id/output_metadata-low
417
+ - spec/fixtures/pass_through/completed-id/video-high.mp4
418
+ - spec/fixtures/pass_through/completed-id/video-low.mp4
419
+ - spec/fixtures/pass_through/failed-id/error.log
420
+ - spec/fixtures/pass_through/failed-id/input_metadata
421
+ - spec/fixtures/pass_through/running-id/input_metadata
375
422
  - spec/fixtures/zencoder/job_create.json
376
423
  - spec/fixtures/zencoder/job_details_cancelled.json
377
424
  - spec/fixtures/zencoder/job_details_completed.json
@@ -386,6 +433,7 @@ test_files:
386
433
  - spec/integration/elastic_transcoder_adapter_spec.rb
387
434
  - spec/integration/ffmpeg_adapter_spec.rb
388
435
  - spec/integration/matterhorn_adapter_spec.rb
436
+ - spec/integration/pass_through_adapter_spec.rb
389
437
  - spec/integration/zencoder_adapter_spec.rb
390
438
  - spec/rails_helper.rb
391
439
  - spec/routing/encode_record_controller_routing_spec.rb