<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>CHANGES</filename>
    </added>
    <added>
      <filename>TODO</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,7 +1,7 @@
 local_cache
 ===========
 
-This plugin extends any cache store configured in rails with a process local in memory cache. It is intended to be a Rails 2.1 replacement for the extended_fragment_cache plugin (http://rubyforge.org/projects/zventstools/) which does essentially the same but doesn't work with the new caching infrastructure in Rails 2.1.
+This plugin extends any cache store configured in rails with a process local in memory cache. It is intended to be a Rails 2.2 replacement for the extended_fragment_cache plugin (http://rubyforge.org/projects/zventstools/) which does essentially the same but doesn't work with the new caching infrastructure in Rails &gt;= 2.1.
 
 Adding a local cache to the usual remote cache (memcache, file etc.) has two major advantages over the default behaviour (for fragment caching):
 
@@ -47,7 +47,7 @@ By the way with memcache you can expire your cache fragments by time like this:
   &lt;%- end -%&gt;
 &lt;%- end -%&gt;
 
-This will expire the fragmen after 60 minutes.
+This will expire the fragment after 60 minutes.
 
 
 Contact</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -1,14 +1,15 @@
 module LocalCacheHelper
+
   def self.included(base)
-    
     base.before_filter({}) do |controller|
       controller.cache_store.clear_local
     end
   end
   
-  def when_fragment_expired(key, options = nil)
-    unless cache_store.read(key, options)
+  def when_fragment_expired(name, options = nil)
+    unless cache_store.read(fragment_cache_key(name), options)
       yield
     end
   end
-end
\ No newline at end of file
+
+end</diff>
      <filename>lib/local_cache_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,12 @@
 require File.dirname(__FILE__) + '/spec_helper'
 
+class FragmentHelper
+  extend ActionController::Caching::Fragments
+end
+
 class MyController
+  include ActionController::Caching::Fragments
+
   def self.before_filter(*args); end
   include LocalCacheHelper
   
@@ -23,13 +29,14 @@ class MyController
 end
 
 describe LocalCacheHelper, 'when_fragment_expired' do
+
   before(:each) do
     @cache = stub 'cachestore'
     @controller = MyController.new @cache
   end
   
   it &quot;should get the fragment from the cache&quot; do
-    @cache.should_receive(:read).with('frag_name', {})
+    @cache.should_receive(:read).with(FragmentHelper.fragment_cache_key('frag_name'), {})
     @controller.my_action
   end
   </diff>
      <filename>spec/local_cache_helper_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -80,4 +80,4 @@ describe ProxyingLocalCacheStore, 'clear' do
     store = ProxyingLocalCacheStore.new target_store
     store.clear
   end
-end
\ No newline at end of file
+end</diff>
      <filename>spec/proxying_local_cache_store_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,10 +1,9 @@
 require 'rubygems'
-gem 'activesupport'
-require 'active_support/core_ext/class/attribute_accessors'
-require 'active_support/core_ext/module/delegation'
-gem 'rspec'
-require 'spec/mocks'
+
+require 'active_support'
+require 'action_controller/caching/fragments'
 
 Dir.glob(File.dirname(__FILE__) + '/../lib/*.rb').each do |file|
   require file
-end
\ No newline at end of file
+end
+</diff>
      <filename>spec/spec_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3c240c25a5b56b40f871325fbdf5b2b6d589f6d2</id>
    </parent>
  </parents>
  <author>
    <name>Casper Gripenberg</name>
    <email>casper@iki.fi</email>
  </author>
  <url>http://github.com/langalex/local_cache/commit/f81dd25924aa53929e380a40ef1f47c137602c21</url>
  <id>f81dd25924aa53929e380a40ef1f47c137602c21</id>
  <committed-date>2009-01-12T10:15:19-08:00</committed-date>
  <authored-date>2009-01-12T10:15:19-08:00</authored-date>
  <message>Fixes for Rails 2.2</message>
  <tree>e48f850e97e589fec7b4ff7df747ae46fe2cee91</tree>
  <committer>
    <name>Casper Gripenberg</name>
    <email>casper@iki.fi</email>
  </committer>
</commit>
