cache_guard 1.0.1 → 1.0.2
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/cache_guard.rb +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccbc67de9c15a9a56326a6c3ae26e01b79e8eb29
|
4
|
+
data.tar.gz: fba43abfa6924bb24fc7abfb49a5684a6625ed81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c5ad3037ca683c50bb560b120127f27ae46add0718c329a5477e650ef9082983467b09b5532e413beaaf35edd46a944d0b831cba5bf805154b928bdb22961c5
|
7
|
+
data.tar.gz: e60efd639d323cbf09f417cd1332a438d2b41cda2eb367970ef2497982556f6d08b4993c197a2f900bce00afb1155dd1040ca84511d96ebe660fcfc2d0facb72
|
data/lib/cache_guard.rb
CHANGED
@@ -29,9 +29,8 @@ class CacheGuard
|
|
29
29
|
# The FileStore increment operation returns nil if the cache key doesn't exist. Since the FileStore strategy
|
30
30
|
# should be only used in development environment we can allow all guards to pass.
|
31
31
|
# http://api.rubyonrails.org/classes/ActiveSupport/Cache/FileStore.html#method-i-increment
|
32
|
-
# http://www.rubydoc.info/github/mperham/dalli/ActiveSupport/Cache/DalliStore#increment-instance_method
|
33
32
|
value = @cache_store.increment(@name, @default_value, :expires_in => @expires_in)
|
34
|
-
value.nil? || value == @default_value
|
33
|
+
value.nil? || value == @default_value
|
35
34
|
end
|
36
35
|
|
37
36
|
def release
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cache_guard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Duarte Henriques
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-02-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|