backlog 0.5.9 → 0.5.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/History.txt +4 -0
  2. data/app/models/period.rb +5 -5
  3. metadata +1 -1
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.5.10 2007-08-06
2
+
3
+ * Made burn down graph show progress made on the first day
4
+
1
5
  == 0.5.9 2007-08-06
2
6
 
3
7
  * Aligned burn down graphs to even numbers
data/app/models/period.rb CHANGED
@@ -90,18 +90,18 @@ class Period < ActiveRecord::Base
90
90
 
91
91
  def dates
92
92
  all_dates = []
93
- start_on.upto(end_on) {|date| all_dates << date}
93
+ (start_on-1).upto(end_on) {|date| all_dates << date}
94
94
  return all_dates
95
95
  end
96
96
 
97
97
  def recorded_dates
98
98
  dates = []
99
99
  if start_on > Date.today
100
- dates << start_on
100
+ dates << (start_on-1)
101
101
  elsif end_on < Date.today
102
- start_on.upto(end_on) {|date| dates << date}
102
+ (start_on-1).upto(end_on) {|date| dates << date}
103
103
  else
104
- start_on.upto(Date.today) {|date| dates << date}
104
+ (start_on-1).upto(Date.today) {|date| dates << date}
105
105
  end
106
106
  return dates
107
107
  end
@@ -228,7 +228,7 @@ class Period < ActiveRecord::Base
228
228
  if observed_todo_data.length == 1
229
229
  observed_todo_data[0]
230
230
  else
231
- value = observed_todo_data[0] + (date-start_on).to_f*velocity
231
+ value = observed_todo_data[0] + (date-start_on+1).to_f*velocity
232
232
  value >= 0 ? value : 0
233
233
  end
234
234
  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.5.9
6
+ version: 0.5.10
7
7
  date: 2007-08-06 00:00:00 +02:00
8
8
  summary: Application to aid collecting, processing, organizing, reviewing and doing tasks.
9
9
  require_paths: