<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>app_generators/invisible/templates/public/stylesheets/app.css</filename>
    </added>
    <added>
      <filename>example/Rakefile</filename>
    </added>
    <added>
      <filename>example/config/boot.rb</filename>
    </added>
    <added>
      <filename>example/config/env.rb</filename>
    </added>
    <added>
      <filename>example/config/env/development.rb</filename>
    </added>
    <added>
      <filename>example/config/env/production.rb</filename>
    </added>
    <added>
      <filename>example/config/env/test.rb</filename>
    </added>
    <added>
      <filename>example/config/rack.ru</filename>
    </added>
    <added>
      <filename>example/public/stylesheets/app.css</filename>
    </added>
    <added>
      <filename>example/public/stylesheets/ie.css</filename>
    </added>
    <added>
      <filename>example/public/stylesheets/print.css</filename>
    </added>
    <added>
      <filename>example/public/stylesheets/screen.css</filename>
    </added>
    <added>
      <filename>example/script/destroy</filename>
    </added>
    <added>
      <filename>example/script/generate</filename>
    </added>
    <added>
      <filename>example/script/server</filename>
    </added>
    <added>
      <filename>example/spec/app_spec.rb</filename>
    </added>
    <added>
      <filename>example/spec/spec_helper.rb</filename>
    </added>
    <added>
      <filename>invisible.gemspec</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -4,5 +4,5 @@ RACK_ENV = ENV[&quot;RACK_ENV&quot;] || &quot;development&quot;
 
 Invisible.run do
   root File.dirname(__FILE__) + &quot;/..&quot;
-  load &quot;config/env&quot;
+  load &quot;config/env&quot;, false
 end</diff>
      <filename>app_generators/invisible/templates/config/rack.ru</filename>
    </modified>
    <modified>
      <diff>@@ -3,11 +3,12 @@
 &lt;head&gt;
   &lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html;charset=UTF-8&quot; /&gt;
   &lt;title&gt;Invisible&lt;/title&gt;
-  &lt;link rel=&quot;stylesheet&quot; href=&quot;/stylesheets/screen.css&quot; type=&quot;text/css&quot; media=&quot;screen, projection&quot;&gt;
-  &lt;link rel=&quot;stylesheet&quot; href=&quot;/stylesheets/print.css&quot; type=&quot;text/css&quot; media=&quot;print&quot;&gt; 
+  &lt;link rel=&quot;stylesheet&quot; href=&quot;/stylesheets/screen.css&quot; type=&quot;text/css&quot; media=&quot;screen, projection&quot; /&gt;
+  &lt;link rel=&quot;stylesheet&quot; href=&quot;/stylesheets/print.css&quot; type=&quot;text/css&quot; media=&quot;print&quot; /&gt; 
   &lt;!--[if IE]&gt;
-    &lt;link rel=&quot;stylesheet&quot; href=&quot;/stylesheets/ie.css&quot; type=&quot;text/css&quot; media=&quot;screen, projection&quot;&gt;
+    &lt;link rel=&quot;stylesheet&quot; href=&quot;/stylesheets/ie.css&quot; type=&quot;text/css&quot; media=&quot;screen, projection&quot; /&gt;
   &lt;![endif]--&gt;
+  &lt;link rel=&quot;stylesheet&quot; href=&quot;/stylesheets/app.css&quot; type=&quot;text/css&quot; media=&quot;screen, projection&quot; /&gt; 
   &lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js&quot; /&gt;
 &lt;/head&gt;
 &lt;body&gt;</diff>
      <filename>app_generators/invisible/templates/views/layout.erb</filename>
    </modified>
    <modified>
      <diff>@@ -2,8 +2,14 @@
 &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;
 &lt;head&gt;
   &lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html;charset=UTF-8&quot; /&gt;
-  &lt;title&gt;Ohaie&lt;/title&gt;
-  &lt;link rel=&quot;stylesheet&quot; href=&quot;/css/style.css&quot; type=&quot;text/css&quot; /&gt;
+  &lt;title&gt;Invisible&lt;/title&gt;
+  &lt;link rel=&quot;stylesheet&quot; href=&quot;/stylesheets/screen.css&quot; type=&quot;text/css&quot; media=&quot;screen, projection&quot; /&gt;
+  &lt;link rel=&quot;stylesheet&quot; href=&quot;/stylesheets/print.css&quot; type=&quot;text/css&quot; media=&quot;print&quot; /&gt; 
+  &lt;!--[if IE]&gt;
+    &lt;link rel=&quot;stylesheet&quot; href=&quot;/stylesheets/ie.css&quot; type=&quot;text/css&quot; media=&quot;screen, projection&quot; /&gt;
+  &lt;![endif]--&gt;
+  &lt;link rel=&quot;stylesheet&quot; href=&quot;/stylesheets/app.css&quot; type=&quot;text/css&quot; media=&quot;screen, projection&quot; /&gt; 
+  &lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js&quot; /&gt;
 &lt;/head&gt;
 &lt;body&gt;
   &lt;%= @content %&gt;</diff>
      <filename>example/views/layout.erb</filename>
    </modified>
    <modified>
      <diff>@@ -143,6 +143,7 @@ class Invisible
   # The files loaded with this method will be reloaded in
   # You're using the Invisible Reloader middleware.
   def load(file)
+    return if @loaded.include?(file)
     @loaded &lt;&lt; file
     path = File.join(@root, file) + &quot;.rb&quot;
     eval(File.read(path), binding, path)</diff>
      <filename>lib/invisible.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,8 +8,13 @@ class Invisible
   # Contains methods to call each HTTP method on @app.
   # 
   #   get(&quot;/&quot;) # Will call @app.mock.get(&quot;/&quot;)
+  #   session[:user] # Will call @app.session[:user]
   # 
   module MockMethods
     HTTP_METHODS.each { |m| module_eval &quot;def #{m}(*a); @app.mock.#{m}(*a) end&quot; }
+    
+    # Delegate some request helpers to the app
+    def session; @app.session end
+    def params;  @app.params end
   end
 end
\ No newline at end of file</diff>
      <filename>lib/invisible/mock.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,9 +2,10 @@ class Invisible
   # Reloader all the code loaded using the Invisible#load method.
   # Use with the Reloader middleware.
   def reload!
-    loaded = @loaded
+    loaded = @loaded.uniq
     @loaded = []
     [@actions, @with, @layouts, @views].each { |c| c.clear }
+    @app = method(:_call)
     loaded.each { |f| load(f) }
   end
   </diff>
      <filename>lib/invisible/reloader.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>example/config.ru</filename>
    </removed>
    <removed>
      <filename>example/public/css/style.css</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>8a77e98abf11e63eda167c4eecc9499ee12c010c</id>
    </parent>
  </parents>
  <author>
    <name>macournoyer</name>
    <email>macournoyer@gmail.com</email>
  </author>
  <url>http://github.com/macournoyer/invisible/commit/2fd5d387088847c67ff02a69bf120e20fa5c601b</url>
  <id>2fd5d387088847c67ff02a69bf120e20fa5c601b</id>
  <committed-date>2008-11-08T22:18:57-08:00</committed-date>
  <authored-date>2008-11-08T22:18:57-08:00</authored-date>
  <message>Refresh example app using generator and add specs</message>
  <tree>ceefaafc048df7873f66179d623bc15770011f7b</tree>
  <committer>
    <name>macournoyer</name>
    <email>macournoyer@gmail.com</email>
  </committer>
</commit>
