active_encode 0.8.1 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5347f6f8d85a2181c8a2a8961edfaea95c4e29606ef02b13eaa44145e322bfb2
4
- data.tar.gz: '05810638aea1f82ae53098c06099990e07ee1bc7c0c513d7088e90ab79b7f8b8'
3
+ metadata.gz: 84cdc7c6c51f941c9a65dbe9a7bcb3b53696aec62e1e16dae8ebc05eb2b977f3
4
+ data.tar.gz: ac5b08b4d2a86904a51c8a936af299faa965917b6b940f8e555722e3d54eddc4
5
5
  SHA512:
6
- metadata.gz: 7e4447428944fb5a156ed73d13f5b6a9480b237fc6021ddcbee3d7975bb7d390793a3796fe41cd6b2f2f55486d148aac157850168ea215e34fc5debbb536cd41
7
- data.tar.gz: 63911ec850c0648e57d3b180b629464e26ee7ffe623f0f787cd2ee79b69ca1af5e06d0e7569a5e975a6d6540b325f44410d2830aadf1f309374bb779101990ef
6
+ metadata.gz: 6eb7f3481595c269728fba537186cbe4faf12da5dfc0ffbd7b4ca95d0aa62d382b4c49609737b438a25586f810381862e1913a0a0a447c23c74eb2ad6c897f2b
7
+ data.tar.gz: 58f974a9af3e147ff9462d0a18717a20cd249981c148ec2f437f33f9248097c3df4505fd652faef90b83e3b211cbc993930ad94148a4e0f385c7ff8c6a8fb60a
@@ -130,6 +130,7 @@ module ActiveEncode
130
130
  input = options[:media_type] == :audio ? make_audio_input(input_url) : make_video_input(input_url)
131
131
 
132
132
  create_job_params = {
133
+ queue: queue,
133
134
  role: role,
134
135
  settings: {
135
136
  inputs: [input],
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ActiveEncode
3
- VERSION = '0.8.1'
3
+ VERSION = '0.8.2'
4
4
  end
@@ -123,6 +123,33 @@ describe ActiveEncode::EngineAdapters::MediaConvertAdapter do
123
123
 
124
124
  it_behaves_like "an ActiveEncode::EngineAdapter"
125
125
 
126
+ describe "queue" do
127
+ let(:operations) { mediaconvert.api_requests(exclude_presign: true) }
128
+
129
+ it "uses the default queue" do
130
+ mediaconvert.stub_responses(:create_job, reconstitute_response("media_convert/job_created.json"))
131
+ ActiveEncode::Base.create(
132
+ "s3://input-bucket/test_files/source_file.mp4",
133
+ output_prefix: "active-encode-test/output",
134
+ outputs: [],
135
+ use_original_url: true
136
+ )
137
+ expect(operations).to include(include(operation_name: :create_job, params: include(queue: 'Default')))
138
+ end
139
+
140
+ it "uses a specific queue" do
141
+ mediaconvert.stub_responses(:create_job, reconstitute_response("media_convert/job_created.json"))
142
+ ActiveEncode::Base.engine_adapter.queue = 'test-queue'
143
+ ActiveEncode::Base.create(
144
+ "s3://input-bucket/test_files/source_file.mp4",
145
+ output_prefix: "active-encode-test/output",
146
+ outputs: [],
147
+ use_original_url: true
148
+ )
149
+ expect(operations).to include(include(operation_name: :create_job, params: include(queue: 'test-queue')))
150
+ end
151
+ end
152
+
126
153
  describe "output" do
127
154
  it "contains all expected outputs" do
128
155
  completed_output.each do |expected_output|
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.8.1
4
+ version: 0.8.2
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: 2021-07-28 00:00:00.000000000 Z
11
+ date: 2021-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails