active_encode 1.1.0 → 1.1.1
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5072c5649f874b8c8c99bd14560479b662a9b0c6cee42d02769f41ac0da1cde
|
4
|
+
data.tar.gz: cccb1ee9a220eade7333a523564bb621120154eb4b591c0fa0ba406c712530d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d99535227987a68561b3bf14ee8703cae691baa438d1f37a2cc2f72c31389b59ed2bec7f8136ee99d472e645b906fa48e31fad3ea23ea3942e09b9b6f1d5910
|
7
|
+
data.tar.gz: 3e02c5b00f1cf201dcefb913203d3649385cb250b77424d030fb1692bfbe7943fe7ff6f1f289a57a076dd10f965ebd918183788efccf0ea199520320a614df60
|
@@ -204,7 +204,7 @@ module ActiveEncode
|
|
204
204
|
output = ActiveEncode::Output.new
|
205
205
|
output.url = "file://#{file_path}"
|
206
206
|
sanitized_filename = ActiveEncode.sanitize_base encode.input.url
|
207
|
-
output.label = file_path[/#{Regexp.quote(sanitized_filename)}
|
207
|
+
output.label = file_path[/#{Regexp.quote(sanitized_filename)}.*\-(.*?)#{Regexp.quote(File.extname(file_path))}$/, 1]
|
208
208
|
output.id = "#{encode.input.id}-#{output.label}"
|
209
209
|
output.created_at = encode.created_at
|
210
210
|
output.updated_at = File.mtime file_path
|
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.1.
|
4
|
+
version: 1.1.1
|
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: 2022-
|
11
|
+
date: 2022-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|