nucache 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5458f63d8f32f7168de3e0e5a937fc4f472cea46
4
- data.tar.gz: '08e577fbcbead1fc64a84f8cdd0fee9498d2cef6'
3
+ metadata.gz: 7c01e37c7b478a8f20d4c712c89a118f644026aa
4
+ data.tar.gz: 065b8b87bf389ae9f265d5459e2d5e66f2bf1863
5
5
  SHA512:
6
- metadata.gz: 23967b260bd4b193cc5ff80cfa3c795c0fcd8396e1375964469d61ba84a9e6e77808f7af0ac07301b5ce35a1984031a50036be11b30e41db9460289ba25a48a4
7
- data.tar.gz: 7a5e9841a137c3b14043cfbf15a0babb235fbae909f25ca532a0bee9c4b7aa96960c5e3fcfd3ed38ceb1e1fbb2167321b42cd9db3aa5049ada2809ec91a9928e
6
+ metadata.gz: d13a7b90baab8fd8365a5fdb080033d64374878420af8a2d5dbb2331bb65776486c9d8b936d08b6d1b688af80943ccc70e7400fef3c0c678ad8a2b51dfe45303
7
+ data.tar.gz: 1d0cbe1d098f67fd3464ab1710c4fce2f204bea5c3262158e5db43d0e547accef070a08b48e080d4a5c7e0bdc9bad3d133ec6b711944690a4d774e2b7e176a04
@@ -1,3 +1,3 @@
1
1
  module Nucache
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/nucache.rb CHANGED
@@ -22,9 +22,9 @@ module Nucache
22
22
  end
23
23
  invalidation_date = invalidation
24
24
  if invalidation_date.nil?
25
- if !(defined? self.count_cache_invalidation).nil?
26
- invalidation_date = self.count_cache_invalidation
27
- end
25
+ modelinvalidation = nil
26
+ modelinvalidation = self.count_cache_invalidation rescue nil
27
+ invalidation_date = modelinvalidation
28
28
  end
29
29
  if invalidation_date.nil?
30
30
  invalidation_date = Nucache::Config.get_invalidation_timeout
@@ -36,7 +36,7 @@ module Nucache
36
36
  count = super(column_name)
37
37
  nucache_expired = CachingTable.where("md5(sql)::uuid = md5(?)::uuid", sql).first
38
38
  if nucache_expired.nil?
39
- CachingTable.create(sql: sql, count: count)
39
+ CachingTable.create(sql: sql, count: count)
40
40
  else
41
41
  nucache_expired.update(count:count,updated_at:Time.now)
42
42
  end
data/lib/ucache.rb CHANGED
@@ -1 +0,0 @@
1
- class Nucache
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nucache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Schober