tagged-cache 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/lib/active_support/cache/tagged_store.rb +2 -2
- metadata +4 -4
data/History.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require "active_support/
|
1
|
+
require "active_support/time"
|
2
2
|
require "active_support/core_ext/hash/except"
|
3
3
|
|
4
4
|
module ActiveSupport
|
@@ -142,7 +142,7 @@ module ActiveSupport
|
|
142
142
|
if entry.respond_to?(:depends) && entry.depends && !entry.depends.empty?
|
143
143
|
tags = read_tags(*entry.depends.keys)
|
144
144
|
valid = entry.depends.all? { |k, v| tags[k] == v }
|
145
|
-
entry.expires_at =
|
145
|
+
entry.expires_at = 1.second.ago unless valid
|
146
146
|
end
|
147
147
|
entry
|
148
148
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tagged-cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 1
|
10
|
+
version: 1.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Anton Ageev
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-11-
|
18
|
+
date: 2010-11-10 00:00:00 +03:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|