<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -49,7 +49,7 @@ class Punch
         stats = {}
         projects.each { |project|  stats[project] = status(project, options) }
         if options[:short]
-          stats.reject! { |k, v|  v == 'out' }
+          stats.reject! { |k, v|  v != 'in' }
           stats = 'out' if stats.empty?
         end
         return stats</diff>
      <filename>lib/punch.rb</filename>
    </modified>
    <modified>
      <diff>@@ -278,6 +278,16 @@ describe Punch do
             }
           end
           
+          it 'should not include empty projects' do
+            @data['empty_project'] = []
+            Punch.data = @data
+            
+            Punch.status(:short =&gt; true).should == {
+              @projects['in']  =&gt; 'in',
+              @projects['in2'] =&gt; 'in'
+            }
+          end
+          
           it &quot;should return 'out' if all projects are punched out&quot; do
             @data.delete(@projects['in'])
             @data.delete(@projects['in2'])
@@ -285,6 +295,15 @@ describe Punch do
             
             Punch.status(:short =&gt; true).should == 'out'
           end
+          
+          it &quot;should return 'out' if all projects are punched out or empty&quot; do
+            @data.delete(@projects['in'])
+            @data.delete(@projects['in2'])
+            @data['empty_project'] = []
+            Punch.data = @data
+            
+            Punch.status(:short =&gt; true).should == 'out'
+          end
         end
       end
     end</diff>
      <filename>spec/punch_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>de5db99209adfe3c003c0cf509f6d4c43ddc9d26</id>
    </parent>
  </parents>
  <author>
    <name>Yossef Mendelssohn</name>
    <email>ymendel@pobox.com</email>
  </author>
  <url>http://github.com/ymendel/one_inch_punch/commit/a42d85bcaa54185dcd741a88658f1f540603fd53</url>
  <id>a42d85bcaa54185dcd741a88658f1f540603fd53</id>
  <committed-date>2009-06-25T15:16:26-07:00</committed-date>
  <authored-date>2009-06-25T15:16:26-07:00</authored-date>
  <message>Excluding empty projects from short status.

I don't want to remove all projects that will say they're out, but
all projects that won't say they're in. nil-status projects don't
interest me that much.</message>
  <tree>8ed800908f9f0c0f3f3694797ba79fc21a1486c2</tree>
  <committer>
    <name>Yossef Mendelssohn</name>
    <email>ymendel@pobox.com</email>
  </committer>
</commit>
