manage_cache 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/manage_cache/version.rb +1 -1
- data/lib/manage_cache.rb +1 -1
- metadata +1 -3
- data/test/dummy/tmp/pids/server.pid +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ec215d42d1220af0f9d531d8128392d156f6b88
|
4
|
+
data.tar.gz: 6491ed7f5dbcc10871c1f4e8c56b6589cb426707
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54e6a07d3f77d5b76f8e3ceacf14fc8ebbc3dc0865474a490d2ee0e05ac7655e425078715c715fa047489e725644456dfc6ccb8fd824f14ba2473c625408c9bf
|
7
|
+
data.tar.gz: b566c0381c9c34bc72ec25390aa46dda1c3062f8a8379b7072c3986a385ad41d14694a1cc3a1f29115d1f96f8950945ff8bda41697ac1516f6f69568c7e43dda
|
data/lib/manage_cache/version.rb
CHANGED
data/lib/manage_cache.rb
CHANGED
@@ -131,7 +131,7 @@ module ManageCache
|
|
131
131
|
#
|
132
132
|
def delete_cache_w_regexp(key, specs)
|
133
133
|
regexp = specs[:regexp].inject([]){|m, (k,v)| m << "#{k}=#{v}" }.join('-')
|
134
|
-
Rails.cache.delete_matched(
|
134
|
+
Rails.cache.delete_matched("#{Regexp.escape(key)}-#{regexp}")
|
135
135
|
end
|
136
136
|
|
137
137
|
# if some attributes are specified in :if_changed
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: manage_cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cgregor
|
@@ -112,7 +112,6 @@ files:
|
|
112
112
|
- test/dummy/test/models/shoe_test.rb
|
113
113
|
- test/dummy/test/models/user_test.rb
|
114
114
|
- test/dummy/tmp/cache/A4A/A50/spec%3Dshoe_color-shoe_id%3D1
|
115
|
-
- test/dummy/tmp/pids/server.pid
|
116
115
|
- test/test_helper.rb
|
117
116
|
homepage: https://github.com/grgr/manage_cache
|
118
117
|
licenses:
|
@@ -200,6 +199,5 @@ test_files:
|
|
200
199
|
- test/dummy/config/locales/en.yml
|
201
200
|
- test/dummy/config/boot.rb
|
202
201
|
- test/dummy/tmp/cache/A4A/A50/spec%3Dshoe_color-shoe_id%3D1
|
203
|
-
- test/dummy/tmp/pids/server.pid
|
204
202
|
- test/cache_dumper_test.rb
|
205
203
|
has_rdoc:
|
@@ -1 +0,0 @@
|
|
1
|
-
8960
|