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: 764a5c85b7937568cc214e4ba49dd3bbac7ccdef
4
- data.tar.gz: 1800fb54ffcd1e5518db1afe702fa6353696c2b2
3
+ metadata.gz: 606a3f681178f3501773588c990aa65d44f454a3
4
+ data.tar.gz: 2e1d3f645eb2565a0f3c1a9c1331fbb6e568ecbb
5
5
  SHA512:
6
- metadata.gz: 8a73a0cb83935b7359fde2b33717050aecbefe7b39417d57806c555500e9c131f02067da4560bb079a47febfc22a7327d62c6f825c7f96cd6f5c1211ca894324
7
- data.tar.gz: 50caf0ae944e1e96260c066f0769bcf18965a36e6c72d146b94ff9d54001dcdf6e428a2786b0ae313302c7a6c80540271607412a96b78a91a354c4e1cf7dc088
6
+ metadata.gz: c5d6d260bd95518750cf02e803a5ad185d5b2707fc8d8d028dfbc5acc6eefe8aa5ba831ccb385d045f78426a7ba9e9e91b93a4ff954c570fa2ed88743e326248
7
+ data.tar.gz: 0e8b18b78ac51fe9a651f2baf9e2f117dc649eae92d0d1f31c123c597485692362c65aca087459fb6c4acd88626501312af8ee594d6d5ab6c9485c3e5f753ee3
@@ -1,5 +1,5 @@
1
1
  module CarrierWave
2
2
  module PostgresqlTable
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
@@ -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.2
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-26 00:00:00.000000000 Z
11
+ date: 2016-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord