voltron-upload 0.2.2 → 0.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 +4 -4
- data/lib/voltron/upload/carrierwave/uploader/base.rb +3 -1
- data/lib/voltron/upload/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b87ed9751e6018b0698d41d49545367cbdbbe99e84a44f4cfb5590441f703b9
|
4
|
+
data.tar.gz: 7fa550a62cd45b7df0fdc2b7a835b9bf8b1cf80ebaf31996a337aaa62d202d6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb4683f1ebdd417c7f435cc5f47aafa8b57207203702b42e486efa0994b41bda8a8ab4ded5cc94d9070e356eb4ca2e54340e9f14fe3108a8d1ca8b94d0d13922
|
7
|
+
data.tar.gz: 25602ebae2f6d9574296982f6fa8c116b24ed433dbc71df0ecdd6671551f67983556e845c8925faad04590f573479e152f5b93d3393d3022eb6afd96314ae827
|
@@ -56,7 +56,9 @@ module Voltron
|
|
56
56
|
# as it will be part of the generated id
|
57
57
|
def apply_timestamp(*args)
|
58
58
|
@offset ||= rand(1..1000)
|
59
|
-
|
59
|
+
if File.exist?(file.path)
|
60
|
+
FileUtils.touch file.path, mtime: Time.now + @offset.seconds
|
61
|
+
end
|
60
62
|
end
|
61
63
|
|
62
64
|
end
|