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: 165b612fc067a4f2513bb6090876f015216dcb69986416f580256b58ee5979d0
4
- data.tar.gz: 8730c65eb2b3f38a22f245992c4885a494f83bcff169af6746b35f2d2d75a5bc
3
+ metadata.gz: e5072c5649f874b8c8c99bd14560479b662a9b0c6cee42d02769f41ac0da1cde
4
+ data.tar.gz: cccb1ee9a220eade7333a523564bb621120154eb4b591c0fa0ba406c712530d8
5
5
  SHA512:
6
- metadata.gz: '094791342ae22c10e682762e61a8f83934a742fa326746a5733a304cf14a657dc048560e251734b06a9833d7fe7b978fed0196361e8cca199e017b195d8e239f'
7
- data.tar.gz: '087bff74b89364c3e2795a104038324846d7bf10e33e3e239a901db189445273cd7dc40f252a555cdb800d9adf82457ccb055fc3d2bcf0184ff250c891b7ff02'
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)}\-(.*?)#{Regexp.quote(File.extname(file_path))}$/, 1]
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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ActiveEncode
3
- VERSION = '1.1.0'
3
+ VERSION = '1.1.1'
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.1.0
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-09 00:00:00.000000000 Z
11
+ date: 2022-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails