backlog 0.7.7 → 0.7.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,17 @@
1
+ == 0.7.8 2007-08-25
2
+
3
+ * Changed use of RMagick to be optional. Everything except the graphs should work if rmagick is not installed. rmagick is still a dependency for the gem, but you can force installation og the backlog gem without rmagick ot gruff with the --ignore-dependencies flag. You still need the postgres gem.
4
+ * Changed documentation to mention GraphicsMagic as an alternative to ImageMagick
5
+ * Added more documentation of the charts.
6
+ * Added explanation on how to install Backlog without ImageMagick, GraphicsMagick and RMagick.
7
+ * Made change password view a bit prettier.
8
+ * Added link to project home to top of layout.
9
+
1
10
  == 0.7.7 2007-08-24
2
11
 
3
12
  * Added link to backlog from work record in weekly work sheet
4
- * Added ImageMagick and PostgreSQL as requireements in the GEM
5
- * Removed shortcuts from login and signup views.
13
+ * Added ImageMagick and PostgreSQL as requirements in the GEM
14
+ * Removed shortcuts from login and sign up views.
6
15
  * Removed link to backlog list of not logged in.
7
16
  * Localized some user messages.
8
17
  * Focus on login field in login view.
@@ -10,7 +19,7 @@
10
19
 
11
20
  == 0.7.6 2007-08-22
12
21
 
13
- * Changed Task edit view to use Ajax to update the Period link to make it more sponsive when moving a task between periods.
22
+ * Changed Task edit view to use Ajax to update the Period link to make it more responsive when moving a task between periods.
14
23
  * Changed the LARGE chart size from 1440x900 to 1368x768 for display on our large screen TV
15
24
  * Fixed bug for displaying burn down chart for groups that have no active period.
16
25
  * Made 404 error page a bit bit nicer.
@@ -36,7 +45,7 @@
36
45
  == 0.7.3 2007-08-17
37
46
 
38
47
  * Fixed bug in estimate creation
39
- * Added cruisecontrol.rb config file
48
+ * Added cruisecontrol.rb configuration file
40
49
  * Fixed mailing of password
41
50
  * Fixed find_by for class table inheritance subclasses
42
51
  * Fixed date limits for new periods
@@ -141,16 +150,16 @@
141
150
 
142
151
  == 0.5.0 2007-08-06
143
152
 
144
- * Changed first time workflow to add new backlog
145
- * Changed startup workflow to show most urgent period for the current user
153
+ * Changed first time work flow to add new backlog
154
+ * Changed startup work flow to show most urgent period for the current user
146
155
  * Now display version in the header.
147
156
 
148
157
  == 0.4.0 2007-08-06
149
158
 
150
159
  * Added tasks to backlog edit view
151
160
  * Started simplifying task ordering. Now ordering simply has period_id as scope.
152
- * Improved and fixed bugs in workflow
153
- * Fixed typos in stylesheet
161
+ * Improved and fixed bugs in work flow
162
+ * Fixed typos in style sheet
154
163
  * KNOWN BUG: Ordering for tasks in backlog does not work properly
155
164
 
156
165
  == 0.3.9 2007-08-03
@@ -196,17 +205,17 @@
196
205
 
197
206
  == 0.3.0 2007-08-02
198
207
 
199
- * Improved workflow
208
+ * Improved work flow
200
209
  * Added task list to backlog edit view
201
210
 
202
211
  == 0.2.1 2007-07-31
203
212
 
204
- * Improved workflow
213
+ * Improved work flow
205
214
  * Added more shortcut links
206
215
 
207
216
  == 0.2.0 2007-07-31
208
217
 
209
- * Improved workflow
218
+ * Improved work flow
210
219
 
211
220
  == 0.1.2 2007-07-29
212
221
 
data/README.txt CHANGED
@@ -16,7 +16,7 @@ A timekeeping module is also included to track time spent on the different tasks
16
16
  * Install ruby
17
17
  * Install RubyGems
18
18
  * Install PostgreSQL
19
- * Install ImageMagick
19
+ * Install ImageMagick or GraphicsMagick
20
20
  * run <tt>sudo gem install backlog -y</tt>
21
21
  * run <tt>sudo backlog setup_unix</tt>
22
22
  * run <tt>sudo backlog start</tt>
@@ -39,9 +39,41 @@ port: 3000
39
39
 
40
40
  === Charts
41
41
 
42
- You can get a large version of the burn down charts by appending "_large" to the URL.
42
+ The charts in Backlog are made using Gruff (http://nubyonrails.com/pages/gruff).
43
+ Gruff uses RMagick (http://rmagick.rubyforge.org/) for image generation.
44
+ RMagick uses ImageMagic (http://www.imagemagick.org/script/download.php)
45
+ or GraphicsMagic (http://www.graphicsmagick.org/www/download.html).
46
+ On some platforms ImageMagick and GraphicsMagick are either not available, or difficult to install.
47
+ In that case, RMagick will fail to install, causing the Backlog gem to fail to install.
48
+ To bypass this, you can install the Backlog gem using the --ignore-dependencies flag.
49
+ Backlog will still work without RMagick, but charts will not be available.
50
+
51
+
52
+ ==== Links to charts
53
+
54
+ You can display the charts directly using links like the ones below.
55
+ The charts are normally not protected, so you can display the in slideshows etc. without having to log in.
56
+
57
+ Examples:
58
+
59
+ http://backlog.kubosch.no/periods/burn_down_chart/55.png
60
+ http://backlog.kubosch.no/parties/burn_down_chart/14.png
61
+
62
+ ==== Chart thumbnails
63
+
64
+ You can get small versions of the burn down charts by appending "_thumbnail" to the URL.
65
+
66
+ Examples:
67
+
68
+ http://backlog.kubosch.no/periods/burn_down_chart_thumbnail/55.png
69
+ http://backlog.kubosch.no/parties/burn_down_chart_thumbnail/14.png
70
+
71
+ ==== Large charts
72
+
73
+ You can get large versions (1368x768) of the burn down charts by appending "_large" to the URL.
43
74
 
44
75
  Examples:
45
76
 
46
77
  http://backlog.kubosch.no/periods/burn_down_chart_large/55.png
47
78
  http://backlog.kubosch.no/parties/burn_down_chart_large/14.png
79
+
data/Rakefile CHANGED
@@ -21,20 +21,21 @@ Hoe.new("backlog", APP::VERSION) do |p|
21
21
  p.remote_rdoc_dir = '' # Release to root
22
22
  p.changes = p.paragraphs_of('History.txt', 0..-1).join("\n\n")
23
23
  p.rdoc_pattern = /^(app\/(controllers|helpers|models)|lib|bin)|txt$/
24
+ p.clean_globs = ['^doc']
24
25
  p.spec_extras = {
25
26
  :files => Dir['**/*'].reject{|file_name| file_name =~ /^(log|pkg|tmp)/},
26
27
  :rdoc_options => ['--inline-source'],
27
28
  :executables => ['backlog'],
28
- :requirements => ['ImageMagick', 'PostgreSQL']
29
+ :requirements => ['ImageMagick or GraphicsMagick', 'PostgreSQL']
29
30
  }
30
31
  p.need_zip = true
31
32
  p.url = 'http://rubyforge.org/projects/backlog/'
32
33
  p.extra_deps = [['gruff', '>= 0.2.8'], ['rmagick', '>= 1.15.9'], ['postgres', '>= 0.7.1']]
33
34
  end
34
35
 
35
- task :release_and_publish do
36
+ task :release_all do
36
37
  ENV['VERSION'] = APP::VERSION
37
38
  Rake::Task[:release].invoke
38
- Rake::Task[:publish_docs].invoke
39
+ # Rake::Task[:publish_docs].invoke
39
40
  Rake::Task[:post_news].invoke
40
41
  end
@@ -20,7 +20,7 @@ class PartiesController < ApplicationController
20
20
  party = Party.find(params[:id])
21
21
  if period = party.periods.select{|p| p.active?}.first || party.periods.last
22
22
  g = period.burn_down_graph(size)
23
- send_data(g.to_blob,
23
+ send_data(g,
24
24
  :disposition => 'inline',
25
25
  :type => 'image/png',
26
26
  :filename => "burn_down_chart.png")
@@ -103,7 +103,7 @@ class PeriodsController < ApplicationController
103
103
  @works = Work.find_by_sql("SELECT w.* FROM works w LEFT OUTER JOIN tasks t ON t.id = w.task_id WHERE t.period_id = #{@period.id} ORDER BY w.completed_at")
104
104
  render :template => '/works/list'
105
105
  end
106
-
106
+
107
107
  def make_link
108
108
  if params[:id].to_i > 0
109
109
  render :partial => 'link', :layout => false, :locals => {:period => Period.find(params[:id])}
@@ -116,11 +116,8 @@ class PeriodsController < ApplicationController
116
116
 
117
117
  def send_burn_down_chart(size)
118
118
  period = Period.find(params[:id])
119
- g = period.burn_down_graph(size)
120
- send_data(g.to_blob,
121
- :disposition => 'inline',
122
- :type => 'image/png',
123
- :filename => "burn_down_chart.png")
119
+ g = period.burn_down_graph(size)
120
+ send_data(g, :disposition => 'inline', :type => 'image/png', :filename => "burn_down_chart.png")
124
121
  end
125
122
 
126
123
  end
@@ -90,7 +90,7 @@ class Period < ActiveRecord::Base
90
90
 
91
91
  def dates
92
92
  all_dates = []
93
- (start_on-1).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
 
@@ -99,9 +99,9 @@ class Period < ActiveRecord::Base
99
99
  if start_on > Date.today
100
100
  dates << (start_on-1)
101
101
  elsif end_on < Date.today
102
- (start_on-1).upto(end_on) {|date| dates << date}
102
+ (start_on-1).upto(end_on) {|date| dates << date}
103
103
  else
104
- (start_on-1).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
@@ -161,6 +161,13 @@ class Period < ActiveRecord::Base
161
161
  end
162
162
 
163
163
  def burn_down_graph(size)
164
+ begin
165
+ require 'gruff'
166
+ rescue MissingSourceFile => e
167
+ return File.read("public/images/rmagick_#{size}.gif") if File.exists? "public/images/rmagick_#{size}.gif"
168
+ return File.read("public/images/rmagick.gif")
169
+ end
170
+
164
171
  g = Gruff::Line.new(size)
165
172
  g.theme_37signals
166
173
  g.title = l(:burn_down_chart) + " " + name
@@ -204,7 +211,7 @@ class Period < ActiveRecord::Base
204
211
  # g.draw_vertical_legend
205
212
 
206
213
  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
- g
214
+ g.to_blob
208
215
  end
209
216
 
210
217
  def get_todo_data(dates, actual=false)
@@ -1,5 +1,5 @@
1
1
  <div id="navbar">
2
- <span style="float: left"><%=l :backlog%> <%=APP::VERSION%></span>
2
+ <span style="float: left"><%=link_to "#{l :backlog} #{APP::VERSION}", 'http://rubyforge.org/projects/backlog'%></span>
3
3
  <%= flash[:notice] + ' |' if flash[:notice] %>
4
4
  <%= link_to l(:home), '/' %>
5
5
 
@@ -1,5 +1,7 @@
1
+ <% @page_title = l(:change_password) %>
2
+
3
+ <div id="spotlight">
1
4
  <div title="<%= title_helper %>" class="form">
2
- <%= head_helper 'Change Password', :error => true %>
3
5
 
4
6
  <div class="form-padding">
5
7
  Enter your new password in the fields below and click 'Change Password' to have a new password sent to your email inbox.
@@ -12,4 +14,5 @@
12
14
  </div>
13
15
  </form>
14
16
  </div>
17
+ </div>
15
18
  </div>
@@ -56,7 +56,6 @@ require 'environments/localization_environment'
56
56
  require 'localization'
57
57
  Localization::load_localized_strings
58
58
  require 'rubygems'
59
- require 'gruff'
60
59
 
61
60
  require 'environments/user_environment'
62
61
  require 'array_helper'
Binary file
@@ -11,7 +11,6 @@ class PartiesControllerTest < Test::Unit::TestCase
11
11
  @response = ActionController::TestResponse.new
12
12
  end
13
13
 
14
- # Replace this with your real tests.
15
14
  def test_burn_down_chart
16
15
  get :burn_down_chart, :id => 1
17
16
  end
@@ -82,4 +82,9 @@ class PeriodsControllerTest < Test::Unit::TestCase
82
82
  Period.find(1)
83
83
  }
84
84
  end
85
+
86
+ def test_burn_down_chart
87
+ get :burn_down_chart, :id => 1
88
+ end
89
+
85
90
  end
@@ -3,8 +3,7 @@ require File.dirname(__FILE__) + '/../test_helper'
3
3
  class PeriodTest < Test::Unit::TestCase
4
4
  fixtures :periods, :tasks, :estimates, :works
5
5
 
6
- # Replace this with your real tests.
7
- def test_truth
8
- assert true
6
+ def test_burn_down_graph
7
+ image = periods(:past).burn_down_graph(Chart::THUMBNAIL)
9
8
  end
10
9
  end
metadata CHANGED
@@ -3,15 +3,15 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: backlog
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.7.7
7
- date: 2007-08-24 00:00:00 +02:00
6
+ version: 0.7.8
7
+ date: 2007-08-25 00:00:00 +02:00
8
8
  summary: Application to aid collecting, processing, organizing, reviewing and doing tasks.
9
9
  require_paths:
10
10
  - lib
11
11
  email: uwe@kubosch.no
12
12
  homepage: http://rubyforge.org/projects/backlog/
13
13
  rubyforge_project: backlog
14
- description: "== Backlog Welcome to Backlog! Backlog is a tool to help you collect and organize all your tasks, wether you are a single persion or a small or large group. A timekeeping module is also included to track time spent on the different tasks. === Backlog is not meant to be * an issue tracker with customer communication. === Installation * Install ruby * Install RubyGems * Install PostgreSQL * Install ImageMagick * run <tt>sudo gem install backlog -y</tt> * run <tt>sudo backlog setup_unix</tt> * run <tt>sudo backlog start</tt> === Updates * run <tt>sudo gem update -y</tt> * run <tt>sudo backlog setup_unix</tt> * run <tt>sudo backlog restart</tt> === Configuration You can set configuration parameters for backlog using the /etc/backlog.conf file. The format is YAML. Currently only port number is settable. Example: port: 3000 === Charts You can get a large version of the burn down charts by appending \"_large\" to the URL. Examples: http://backlog.kubosch.no/periods/burn_down_chart_large/55.png http://backlog.kubosch.no/parties/burn_down_chart_large/14.png"
14
+ description: "== Backlog Welcome to Backlog! Backlog is a tool to help you collect and organize all your tasks, wether you are a single persion or a small or large group. A timekeeping module is also included to track time spent on the different tasks. === Backlog is not meant to be * an issue tracker with customer communication. === Installation * Install ruby * Install RubyGems * Install PostgreSQL * Install ImageMagick or GraphicsMagick * run <tt>sudo gem install backlog -y</tt> * run <tt>sudo backlog setup_unix</tt> * run <tt>sudo backlog start</tt> === Updates * run <tt>sudo gem update -y</tt> * run <tt>sudo backlog setup_unix</tt> * run <tt>sudo backlog restart</tt> === Configuration You can set configuration parameters for backlog using the /etc/backlog.conf file. The format is YAML. Currently only port number is settable. Example: port: 3000 === Charts The charts in Backlog are made using Gruff (http://nubyonrails.com/pages/gruff). Gruff uses RMagick (http://rmagick.rubyforge.org/) for image generation. RMagick uses ImageMagic (http://www.imagemagick.org/script/download.php) or GraphicsMagic (http://www.graphicsmagick.org/www/download.html). On some platforms ImageMagick and GraphicsMagick are either not available, or difficult to install. In that case, RMagick will fail to install, causing the Backlog gem to fail to install. To bypass this, you can install the Backlog gem using the --ignore-dependencies flag. Backlog will still work without RMagick, but charts will not be available. ==== Links to charts You can display the charts directly using links like the ones below. The charts are normally not protected, so you can display the in slideshows etc. without having to log in. Examples: http://backlog.kubosch.no/periods/burn_down_chart/55.png http://backlog.kubosch.no/parties/burn_down_chart/14.png ==== Chart thumbnails You can get small versions of the burn down charts by appending \"_thumbnail\" to the URL. Examples: http://backlog.kubosch.no/periods/burn_down_chart_thumbnail/55.png http://backlog.kubosch.no/parties/burn_down_chart_thumbnail/14.png ==== Large charts You can get large versions (1368x768) of the burn down charts by appending \"_large\" to the URL. Examples: http://backlog.kubosch.no/periods/burn_down_chart_large/55.png http://backlog.kubosch.no/parties/burn_down_chart_large/14.png"
15
15
  autorequire:
16
16
  default_executable:
17
17
  bindir: bin
@@ -45,10 +45,12 @@ files:
45
45
  - public/images/arrow_down.png
46
46
  - public/images/eraser_org.png
47
47
  - public/images/period.png
48
+ - public/images/rmagick.gif
48
49
  - public/images/arrow_right.png
49
50
  - public/images/construction_hammer_jon__01.svg
50
51
  - public/images/arrow_down.svg
51
52
  - public/images/checkmark_org.png
53
+ - public/images/rmagick_270.gif
52
54
  - public/images/pagebak.jpg
53
55
  - public/images/group.png
54
56
  - public/images/tabella_architetto_franc_01.svg
@@ -228,7 +230,6 @@ files:
228
230
  - config/environments/datek_production.rb
229
231
  - LICENSE_LOCALIZATION
230
232
  - README.txt
231
- - doc
232
233
  - Manifest.txt
233
234
  - cruise_config.rb
234
235
  - vendor
@@ -1777,7 +1778,7 @@ executables:
1777
1778
  extensions: []
1778
1779
 
1779
1780
  requirements:
1780
- - ImageMagick
1781
+ - ImageMagick or GraphicsMagick
1781
1782
  - PostgreSQL
1782
1783
  dependencies:
1783
1784
  - !ruby/object:Gem::Dependency