rails_admin_image_manager 0.1.21 → 0.1.22
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 +4 -4
- data/lib/paperclip_patch.rb +5 -1
- data/lib/rails_admin_image_manager/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86b4daf36102bcb3cdc09cf38476b638ca6fdd28
|
4
|
+
data.tar.gz: f7128e7743eb57d7bb90ec6949c6154b21ae23d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 294739c6b10111c375d92a0a0db0323e92aea3576e5d2c07ac54906d950e13e76b0a28b49ea5bb25bdf0e26a5bcd8fdfd29a666dde1c9ce3163e5fbbc20aa861
|
7
|
+
data.tar.gz: 21ceb653d04544b83b9eb28caa88b9134c5f367d98f62ea883619e2866757fdd6afd4cb571a7a126fd93c4836ecf2b0e4dbe41be22e8e9ed9c6f2285f7ee71e3
|
data/lib/paperclip_patch.rb
CHANGED
@@ -6,7 +6,11 @@
|
|
6
6
|
module Paperclip
|
7
7
|
class FilenameCleaner
|
8
8
|
def call(filename)
|
9
|
-
filename
|
9
|
+
# Dirty hack to keep the dot in the filename (it's removed by the parameterize function)
|
10
|
+
placeholder = '-p-l-a-c-e-h-o-l-d-e-r-'
|
11
|
+
filename.sub!('.', placeholder)
|
12
|
+
filename = filename.parameterize()
|
13
|
+
filename.sub!(placeholder, '.')
|
10
14
|
|
11
15
|
if @invalid_character_regex
|
12
16
|
filename = filename.gsub(@invalid_character_regex, "_").gsub("_", "-")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_admin_image_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- iXmedia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|