flagpole_sitta 0.7.0 → 0.7.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.
data/README.rdoc
CHANGED
|
@@ -38,6 +38,12 @@ I looked at it and decided it didn't meet my needs even if I where to get it upd
|
|
|
38
38
|
|
|
39
39
|
PS feel free to vote up the above answer on stackoverflow, I know I have!
|
|
40
40
|
|
|
41
|
+
== Special Thanks
|
|
42
|
+
|
|
43
|
+
Taha Mukaddam
|
|
44
|
+
https://github.com/tmkdam
|
|
45
|
+
For his feedback and help on this gem.
|
|
46
|
+
|
|
41
47
|
== Installation
|
|
42
48
|
|
|
43
49
|
Very simple, in your gemfile
|
|
@@ -50,12 +56,6 @@ OR
|
|
|
50
56
|
|
|
51
57
|
Then bundle install.
|
|
52
58
|
|
|
53
|
-
== Special Thanks
|
|
54
|
-
|
|
55
|
-
Taha Mukaddam
|
|
56
|
-
https://github.com/tmkdam
|
|
57
|
-
For his feedback and help on this gem.
|
|
58
|
-
|
|
59
59
|
== cache_sitta
|
|
60
60
|
|
|
61
61
|
Flagpole Sitta is a gem thats main purpose is to make it easier to effectively fragment cache in dynamic fashions in Rails.
|
|
@@ -137,6 +137,10 @@ module FlagpoleSitta
|
|
|
137
137
|
|
|
138
138
|
flag = Rails.cache.read("#{superclazz}/ExistenceHash/Flag")
|
|
139
139
|
|
|
140
|
+
if flag.nil?
|
|
141
|
+
flag = initialize_existence_hash
|
|
142
|
+
end
|
|
143
|
+
|
|
140
144
|
#If it had a route_id before it most of existed. So get its old values from the existence hash.
|
|
141
145
|
#If there was nothing it didn't exist so create a new one. Also it only creates a new one if alive is set to true.
|
|
142
146
|
#This check is overkill really, but its just to be safe.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: flagpole_sitta
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.1
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-07-
|
|
12
|
+
date: 2012-07-22 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: dalli
|