background_cache 0.2.6 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ $:.unshift lib unless $:.include?(lib)
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "background_cache"
9
- s.version = '0.2.6'
9
+ s.version = '0.2.8'
10
10
  s.platform = Gem::Platform::RUBY
11
11
  s.authors = [ "Winton Welsh" ]
12
12
  s.email = [ "mail@wintoni.us" ]
@@ -9,7 +9,13 @@ module BackgroundCache
9
9
  # http://railsapi.com/doc/rails-v2.3.8/classes/ActionView/Helpers/CacheHelper.html
10
10
  # ActionController::Caching::Fragments#fragment_for (undocumented)
11
11
  # actionpack/lib/action_controller/caching/fragments.rb
12
- if @controller.perform_caching
12
+ perform_caching =
13
+ if @controller.respond_to?(:perform_caching)
14
+ @controller.perform_caching
15
+ else
16
+ ActionController::Base.perform_caching
17
+ end
18
+ if perform_caching
13
19
  cache = @controller.read_fragment(name, options)
14
20
  match = (
15
21
  BackgroundCache.active? &&
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: background_cache
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 6
10
- version: 0.2.6
9
+ - 8
10
+ version: 0.2.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Winton Welsh
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-07 00:00:00 -08:00
19
- default_executable:
18
+ date: 2011-11-07 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: rails
@@ -138,7 +137,6 @@ files:
138
137
  - spec/fixtures/rails/lib/background_cache_config.rb
139
138
  - spec/spec_helper.rb
140
139
  - tasks/background_cache.rake
141
- has_rdoc: true
142
140
  homepage: http://github.com/winton/background_cache
143
141
  licenses: []
144
142
 
@@ -168,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
166
  requirements: []
169
167
 
170
168
  rubyforge_project:
171
- rubygems_version: 1.4.2
169
+ rubygems_version: 1.8.10
172
170
  signing_key:
173
171
  specification_version: 3
174
172
  summary: Bust caches before your users do