ss-attachment_fu 3.4.2 → 3.4.3
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG
CHANGED
@@ -57,7 +57,12 @@ module Technoweenie # :nodoc:
|
|
57
57
|
path_id = attachment_path_id
|
58
58
|
if path_id.is_a?(Integer)
|
59
59
|
# Primary key is an integer. Split it after padding it with 0.
|
60
|
-
|
60
|
+
if path_id.to_s.length <= 8
|
61
|
+
("%08d" % path_id).scan(/..../) + args
|
62
|
+
else
|
63
|
+
id = path_id.to_s
|
64
|
+
[id.chomp(id[id.length - 4,id.length]),id[id.length - 4,id.length]] + args
|
65
|
+
end
|
61
66
|
else
|
62
67
|
# Primary key is a String. Hash it, then split it into 4 components.
|
63
68
|
hash = Digest::SHA512.hexdigest(path_id.to_s)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ss-attachment_fu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 3.4.
|
9
|
+
- 3
|
10
|
+
version: 3.4.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Rick Olson
|