<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lib/responds_to_parent/action_controller.rb</filename>
    </added>
    <added>
      <filename>lib/responds_to_parent/selector_assertion.rb</filename>
    </added>
    <added>
      <filename>responds_to_parent.gemspec</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,2 +1 @@
-ActionController::Base.send :include, RespondsToParent
-require 'parent_selector_assertion'
+require 'responds_to_parent'
\ No newline at end of file</diff>
      <filename>init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,37 +1,16 @@
-# Module containing the methods useful for child IFRAME to parent window communication
-module RespondsToParent
-  # Executes the response body as JavaScript in the context of the parent window.
-  # Use this method of you are posting a form to a hidden IFRAME or if you would like
-  # to use IFRAME base RPC.
-  def responds_to_parent(&amp;block)
-    yield
-    
-    if performed?
-      # Either pull out a redirect or the request body
-      script =  if location = erase_redirect_results
-                  &quot;document.location.href = '#{self.class.helpers.escape_javascript location.to_s}'&quot;
-                else
-                  response.body || ''
-                end
+require 'responds_to_parent/action_controller'
+require 'responds_to_parent/selector_assertion'
 
-      # Clear out the previous render to prevent double render
-      erase_results
-
-      # We're returning HTML instead of JS or XML now
-      response.headers['Content-Type'] = 'text/html; charset=UTF-8'
-
-      # Eval in parent scope and replace document location of this frame 
-      # so back button doesn't replay action on targeted forms
-      # loc = document.location to be set after parent is updated for IE
-      # with(window.parent) - pull in variables from parent window
-      # setTimeout - scope the execution in the windows parent for safari
-      # window.eval - legal eval for Opera
-      render :text =&gt; &quot;&lt;html&gt;&lt;body&gt;&lt;script type='text/javascript' charset='utf-8'&gt;
-        var loc = document.location;
-        with(window.parent) { setTimeout(function() { window.eval('#{self.class.helpers.escape_javascript script}'); window.loc &amp;&amp; loc.replace('about:blank'); }, 1) }
-      &lt;/script&gt;&lt;/body&gt;&lt;/html&gt;&quot;
-    end
+module ActionController
+  class Base
+    include RespondsToParent::ActionController
   end
-  alias respond_to_parent responds_to_parent
 end
 
+module ActionController
+  module Assertions
+    module SelectorAssertions
+      include RespondsToParent::SelectorAssertion
+    end
+  end
+end
\ No newline at end of file</diff>
      <filename>lib/responds_to_parent.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>lib/parent_selector_assertion.rb</filename>
    </removed>
    <removed>
      <filename>rails/init.rb</filename>
    </removed>
    <removed>
      <filename>responds-to-parent.gemspec</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>0d5c77dae4c23e9449f460ed2994dfb3da95b45a</id>
    </parent>
  </parents>
  <author>
    <name>Mark Catley</name>
    <email>mark@nexx.co.nz</email>
  </author>
  <url>http://github.com/markcatley/responds_to_parent/commit/840ada34d79b7bb0c1aaae894ac3901fdccba95c</url>
  <id>840ada34d79b7bb0c1aaae894ac3901fdccba95c</id>
  <committed-date>2009-10-12T17:04:53-07:00</committed-date>
  <authored-date>2009-10-12T17:04:53-07:00</authored-date>
  <message>Restructuring the gem paths to be cleaner before pushing it to gemcutter.</message>
  <tree>5d1eb8eee5eac4c6fa07d1c33df2f09e06664256</tree>
  <committer>
    <name>Mark Catley</name>
    <email>mark@nexx.co.nz</email>
  </committer>
</commit>
