backlog 0.7.3 → 0.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt CHANGED
@@ -1,3 +1,12 @@
1
+ == 0.7.4 2007-08-18
2
+
3
+ * Added missing dependency on gruff and rmagick
4
+ * Added line in installation instructions to install ImageMagick before installing Backlog
5
+ * Removed the warning messages that appeared on install claiming not to find README.txt
6
+ * Added uniqueness constraint to backlog name.
7
+ * Changed to use logger for debug messages to avoid filling the production log with debug messages.
8
+ * Started working on getting the daily work sheet working.
9
+
1
10
  == 0.7.3 2007-08-17
2
11
 
3
12
  * Fixed bug in estimate creation
data/README.txt CHANGED
@@ -16,6 +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
20
  * run <tt>sudo gem install backlog -y</tt>
20
21
  * run <tt>sudo backlog setup_linux</tt>
21
22
  * run <tt>sudo backlog start</tt>
data/Rakefile CHANGED
@@ -22,10 +22,12 @@ Hoe.new("backlog", APP::VERSION) do |p|
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
24
  p.spec_extras = {
25
- :files => Dir['**/*'].reject{|file_name| file_name =~ /^(log|pkg|tmp)/}
25
+ :files => Dir['**/*'].reject{|file_name| file_name =~ /^(log|pkg|tmp)/},
26
+ :rdoc_options => [],
26
27
  }
27
28
  p.need_zip = true
28
29
  p.url = 'http://rubyforge.org/projects/backlog/'
30
+ p.extra_deps = [['gruff', '>= 0.2.8'], ['rmagick', '>= 1.15.9']]
29
31
  end
30
32
 
31
33
  task :release_and_publish do
@@ -69,10 +69,10 @@ class ApplicationController < ActionController::Base
69
69
 
70
70
  def store_detour(options)
71
71
  if session[:detours] && session[:detours].last == options
72
- puts "duplicate detour: #{options}"; STDOUT.flush
72
+ logger.debug "duplicate detour: #{options}"
73
73
  return
74
74
  end
75
- puts "adding detour: #{options}"; STDOUT.flush
75
+ logger.debug "adding detour: #{options}"
76
76
  session[:detours] ||= []
77
77
  session[:detours] << options
78
78
  end
@@ -97,7 +97,7 @@ class ApplicationController < ActionController::Base
97
97
 
98
98
  def pop_detour
99
99
  detour = session[:detours].pop
100
- puts "popped detour: #{detour.inspect} #{session[:detours].size} more"; STDOUT.flush
100
+ logger.debug "popped detour: #{detour.inspect} #{session[:detours].size} more"
101
101
  if session[:detours].empty?
102
102
  session[:detours] = nil
103
103
  end
@@ -32,6 +32,12 @@ class WorksController < ApplicationController
32
32
  end
33
33
 
34
34
  def create
35
+ if params[:work] && params[:work][:backlog_name] && params[:work][:task_description]
36
+ backlog = Backlog.find_by_name(params[:work].delete(:backlog_name))
37
+ description = params[:work][:task_description]
38
+ task = Task.find_by_backlog_id_and_description(backlog.id, description)
39
+ params[:work][:task_id] = Task.find_by_backlog_id_and_description(backlog.id, params[:work].delete(:task_description))
40
+ end
35
41
  convert_hours_param
36
42
  @work = Work.new(params[:work])
37
43
  @work.completed_at = Time.now unless @work.completed_at
@@ -79,7 +85,7 @@ class WorksController < ApplicationController
79
85
  end
80
86
 
81
87
  def daily_work_sheet
82
- @date = (params[:date] && Date.parse(params[:date])) || Date.today
88
+ @date = (params[:id] && Date.parse(params[:id])) || Date.today
83
89
  @periods = []
84
90
  @works = Work.find(:all,
85
91
  :conditions => "started_at < '#{@date+1}' AND completed_at >= '#{@date}'",
@@ -41,7 +41,7 @@ module ApplicationHelper
41
41
  def back_or_link_to(title, options)
42
42
  if session[:detours]
43
43
  options = {:return_from_detour => true}.update(session[:detours].last)
44
- puts "linked return from detour: #{options}"
44
+ logger.debug "linked return from detour: #{options}"
45
45
  end
46
46
  link_to title, options
47
47
  end
@@ -1,6 +1,7 @@
1
1
  class Backlog < ActiveRecord::Base
2
2
  validates_presence_of :name
3
3
  validates_length_of :name, :allow_nil => false, :maximum => 64
4
+ validates_uniqueness_of :name
4
5
  validates_inclusion_of :track_todo, :in => [true, false], :allow_nil => true, :message => ActiveRecord::Errors.default_error_messages[:blank]
5
6
  validates_inclusion_of :track_done, :in => [true, false], :allow_nil => true, :message => ActiveRecord::Errors.default_error_messages[:blank]
6
7
  validates_inclusion_of :track_times, :in => [true, false], :allow_nil => true, :message => ActiveRecord::Errors.default_error_messages[:blank]
@@ -1,14 +1,13 @@
1
- <% @page_title = l(:daily_work_sheet) + " on #{@date}" + (" for #{user.login}" if user?) %>
1
+ <% @page_title = "#{l :experimental} #{l :daily_work_sheet} on #{@date}" + (" for #{user.login}" if user?) %>
2
2
 
3
3
  <% track_times = @works.find {|w| w.task.track_times?} %>
4
4
 
5
5
  <div id="spotlight">
6
6
 
7
- <div style="float: left"><%=link_to(image_tag('arrow_left.png'), :date => @date-1)%></div>
8
- <div style="float: right"><%=link_to(image_tag('arrow_right.png'), :date => @date+1)%></div>
9
-
10
- <div style="float: left"><%=link_to(image_tag('arrow_left.png'), :id => (@week - 7))%></div>
11
- <div style="float: right"><%=link_to(image_tag('arrow_right.png'), :id => (@week + 7))%></div>
7
+ <div style="float: left"><%=link_to(image_tag('arrow_left.png'), :id => (@date - 7))%></div>
8
+ <div style="float: left"><%=link_to(image_tag('arrow_left.png'), :id => @date-1)%></div>
9
+ <div style="float: right"><%=link_to(image_tag('arrow_right.png'), :id => (@date + 7))%></div>
10
+ <div style="float: right"><%=link_to(image_tag('arrow_right.png'), :id => @date+1)%></div>
12
11
 
13
12
  <table sstyle="width: 100%" border="0">
14
13
  <tr>
@@ -62,7 +61,8 @@
62
61
 
63
62
 
64
63
 
65
- <form>
64
+ <% form_tag :action => 'create' do %>
65
+ <%=hidden_field :work, :completed_at, :value => Time.now %>
66
66
  <table sstyle="width: 100%" border="0">
67
67
  <tr>
68
68
  <td width="22"/>
@@ -95,7 +95,9 @@
95
95
  <th class="hours"><%='%.2f' % day_total %></th>
96
96
  </tr>
97
97
  </table>
98
- </form>
98
+ <%= submit_tag l(:save) %>
99
+ <%= back_or_link_to l(:back), '' %>
100
+ <% end %>
99
101
 
100
102
 
101
103
  <% if @period %>
data/lang/en.yaml CHANGED
@@ -27,6 +27,7 @@ enable_users: Enable users
27
27
  end_on: End on
28
28
  end_work: Stop
29
29
  estimate: Estimate
30
+ experimental: Experimental!
30
31
  friday: Friday
31
32
  group: Group
32
33
  groups: Groups
data/lang/no.yaml CHANGED
@@ -27,6 +27,7 @@ enable_users: Tillat brukere
27
27
  end_on: Avslutt på
28
28
  end_work: Stopp
29
29
  estimate: Estimat
30
+ experimental: Eksperimentell!
30
31
  friday: Fredag
31
32
  group: Gruppe
32
33
  groups: Grupper
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.3
7
- date: 2007-08-17 00:00:00 +02:00
6
+ version: 0.7.4
7
+ date: 2007-08-18 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 * run <tt>sudo gem install backlog -y</tt> * run <tt>sudo backlog setup_linux</tt> * run <tt>sudo backlog start</tt> === Updates * run <tt>sudo backlog stop</tt> * run <tt>sudo gem update -y</tt> * run <tt>sudo backlog start</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"
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_linux</tt> * run <tt>sudo backlog start</tt> === Updates * run <tt>sudo backlog stop</tt> * run <tt>sudo gem update -y</tt> * run <tt>sudo backlog start</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"
15
15
  autorequire:
16
16
  default_executable:
17
17
  bindir: bin
@@ -1767,9 +1767,8 @@ files:
1767
1767
  - app/views/periods/_burn_down_chart.rhtml
1768
1768
  test_files:
1769
1769
  - test/test_helper.rb
1770
- rdoc_options:
1771
- - --main
1772
- - README.txt
1770
+ rdoc_options: []
1771
+
1773
1772
  extra_rdoc_files: []
1774
1773
 
1775
1774
  executables: []
@@ -1779,6 +1778,24 @@ extensions: []
1779
1778
  requirements: []
1780
1779
 
1781
1780
  dependencies:
1781
+ - !ruby/object:Gem::Dependency
1782
+ name: gruff
1783
+ version_requirement:
1784
+ version_requirements: !ruby/object:Gem::Version::Requirement
1785
+ requirements:
1786
+ - - ">="
1787
+ - !ruby/object:Gem::Version
1788
+ version: 0.2.8
1789
+ version:
1790
+ - !ruby/object:Gem::Dependency
1791
+ name: rmagick
1792
+ version_requirement:
1793
+ version_requirements: !ruby/object:Gem::Version::Requirement
1794
+ requirements:
1795
+ - - ">="
1796
+ - !ruby/object:Gem::Version
1797
+ version: 1.15.9
1798
+ version:
1782
1799
  - !ruby/object:Gem::Dependency
1783
1800
  name: hoe
1784
1801
  version_requirement: