active_encode 1.2.2 → 1.2.3

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: 9104a0bde11fcf84284f375301d9c4b2de4a25010e8834a363323b7e8e0bb994
4
- data.tar.gz: d03aa952ac5d8cee3b8668950563e3b4ce4c2fb4cfade4562f69b48918b60e37
3
+ metadata.gz: aa6172de1470349b8dd8c2422c51049402168ca45eba77aa62ab6b7d9637f4ae
4
+ data.tar.gz: 999ec2e97a500f3bb258db4d4fbfa6e5fa4132dfefb4a82da1667eefa6875cff
5
5
  SHA512:
6
- metadata.gz: 6e3280b175e3943a28094f5298fe5c9674317b3d8d4147d83a9d5f215edd9dd422f452f7181fb57f28ebbc7632775c9bc6b91bdd7b72b5abe239c56edc7c3caf
7
- data.tar.gz: '01062903b0008ae7299d1b97c91f26d8a1b8b6f4b69fb14a5722a577046da6b6357b0f8970b150c25735471d23166d1a25e78f216228cfcc87ad4ca257eecf98'
6
+ metadata.gz: a78df8af781cf5f4f198a9b4d9e994108294fd0248725d9b6553a96fb829de41afc7a7ccc69cadacafe8d6cb4ac809cb4331c2331c968b7429b7306e19cf3f51
7
+ data.tar.gz: 358557321351790685a68c4604d6ca43592c928523085e96f5353603ffe8ad0bfc70b6bcde119b2275cb3d3bbec7b6be78c74b84c3f65900dcd2f0e8f3c38421
@@ -28,6 +28,8 @@ module ActiveEncode
28
28
 
29
29
  s3_object = FileLocator::S3File.new(input_url).object
30
30
  input_url = URI.parse(s3_object.presigned_url(:get))
31
+ when /^https?\:\/\//
32
+ input_url = URI.parse(input_url)
31
33
  end
32
34
 
33
35
  new_encode = ActiveEncode::Base.new(input_url, options)
@@ -232,7 +234,7 @@ module ActiveEncode
232
234
  Dir["#{File.absolute_path(working_path('outputs', id))}/*"].each do |file_path|
233
235
  output = ActiveEncode::Output.new
234
236
  output.url = "file://#{file_path}"
235
- sanitized_filename = ActiveEncode.sanitize_base encode.input.url
237
+ sanitized_filename = encode.input.url.match?(/^https?\:\/\//) ? ActiveEncode.sanitize_base(URI.parse(encode.input.url)) : ActiveEncode.sanitize_base(encode.input.url)
236
238
  output.label = file_path[/#{Regexp.quote(sanitized_filename)}.*\-(.*?)#{Regexp.quote(File.extname(file_path))}$/, 1]
237
239
  output.id = "#{encode.input.id}-#{output.label}"
238
240
  output.created_at = encode.created_at
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ActiveEncode
3
- VERSION = '1.2.2'
3
+ VERSION = '1.2.3'
4
4
  end
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: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Klein, Chris Colvard, Phuong Dinh
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-14 00:00:00.000000000 Z
11
+ date: 2024-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -303,7 +303,7 @@ licenses:
303
303
  - Apache-2.0
304
304
  metadata:
305
305
  rubygems_mfa_required: 'true'
306
- post_install_message:
306
+ post_install_message:
307
307
  rdoc_options: []
308
308
  require_paths:
309
309
  - lib
@@ -318,8 +318,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
318
318
  - !ruby/object:Gem::Version
319
319
  version: '0'
320
320
  requirements: []
321
- rubygems_version: 3.5.6
322
- signing_key:
321
+ rubygems_version: 3.5.16
322
+ signing_key:
323
323
  specification_version: 4
324
324
  summary: Declare encode job classes that can be run by a variety of encoding services
325
325
  test_files: []