<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -35,29 +35,29 @@ module Merb::Cache
   class AbstractStrategyStore &lt; AbstractStore
     # START: interface for creating strategy stores.  This should/might change.
     def self.contextualize(*stores)
-        Class.new(self) do
-          cattr_accessor :contextualized_stores
+      Class.new(self) do
+        cattr_accessor :contextualized_stores
 
-          self.contextualized_stores = stores
-        end
+        self.contextualized_stores = stores
       end
+    end
 
-      class &lt;&lt; self
-        alias_method :[], :contextualize
-      end
+    class &lt;&lt; self
+      alias_method :[], :contextualize
+    end
 
-      attr_accessor :stores
+    attr_accessor :stores
 
-      def initialize(config = {})
-        @stores = contextualized_stores.map do |cs|
-          case cs
-          when Symbol
-            Merb::Cache[cs]
-          when Class
-            cs.new(config)
-          end
+    def initialize(config = {})
+      @stores = contextualized_stores.map do |cs|
+        case cs
+        when Symbol
+          Merb::Cache[cs]
+        when Class
+          cs.new(config)
         end
       end
+    end
 
     # END: interface for creating strategy stores.
 </diff>
      <filename>merb-cache/lib/merb-cache/stores/strategy/abstract_strategy_store.rb</filename>
    </modified>
    <modified>
      <diff>@@ -29,7 +29,7 @@ module Merb::Cache
 
     def fetch(key, parameters = {}, conditions = {}, &amp;blk)
       wrapper_blk = lambda { compress(blk.call) }
-      decompress(read(key, parameters) || @stores.capture_first {|s| s.fetch(key, parameters, conditions, &amp;wrapper_blk)})
+      read(key, parameters) || decompress(@stores.capture_first {|s| s.fetch(key, parameters, conditions, &amp;wrapper_blk)})
     end
 
     def exists?(key, parameters = {})</diff>
      <filename>merb-cache/lib/merb-cache/stores/strategy/gzip_store.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e2e3866efa39e5a307fdd406005e0012c02e3c90</id>
    </parent>
  </parents>
  <author>
    <name>snusnu</name>
    <email>gamsnjaga@gmail.com</email>
  </author>
  <url>http://github.com/wycats/merb/commit/923406abf993b4e82938a342c506dff1e0abcad5</url>
  <id>923406abf993b4e82938a342c506dff1e0abcad5</id>
  <committed-date>2009-10-26T17:25:33-07:00</committed-date>
  <authored-date>2009-10-22T11:10:44-07:00</authored-date>
  <message>[merb-cache] Decompress only once in Merb::Cache::GzipStore#fetch

* This change misses specs mainly because the current
  merb-cache specs seem rather horrible and I couldn't
  find an easy way to spec it (The other specs use an
  ugly mix of mocking/stubbing and are pretty inconsistent
  imho. They could definitely need some refactoring!

* Fixed formatting weirdness in abstract_strategy_store.rb

[#1013 state:resolved]</message>
  <tree>b4d11d43860e9e685c638615e4e4fe4833998d78</tree>
  <committer>
    <name>snusnu</name>
    <email>gamsnjaga@gmail.com</email>
  </committer>
</commit>
