<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>app/controllers/reports_controller.rb</filename>
    </added>
    <added>
      <filename>app/views/graphs/running_month.xml.builder</filename>
    </added>
    <added>
      <filename>app/views/graphs/running_year.xml.builder</filename>
    </added>
    <added>
      <filename>app/views/graphs/spending_month.xml.builder</filename>
    </added>
    <added>
      <filename>app/views/graphs/spending_year.xml.builder</filename>
    </added>
    <added>
      <filename>app/views/reports/index.html.haml</filename>
    </added>
    <added>
      <filename>spec/controllers/graphs_controller_spec.rb</filename>
    </added>
    <added>
      <filename>spec/controllers/reports_controller_spec.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,19 +1,35 @@
 class GraphsController &lt; ApplicationController
   
-  # GET /graphs/running.xml
-  def running
+  # GET /graphs/running_month
+  def running_month
     @period = (Time.now.to_date - 30)..Time.now.to_date
     respond_to do |format|
       format.xml
     end
   end
   
-  # GET /graphs/spending.xml
-  def spending
+  # GET /graphs/running_year
+  def running_year
+    @period = (Time.now.to_date - 365)..Time.now.to_date
+    respond_to do |format|
+      format.xml
+    end
+  end
+  
+  # GET /graphs/spending_month
+  def spending_month
     @period = (Time.now.to_date - 30)..Time.now.to_date
     respond_to do |format|
       format.xml
     end
   end
   
+  # GET /graphs/spending_year
+  def spending_year
+    @period = (Time.now.to_date - 365)..Time.now.to_date
+    respond_to do |format|
+      format.xml
+    end
+  end
+
 end
\ No newline at end of file</diff>
      <filename>app/controllers/graphs_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -19,5 +19,6 @@
           %li= link_to 'recurring', recurrings_path
           %li= link_to 'tags', tags_path
           %li= link_to 'vendors', vendors_path
+          %li= link_to 'reports', reports_path
           %li= link_to 'settings', edit_user_path(current_user)
           %li= link_to 'goodbye', session_path(current_user), :method=&gt;:delete
\ No newline at end of file</diff>
      <filename>app/views/layouts/application.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -21,16 +21,16 @@
   
 
 #Graphs
-  #Spending
+  #SpendingMonth
   %script{:type=&gt;'text/javascript'}
     var spending = new FusionCharts(&quot;/flash/MSArea.swf&quot;, &quot;Spending&quot;, &quot;430&quot;, &quot;250&quot;, &quot;0&quot;, &quot;0&quot;);
-    = &quot;spending.setDataURL(\&quot;#{spending_graph_url(:format=&gt;'xml')}\&quot;);&quot;
-    spending.render(&quot;Spending&quot;);
-  #Running
+    = &quot;spending.setDataURL(\&quot;#{spending_month_url(:format=&gt;'xml')}\&quot;);&quot;
+    spending.render(&quot;SpendingMonth&quot;);
+  #RunningMonth
   %script{:type=&gt;'text/javascript'}
     var running = new FusionCharts(&quot;/flash/MSCombiDY2D.swf&quot;, &quot;Running&quot;, &quot;410&quot;, &quot;250&quot;, &quot;0&quot;, &quot;0&quot;);
-    = &quot;running.setDataURL(\&quot;#{running_graph_url(:format=&gt;'xml')}\&quot;);&quot;
-    running.render(&quot;Running&quot;);
+    = &quot;running.setDataURL(\&quot;#{running_month_url(:format=&gt;'xml')}\&quot;);&quot;
+    running.render(&quot;RunningMonth&quot;);
 .clear
 
 = render :partial=&gt;'things', :object=&gt;@things
\ No newline at end of file</diff>
      <filename>app/views/things/index.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -2,6 +2,7 @@ ActionController::Routing::Routes.draw do |map|
   map.resources :items
   map.resources :notes
   map.resources :recurrings
+  map.resources :reports
   map.resources :runs
   map.resources :sessions
   map.resources :tags
@@ -11,9 +12,11 @@ ActionController::Routing::Routes.draw do |map|
   
   map.date 'date/:year/:month/:day', :controller=&gt;'date', :action=&gt;'show', :requirements=&gt;{:year=&gt;/(19|20)\d\d/, :month=&gt;/[01]?\d/, :day=&gt;/[0-3]?\d/}
   
-  map.with_options :controller=&gt;'graphs', :requirements=&gt;{:format=&gt;/xml/} do |g|
-    g.running_graph  'graphs/running',  :action=&gt;'running'
-    g.spending_graph 'graphs/spending', :action=&gt;'spending'
+  map.with_options :controller=&gt;'graphs' do |g|
+    g.running_month  'graphs/running_month.:format',  :action=&gt;'running_month'
+    g.running_year   'graphs/running_year.:format',   :action=&gt;'running_year'
+    g.spending_month 'graphs/spending_month.:format', :action=&gt;'spending_month'
+    g.spending_year  'graphs/spending_year.:format',  :action=&gt;'spending_year'
   end
 
   map.root :controller=&gt;'things'</diff>
      <filename>config/routes.rb</filename>
    </modified>
    <modified>
      <diff>@@ -34,7 +34,7 @@ ActiveRecord::Schema.define(:version =&gt; 20090617051501) do
 
   create_table &quot;jobs&quot;, :force =&gt; true do |t|
     t.integer  &quot;user_id&quot;,                                                    :null =&gt; false
-    t.string   &quot;name&quot;,                                                       :null =&gt; false
+    t.string   &quot;name&quot;,                                     :default =&gt; &quot;&quot;,   :null =&gt; false
     t.boolean  &quot;active&quot;,                                   :default =&gt; true
     t.datetime &quot;created_at&quot;
     t.decimal  &quot;rate&quot;,       :precision =&gt; 6, :scale =&gt; 2, :default =&gt; 0.0,  :null =&gt; false
@@ -130,9 +130,9 @@ ActiveRecord::Schema.define(:version =&gt; 20090617051501) do
   end
 
   create_table &quot;users&quot;, :force =&gt; true do |t|
-    t.string   &quot;email&quot;,                                                        :null =&gt; false
-    t.string   &quot;password_salt&quot;,                                                :null =&gt; false
-    t.string   &quot;password_hash&quot;,                                                :null =&gt; false
+    t.string   &quot;email&quot;,                     :default =&gt; &quot;&quot;,                    :null =&gt; false
+    t.string   &quot;password_salt&quot;,             :default =&gt; &quot;&quot;,                    :null =&gt; false
+    t.string   &quot;password_hash&quot;,             :default =&gt; &quot;&quot;,                    :null =&gt; false
     t.string   &quot;time_zone&quot;
     t.datetime &quot;created_at&quot;,                :default =&gt; '2007-05-24 15:49:54'
     t.string   &quot;twitter_username&quot;</diff>
      <filename>db/schema.rb</filename>
    </modified>
    <modified>
      <diff>@@ -111,7 +111,7 @@ textarea {
 #Graphs {
   margin-left: -45px;
 }
-#Graphs #Spending {
+#Graphs #SpendingMonth {
   float: left;
   width: 430px;
 }</diff>
      <filename>public/stylesheets/application.css</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>app/views/graphs/running.xml.builder</filename>
    </removed>
    <removed>
      <filename>app/views/graphs/spending.xml.builder</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>e6395ffa236444da77b00b7768452b0f5b590c09</id>
    </parent>
  </parents>
  <author>
    <name>Jordan McKible</name>
    <email>jordan@mckible.com</email>
  </author>
  <url>http://github.com/jmckible/stardate/commit/af47369660de25e9929c0125cafaf0e578f842ad</url>
  <id>af47369660de25e9929c0125cafaf0e578f842ad</id>
  <committed-date>2009-07-04T12:19:38-07:00</committed-date>
  <authored-date>2009-07-04T12:19:38-07:00</authored-date>
  <message>Year long report graphs.</message>
  <tree>75f911f44ae8853ecf8666c2bd0a398e3f3f69eb</tree>
  <committer>
    <name>Jordan McKible</name>
    <email>jordan@mckible.com</email>
  </committer>
</commit>
