<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,6 @@
 &lt;li&gt;
   &lt;%= link_to list.name, app_path(list) %&gt; (by &lt;%= list.user %&gt;)
-  &lt;% if list.uploads.count &gt; 0 %&gt;
+  &lt;% if list.ready? %&gt;
    - &lt;a href=&quot;http://&lt;%= list.key %&gt;.appdrop.com&quot;&gt;http://&lt;%= list.key %&gt;.appdrop.com&lt;/a&gt;
   &lt;% end %&gt;
 &lt;/li&gt;
\ No newline at end of file</diff>
      <filename>app/views/apps/_list.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@
 &lt;dl&gt;
   &lt;dt&gt;Visit at:&lt;/dt&gt;
   &lt;dd&gt;
-    &lt;% if @app.uploads.count &gt; 0 %&gt;
+    &lt;% if @app.ready? %&gt;
     &lt;a href=&quot;http://&lt;%= @app.key %&gt;.appdrop.com&quot;&gt;http://&lt;%= @app.key %&gt;.appdrop.com&lt;/a&gt;
     &lt;% else %&gt;
     Wating for code upload.</diff>
      <filename>app/views/apps/show.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -51,6 +51,12 @@ describe App, &quot;update_code with a matching tarfile&quot; do
     end
     @app.update_code @tarfile
   end
+  it &quot;should get state ready&quot; do
+    @app.should_not be_ready
+    @app.update_code @tarfile
+    @app.state.should == &quot;ready&quot;
+    @app.should be_ready
+  end
 end
 
 describe App, &quot;update_code with a mismatched tarfile&quot; do</diff>
      <filename>spec/models/app_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d45e254c91c60c1dec5140b0e07940f12a77acb6</id>
    </parent>
  </parents>
  <author>
    <name>Chris Anderson</name>
    <email>jchris@grabb.it</email>
  </author>
  <url>http://github.com/jchris/appdrop/commit/863630cad069ad26be4b2e9c63348b5af2b69207</url>
  <id>863630cad069ad26be4b2e9c63348b5af2b69207</id>
  <committed-date>2008-04-14T17:00:08-07:00</committed-date>
  <authored-date>2008-04-14T17:00:08-07:00</authored-date>
  <message>uses ready state</message>
  <tree>2c1a41588bd76def533c032b7ecabd7035a087b6</tree>
  <committer>
    <name>Chris Anderson</name>
    <email>jchris@grabb.it</email>
  </committer>
</commit>
