carrierwave-postgresql-table 0.1.2 → 0.1.3
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 606a3f681178f3501773588c990aa65d44f454a3
|
4
|
+
data.tar.gz: 2e1d3f645eb2565a0f3c1a9c1331fbb6e568ecbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5d6d260bd95518750cf02e803a5ad185d5b2707fc8d8d028dfbc5acc6eefe8aa5ba831ccb385d045f78426a7ba9e9e91b93a4ff954c570fa2ed88743e326248
|
7
|
+
data.tar.gz: 0e8b18b78ac51fe9a651f2baf9e2f117dc649eae92d0d1f31c123c597485692362c65aca087459fb6c4acd88626501312af8ee594d6d5ab6c9485c3e5f753ee3
|
@@ -33,7 +33,7 @@ module CarrierWave
|
|
33
33
|
|
34
34
|
def clean_cache!(seconds)
|
35
35
|
time = Time.now - seconds.seconds
|
36
|
-
CarrierWaveFile.delete_all_files("updated_at < #{CarrierWaveFile.sanitize(time)}")
|
36
|
+
CarrierWaveFile.delete_all_files("path LIKE #{CarrierWaveFile.sanitize(::File.join(uploader.cache_dir, "%"))} AND updated_at < #{CarrierWaveFile.sanitize(time)}")
|
37
37
|
end
|
38
38
|
|
39
39
|
class CarrierWaveFile < ::ActiveRecord::Base
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carrierwave-postgresql-table
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Muerdter
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|