<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -112,7 +112,7 @@ module Whenever
     # them into one that runs on the 2nd minute at the 3rd and 4th hour.
     #
     def combine(entries)
-      entries.map! { |entry| entry.split(/ +/,6 )}
+      entries.map! { |entry| entry.split(/ +/, 6) }
       0.upto(4) do |f|
         (entries.length-1).downto(1) do |i|
           next if entries[i][f] == '*'
@@ -134,18 +134,25 @@ module Whenever
     def cron_jobs
       return if @jobs.empty?
       
-      output = []
+      shortcut_jobs = []
+      regular_jobs = []
+      
       @jobs.each do |time, jobs|
         jobs.each do |job|
           Whenever::Output::Cron.output(time, job) do |cron|
             cron &lt;&lt; &quot; &gt;&gt; #{job.cron_log} 2&gt;&amp;1&quot; if job.cron_log 
             cron &lt;&lt; &quot;\n\n&quot;
-            output &lt;&lt; cron
+            
+            if cron.starts_with?(&quot;@&quot;)
+              shortcut_jobs &lt;&lt; cron
+            else
+              regular_jobs &lt;&lt; cron
+            end
           end
         end
       end
-      
-      combine(output).join
+
+      shortcut_jobs.join + combine(regular_jobs).join
     end
     
   end</diff>
      <filename>lib/job_list.rb</filename>
    </modified>
    <modified>
      <diff>@@ -134,4 +134,45 @@ class OutputAtTest &lt; Test::Unit::TestCase
     end
   end
   
+  context &quot;Multiple commands output every :reboot&quot; do
+    setup do
+      @output = Whenever.cron \
+      &lt;&lt;-file
+        every :reboot do
+          command &quot;command_1&quot;
+          command &quot;command_2&quot;
+        end
+      file
+    end
+    
+    should &quot;output both commands @reboot&quot; do
+      assert_match &quot;@reboot command_1&quot;, @output
+      assert_match &quot;@reboot command_2&quot;, @output
+    end
+  end
+  
+  context &quot;Many different job types output every :day&quot; do
+    setup do
+      @output = Whenever.cron \
+      &lt;&lt;-file
+        set :path, '/your/path'
+        every :day do
+          rake &quot;blah:blah&quot;
+          runner &quot;runner_1&quot;
+          command &quot;command_1&quot;
+          runner &quot;runner_2&quot;
+          command &quot;command_2&quot;
+        end
+      file
+    end
+    
+    should &quot;output all of the commands @daily&quot; do
+      assert_match '@daily cd /your/path &amp;&amp; RAILS_ENV=production /usr/bin/env rake blah:blah', @output
+      assert_match '@daily /your/path/script/runner -e production &quot;runner_1&quot;', @output
+      assert_match '@daily command_1', @output
+      assert_match '@daily /your/path/script/runner -e production &quot;runner_2&quot;', @output
+      assert_match '@daily command_2', @output
+    end
+  end
+  
 end</diff>
      <filename>test/output_at_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>51a6b3720a37bb1412ae60efeba368c6f81e43e4</id>
    </parent>
  </parents>
  <author>
    <name>Javan Makhmali</name>
    <email>javan@javan.us</email>
  </author>
  <url>http://github.com/javan/whenever/commit/6bf363b7237cd8f4a007531f391209f7e2b0234a</url>
  <id>6bf363b7237cd8f4a007531f391209f7e2b0234a</id>
  <committed-date>2009-09-04T13:48:33-07:00</committed-date>
  <authored-date>2009-09-04T13:48:33-07:00</authored-date>
  <message>don't try to combine @shortcut jobs</message>
  <tree>71c1589beef718b9b330060f5f8137b4d102bc92</tree>
  <committer>
    <name>Javan Makhmali</name>
    <email>javan@javan.us</email>
  </committer>
</commit>
