<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,2 @@
-gem &quot;json&quot;, &quot;&gt;=1.1.2&quot;
-require &quot;json&quot;
 require &quot;cacheable_flash&quot;
 ActionView::Helpers::AssetTagHelper.register_javascript_include_default('cookie','flash','json')</diff>
      <filename>init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,17 +3,16 @@ var Flash = new Object();
 Flash.data = {};
 
 Flash.transferFromCookies = function() {
-  var data = JSON.parse(unescape(Cookie.get(&quot;flash&quot;)));
+  var data = JSON.parse(unescape((Cookie.get(&quot;flash&quot;) || '').replace(/\+/g, '%20')));
   if(!data) data = {};
   Flash.data = data;
   Cookie.erase(&quot;flash&quot;);
 };
 
 Flash.writeDataTo = function(name, element) {
-  element = $(element);
   var content = &quot;&quot;;
   if(Flash.data[name]) {
-    content = Flash.data[name].toString().gsub(/\+/, ' ');
+    content = Flash.data[name].toString().replace(/\+/g, ' ');
   }
   element.innerHTML = unescape(content);
 };</diff>
      <filename>javascripts/flash.js</filename>
    </modified>
    <modified>
      <diff>@@ -4,7 +4,7 @@ module CacheableFlash
   end
 
   def write_flash_to_cookie
-    cookie_flash = cookies['flash'] ? JSON.parse(cookies['flash']) : {}
+    cookie_flash = cookies['flash'] ? ActiveSupport::JSON.decode(cookies['flash']) : {}
 
     flash.each do |key, value|
       if cookie_flash[key.to_s].blank?</diff>
      <filename>lib/cacheable_flash.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@ module CacheableFlash
   module TestHelpers
     def flash_cookie
       return {} unless cookies['flash']
-      JSON.parse(cookies['flash'].first)
+      ActiveSupport::JSON.decode(cookies['flash'].first)
     end    
   end
 end
\ No newline at end of file</diff>
      <filename>lib/cacheable_flash/test_helpers.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1921711f722f0a9f4ebbf0b6e6f95ec645dcd9fc</id>
    </parent>
  </parents>
  <author>
    <name>Luke Francl</name>
    <email>look@subtleknife.local</email>
  </author>
  <url>http://github.com/look/cacheable-flash/commit/84e9fc893e0d9cc56e2794c62b28c9e501c6dc0c</url>
  <id>84e9fc893e0d9cc56e2794c62b28c9e501c6dc0c</id>
  <committed-date>2008-09-27T19:35:37-07:00</committed-date>
  <authored-date>2008-09-27T19:35:37-07:00</authored-date>
  <message>Rewrote CacheableFlash to not use the JSON gem or Prototype. This version uses ActiveSupport::JSON and raw JavaScript for fewer dependencies.</message>
  <tree>e7040b5d85f4f08f400d798146623da2eeb24e8f</tree>
  <committer>
    <name>Luke Francl</name>
    <email>look@subtleknife.local</email>
  </committer>
</commit>
