backlog 0.15.1 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +16 -0
- data/app/controllers/backlogs_controller.rb +2 -2
- data/app/controllers/estimates_controller.rb +3 -4
- data/app/controllers/periods_controller.rb +14 -2
- data/app/controllers/tasks_controller.rb +6 -1
- data/app/controllers/user_controller.rb +10 -10
- data/app/helpers/application_helper.rb +3 -2
- data/app/helpers/user_helper.rb +4 -4
- data/app/views/layouts/_headers.rhtml +1 -0
- data/app/views/layouts/_notice.rhtml +1 -4
- data/app/views/periods/_show_active.rhtml +8 -6
- data/app/views/periods/show.rhtml +38 -0
- data/app/views/tasks/_backlog_header.rhtml +7 -7
- data/app/views/tasks/_completed.rhtml +3 -3
- data/app/views/tasks/_fields_header.rhtml +9 -9
- data/app/views/tasks/_form.rhtml +16 -6
- data/app/views/tasks/_task.rhtml +56 -60
- data/app/views/tasks/edit.rhtml +67 -1
- data/app/views/tasks/notes.rhtml +6 -2
- data/bin/backlog +63 -1
- data/db/migrate/025_add_simple_auditing_of_tasks.rb +11 -0
- data/db/schema.rb +5 -1
- data/lib/url_for_fix.rb +5 -5
- data/public/applets/bsf.jar +0 -0
- data/public/applets/jruby.jar +0 -0
- data/public/javascripts/ruby.js +46 -0
- data/test/functional/user_controller_test.rb +5 -5
- data/vendor/plugins/foreign_key_migrations/CHANGELOG +36 -0
- data/vendor/plugins/foreign_key_migrations/README +27 -0
- data/vendor/plugins/foreign_key_migrations/about.yml +5 -0
- data/vendor/plugins/foreign_key_migrations/init.rb +1 -2
- data/vendor/plugins/foreign_key_migrations/lib/foreign_key_migrations.rb +3 -0
- data/vendor/plugins/foreign_key_migrations/lib/red_hill_consulting/foreign_key_migrations/active_record/base.rb +22 -0
- data/vendor/plugins/foreign_key_migrations/lib/red_hill_consulting/foreign_key_migrations/active_record/connection_adapters/abstract_adapter.rb +22 -0
- data/vendor/plugins/foreign_key_migrations/lib/red_hill_consulting/foreign_key_migrations/active_record/connection_adapters/table_definition.rb +28 -0
- metadata +99 -80
- data/vendor/plugins/foreign_key_migrations/lib/red_hill_consulting/foreign_key_migrations.rb +0 -57
@@ -0,0 +1,22 @@
|
|
1
|
+
module RedHillConsulting::ForeignKeyMigrations::ActiveRecord::ConnectionAdapters
|
2
|
+
module AbstractAdapter
|
3
|
+
def self.included(base)
|
4
|
+
base.class_eval do
|
5
|
+
alias_method_chain :initialize, :foreign_key_migrations
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
def initialize_with_foreign_key_migrations(*args)
|
10
|
+
initialize_without_foreign_key_migrations(*args)
|
11
|
+
self.class.class_eval do
|
12
|
+
alias_method_chain :add_column, :foreign_key_migrations
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
def add_column_with_foreign_key_migrations(table_name, column_name, type, options = {})
|
17
|
+
add_column_without_foreign_key_migrations(table_name, column_name, type, options)
|
18
|
+
references = ActiveRecord::Base.references(table_name, column_name, options)
|
19
|
+
add_foreign_key(table_name, column_name, references.first, references.last, options) if references
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module RedHillConsulting::ForeignKeyMigrations::ActiveRecord::ConnectionAdapters
|
2
|
+
module TableDefinition
|
3
|
+
def self.included(base)
|
4
|
+
base.class_eval do
|
5
|
+
alias_method_chain :column, :foreign_key_migrations
|
6
|
+
alias_method_chain :primary_key, :foreign_key_migrations
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
def primary_key_with_foreign_key_migrations(name, options = {})
|
11
|
+
column(name, :primary_key, options)
|
12
|
+
end
|
13
|
+
|
14
|
+
def column_with_foreign_key_migrations(name, type, options = {})
|
15
|
+
column_without_foreign_key_migrations(name, type, options)
|
16
|
+
references = ActiveRecord::Base.references(self.name, name, options)
|
17
|
+
foreign_key(name, references.first, references.last, options) if references
|
18
|
+
self
|
19
|
+
end
|
20
|
+
|
21
|
+
# Some people liked this; personally I've decided against using it but I'll keep it nonetheless
|
22
|
+
def belongs_to(table, options = {})
|
23
|
+
options = options.merge(:references => table)
|
24
|
+
options[:on_delete] = options.delete(:dependent) if options.has_key?(:dependent)
|
25
|
+
column("#{table.to_s.singularize}_id".to_sym, :integer, options)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
metadata
CHANGED
@@ -1,33 +1,70 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.4
|
3
|
-
specification_version: 1
|
4
2
|
name: backlog
|
5
3
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.
|
7
|
-
date: 2007-11-29 00:00:00 +01:00
|
8
|
-
summary: Application to aid collecting, processing, organizing, reviewing and doing tasks.
|
9
|
-
require_paths:
|
10
|
-
- lib
|
11
|
-
email: uwe@kubosch.no
|
12
|
-
homepage: http://rubyforge.org/projects/backlog/
|
13
|
-
rubyforge_project: backlog
|
14
|
-
description: Backlog is a tool to help you collect and organize all your tasks, whether you are a single person or a small or large group. A time keeping module is also included to track time spent on the different tasks.
|
15
|
-
autorequire:
|
16
|
-
default_executable:
|
17
|
-
bindir: bin
|
18
|
-
has_rdoc: true
|
19
|
-
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
-
requirements:
|
21
|
-
- - ">"
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 0.0.0
|
24
|
-
version:
|
4
|
+
version: 0.16.0
|
25
5
|
platform: ruby
|
26
|
-
signing_key:
|
27
|
-
cert_chain:
|
28
|
-
post_install_message:
|
29
6
|
authors:
|
30
7
|
- Uwe Kubosch
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2007-12-26 00:00:00 +01:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rails
|
17
|
+
version_requirement:
|
18
|
+
version_requirements: !ruby/object:Gem::Requirement
|
19
|
+
requirements:
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.2.3
|
23
|
+
version:
|
24
|
+
- !ruby/object:Gem::Dependency
|
25
|
+
name: gruff
|
26
|
+
version_requirement:
|
27
|
+
version_requirements: !ruby/object:Gem::Requirement
|
28
|
+
requirements:
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: 0.2.8
|
32
|
+
version:
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: rmagick
|
35
|
+
version_requirement:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.15.10
|
41
|
+
version:
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: postgres
|
44
|
+
version_requirement:
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 0.7.1
|
50
|
+
version:
|
51
|
+
- !ruby/object:Gem::Dependency
|
52
|
+
name: hoe
|
53
|
+
version_requirement:
|
54
|
+
version_requirements: !ruby/object:Gem::Requirement
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: 1.3.0
|
59
|
+
version:
|
60
|
+
description: Backlog is a tool to help you collect and organize all your tasks, whether you are a single person or a small or large group. A time keeping module is also included to track time spent on the different tasks.
|
61
|
+
email: uwe@kubosch.no
|
62
|
+
executables:
|
63
|
+
- backlog
|
64
|
+
extensions: []
|
65
|
+
|
66
|
+
extra_rdoc_files: []
|
67
|
+
|
31
68
|
files:
|
32
69
|
- public
|
33
70
|
- public/dispatch.rb
|
@@ -81,6 +118,7 @@ files:
|
|
81
118
|
- public/javascripts/effects.js
|
82
119
|
- public/javascripts/prototype.js
|
83
120
|
- public/javascripts/unittest.js
|
121
|
+
- public/javascripts/ruby.js
|
84
122
|
- public/javascripts/application.js
|
85
123
|
- public/javascripts/sound.js
|
86
124
|
- public/javascripts/scriptaculous.js
|
@@ -121,6 +159,9 @@ files:
|
|
121
159
|
- public/stylesheets/user.css
|
122
160
|
- public/robots.txt
|
123
161
|
- public/404.html
|
162
|
+
- public/applets
|
163
|
+
- public/applets/bsf.jar
|
164
|
+
- public/applets/jruby.jar
|
124
165
|
- public/favicon.ico
|
125
166
|
- public/500.html
|
126
167
|
- db
|
@@ -136,6 +177,7 @@ files:
|
|
136
177
|
- db/migrate/012_add_resolution.rb
|
137
178
|
- db/migrate/020_create_task_files.rb
|
138
179
|
- db/migrate/001_create_tasks.rb
|
180
|
+
- db/migrate/025_add_simple_auditing_of_tasks.rb
|
139
181
|
- db/migrate/015_add_user_option.rb
|
140
182
|
- db/migrate/003_add_estimation_points.rb
|
141
183
|
- db/migrate/007_add_task_created_at.rb
|
@@ -308,8 +350,15 @@ files:
|
|
308
350
|
- vendor/plugins/goldspike/README
|
309
351
|
- vendor/plugins/foreign_key_migrations
|
310
352
|
- vendor/plugins/foreign_key_migrations/lib
|
353
|
+
- vendor/plugins/foreign_key_migrations/lib/foreign_key_migrations.rb
|
311
354
|
- vendor/plugins/foreign_key_migrations/lib/red_hill_consulting
|
312
|
-
- vendor/plugins/foreign_key_migrations/lib/red_hill_consulting/foreign_key_migrations
|
355
|
+
- vendor/plugins/foreign_key_migrations/lib/red_hill_consulting/foreign_key_migrations
|
356
|
+
- vendor/plugins/foreign_key_migrations/lib/red_hill_consulting/foreign_key_migrations/active_record
|
357
|
+
- vendor/plugins/foreign_key_migrations/lib/red_hill_consulting/foreign_key_migrations/active_record/base.rb
|
358
|
+
- vendor/plugins/foreign_key_migrations/lib/red_hill_consulting/foreign_key_migrations/active_record/connection_adapters
|
359
|
+
- vendor/plugins/foreign_key_migrations/lib/red_hill_consulting/foreign_key_migrations/active_record/connection_adapters/table_definition.rb
|
360
|
+
- vendor/plugins/foreign_key_migrations/lib/red_hill_consulting/foreign_key_migrations/active_record/connection_adapters/abstract_adapter.rb
|
361
|
+
- vendor/plugins/foreign_key_migrations/about.yml
|
313
362
|
- vendor/plugins/foreign_key_migrations/init.rb
|
314
363
|
- vendor/plugins/foreign_key_migrations/CHANGELOG
|
315
364
|
- vendor/plugins/foreign_key_migrations/MIT-LICENSE
|
@@ -509,63 +558,33 @@ files:
|
|
509
558
|
- app/views/periods/_link.rhtml
|
510
559
|
- app/views/periods/_burn_down_chart.rhtml
|
511
560
|
- app/views/periods/reopen_task.rjs
|
512
|
-
|
513
|
-
|
514
|
-
|
561
|
+
has_rdoc: true
|
562
|
+
homepage: http://rubyforge.org/projects/backlog/
|
563
|
+
post_install_message:
|
515
564
|
rdoc_options:
|
516
565
|
- --inline-source
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
566
|
+
require_paths:
|
567
|
+
- lib
|
568
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
569
|
+
requirements:
|
570
|
+
- - ">="
|
571
|
+
- !ruby/object:Gem::Version
|
572
|
+
version: "0"
|
573
|
+
version:
|
574
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
575
|
+
requirements:
|
576
|
+
- - ">="
|
577
|
+
- !ruby/object:Gem::Version
|
578
|
+
version: "0"
|
579
|
+
version:
|
523
580
|
requirements:
|
524
581
|
- ImageMagick or GraphicsMagick
|
525
582
|
- PostgreSQL
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
version: 1.2.3
|
535
|
-
version:
|
536
|
-
- !ruby/object:Gem::Dependency
|
537
|
-
name: gruff
|
538
|
-
version_requirement:
|
539
|
-
version_requirements: !ruby/object:Gem::Version::Requirement
|
540
|
-
requirements:
|
541
|
-
- - ">="
|
542
|
-
- !ruby/object:Gem::Version
|
543
|
-
version: 0.2.8
|
544
|
-
version:
|
545
|
-
- !ruby/object:Gem::Dependency
|
546
|
-
name: rmagick
|
547
|
-
version_requirement:
|
548
|
-
version_requirements: !ruby/object:Gem::Version::Requirement
|
549
|
-
requirements:
|
550
|
-
- - ">="
|
551
|
-
- !ruby/object:Gem::Version
|
552
|
-
version: 1.15.10
|
553
|
-
version:
|
554
|
-
- !ruby/object:Gem::Dependency
|
555
|
-
name: postgres
|
556
|
-
version_requirement:
|
557
|
-
version_requirements: !ruby/object:Gem::Version::Requirement
|
558
|
-
requirements:
|
559
|
-
- - ">="
|
560
|
-
- !ruby/object:Gem::Version
|
561
|
-
version: 0.7.1
|
562
|
-
version:
|
563
|
-
- !ruby/object:Gem::Dependency
|
564
|
-
name: hoe
|
565
|
-
version_requirement:
|
566
|
-
version_requirements: !ruby/object:Gem::Version::Requirement
|
567
|
-
requirements:
|
568
|
-
- - ">="
|
569
|
-
- !ruby/object:Gem::Version
|
570
|
-
version: 1.3.0
|
571
|
-
version:
|
583
|
+
rubyforge_project: backlog
|
584
|
+
rubygems_version: 1.0.1
|
585
|
+
signing_key:
|
586
|
+
specification_version: 2
|
587
|
+
summary: Application to aid collecting, processing, organizing, reviewing and doing tasks.
|
588
|
+
test_files:
|
589
|
+
- test/performance/test_threaded.rb
|
590
|
+
- test/test_helper.rb
|
data/vendor/plugins/foreign_key_migrations/lib/red_hill_consulting/foreign_key_migrations.rb
DELETED
@@ -1,57 +0,0 @@
|
|
1
|
-
module RedHillConsulting
|
2
|
-
module ForeignKeyMigrations
|
3
|
-
def self.references_table_name(column_name, options)
|
4
|
-
if options.has_key?(:references)
|
5
|
-
options[:references]
|
6
|
-
elsif column_name.to_s =~ /^(.*)_id$/
|
7
|
-
ActiveRecord::Base.pluralized_table_name($1)
|
8
|
-
end
|
9
|
-
end
|
10
|
-
|
11
|
-
module AbstractAdapter
|
12
|
-
def self.included(base)
|
13
|
-
base.class_eval do
|
14
|
-
alias_method :initialize_without_fk_migrations, :initialize unless method_defined?(:initialize_without_fk_migrations)
|
15
|
-
alias_method :initialize, :initialize_with_fk_migrations
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
def initialize_with_fk_migrations(*args)
|
20
|
-
initialize_without_fk_migrations(*args)
|
21
|
-
self.class.class_eval do
|
22
|
-
alias_method :add_column_without_fk_migrations, :add_column unless method_defined?(:add_column_without_fk_migrations)
|
23
|
-
alias_method :add_column, :add_column_with_fk_migrations
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
def add_column_with_fk_migrations(table_name, column_name, type, options = {})
|
28
|
-
add_column_without_fk_migrations(table_name, column_name, type, options)
|
29
|
-
references_table_name = RedHillConsulting::ForeignKeyMigrations.references_table_name(column_name, options)
|
30
|
-
add_foreign_key(table_name, column_name, references_table_name, :id, options) if references_table_name
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
module TableDefinition
|
35
|
-
def self.included(base)
|
36
|
-
base.class_eval do
|
37
|
-
alias_method :column_without_fk_migrations, :column unless method_defined?(:column_without_fk_migrations)
|
38
|
-
alias_method :column, :column_with_fk_migrations
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
def column_with_fk_migrations(name, type, options = {})
|
43
|
-
column_without_fk_migrations(name, type, options)
|
44
|
-
references_table_name = RedHillConsulting::ForeignKeyMigrations.references_table_name(name, options)
|
45
|
-
foreign_key(name, references_table_name, :id, options) if references_table_name
|
46
|
-
self
|
47
|
-
end
|
48
|
-
|
49
|
-
# Some people liked this; personally I've decided against using it but I'll keep it nonetheless
|
50
|
-
def belongs_to(table, options = {})
|
51
|
-
options = options.merge(:references => table)
|
52
|
-
options[:on_delete] = options.delete(:dependent) if options.has_key?(:dependent)
|
53
|
-
column("#{table.to_s.singularize}_id".to_sym, :integer, options)
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|