aub-cache_advance 1.0.7 → 1.0.8

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/TODO.textile CHANGED
@@ -0,0 +1,6 @@
1
+ - Fix to allow keys of > 256 characters with memcache
2
+ - Make test coverage not pitiful
3
+ - Add ability for cache to expire when a specific object changes
4
+ - Apply plugins only to specific caches
5
+ - Test with caching strategies other than memcache
6
+ - Improve documentation
@@ -1,5 +1,5 @@
1
1
  Gem::Specification.new do |s|
2
- s.version = '1.0.7'
2
+ s.version = '1.0.8'
3
3
  s.date = %q{2009-01-08}
4
4
 
5
5
  s.name = %q{cache_advance}
data/rails/init.rb CHANGED
@@ -21,25 +21,25 @@ if config.action_controller.perform_caching
21
21
  end
22
22
  else
23
23
  ActionController::Base.helper do
24
- def cache_it(cache, options={})
25
- yield
24
+ def cache_it(cache, options={}, &block)
25
+ capture(&block)
26
26
  end
27
27
  end
28
28
  end
29
29
 
30
- ActionMailer::Base.helper do
31
- def cache_it(cache, options={})
32
- yield
30
+ ActionMailer::Base.helper do
31
+ def cache_it(cache, options={}, &block)
32
+ capture(&block)
33
33
  end
34
34
  end
35
35
 
36
36
  # This will get called after the standard rails environment is initialized.
37
37
  config.after_initialize do
38
-
39
- # This hooks the sweepers into the observer system and adds it to the list.
38
+
39
+ # This hooks the sweepers into the observer system and adds it to the list.
40
40
  CacheAdvance::Caches.create_sweepers
41
41
  ActiveRecord::Base.observers << CacheAdvance::ActiveRecordSweeper
42
-
42
+
43
43
  # In development mode, the models we observe get reloaded with each request. Using
44
44
  # this hook allows us to reload the observer relationships each time as well.
45
45
  ActionController::Dispatcher.to_prepare(:cache_advance_reload) do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aub-cache_advance
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aubrey Holland