backlog 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.6.2 2007-08-07
2
+
3
+ * Added link to the active period of a party
4
+
1
5
  == 0.6.1 2007-08-07
2
6
 
3
7
  * Improved design for daily work sheet
@@ -0,0 +1,27 @@
1
+ class PartiesController < ApplicationController
2
+ def burn_down_chart
3
+ send_burn_down_chart 640
4
+ end
5
+
6
+ def burn_down_chart_thumbnail
7
+ send_burn_down_chart 270
8
+ end
9
+
10
+ def burn_down_chart_large
11
+ send_burn_down_chart '1440x900'
12
+ end
13
+
14
+ private
15
+
16
+ def send_burn_down_chart(size)
17
+ party = Party.find(params[:id])
18
+ if period = party.periods.select{|p| true}.first
19
+ g = period.burn_down_graph(size)
20
+ send_data(g.to_blob,
21
+ :disposition => 'inline',
22
+ :type => 'image/png',
23
+ :filename => "burn_down_chart.png")
24
+ end
25
+ end
26
+
27
+ end
@@ -0,0 +1,2 @@
1
+ module PartiesHelper
2
+ end
data/app/models/period.rb CHANGED
@@ -203,7 +203,7 @@ class Period < ActiveRecord::Base
203
203
 
204
204
  # g.draw_vertical_legend
205
205
 
206
- g.maximum_value = (g.maximum_value.to_s[0..0].to_i + 1) * (10**Math::log10(g.maximum_value.to_i).to_i)
206
+ g.maximum_value = (g.maximum_value.to_s[0..0].to_i + 1) * (10**Math::log10(g.maximum_value.to_i).to_i) if g.maximum_value > 0
207
207
  g
208
208
  end
209
209
 
@@ -0,0 +1,18 @@
1
+ require File.dirname(__FILE__) + '/../test_helper'
2
+ require 'parties_controller'
3
+
4
+ # Re-raise errors caught by the controller.
5
+ class PartiesController; def rescue_action(e) raise e end; end
6
+
7
+ class PartiesControllerTest < Test::Unit::TestCase
8
+ def setup
9
+ @controller = PartiesController.new
10
+ @request = ActionController::TestRequest.new
11
+ @response = ActionController::TestResponse.new
12
+ end
13
+
14
+ # Replace this with your real tests.
15
+ def test_truth
16
+ assert true
17
+ end
18
+ end
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: backlog
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.6.1
6
+ version: 0.6.2
7
7
  date: 2007-08-07 00:00:00 +02:00
8
8
  summary: Application to aid collecting, processing, organizing, reviewing and doing tasks.
9
9
  require_paths:
@@ -135,6 +135,7 @@ files:
135
135
  - test/integration
136
136
  - test/integration/user_system_test.rb
137
137
  - test/functional
138
+ - test/functional/parties_controller_test.rb
138
139
  - test/functional/backlogs_controller_test.rb
139
140
  - test/functional/estimates_controller_test.rb
140
141
  - test/functional/groups_controller_test.rb
@@ -1669,6 +1670,7 @@ files:
1669
1670
  - app/controllers/tasks_controller.rb
1670
1671
  - app/controllers/estimates_controller.rb
1671
1672
  - app/controllers/backlogs_controller.rb
1673
+ - app/controllers/parties_controller.rb
1672
1674
  - app/controllers/application.rb
1673
1675
  - app/controllers/periods_controller.rb
1674
1676
  - app/controllers/works_controller.rb
@@ -1682,6 +1684,7 @@ files:
1682
1684
  - app/helpers/works_helper.rb
1683
1685
  - app/helpers/periods_helper.rb
1684
1686
  - app/helpers/user_helper.rb
1687
+ - app/helpers/parties_helper.rb
1685
1688
  - app/models
1686
1689
  - app/models/work.rb
1687
1690
  - app/models/group.rb
@@ -1722,6 +1725,7 @@ files:
1722
1725
  - app/views/groups/_form.rhtml
1723
1726
  - app/views/groups/new.rhtml
1724
1727
  - app/views/groups/edit.rhtml
1728
+ - app/views/parties
1725
1729
  - app/views/tasks
1726
1730
  - app/views/tasks/_backlog_header.rhtml
1727
1731
  - app/views/tasks/list.rhtml