redmine_version_priorities 0.1.0
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/COPYRIGHT.txt +18 -0
- data/CREDITS.txt +4 -0
- data/GPL.txt +339 -0
- data/README.rdoc +34 -0
- data/Rakefile +39 -0
- data/VERSION +1 -0
- data/app/controllers/version_priorities_controller.rb +25 -0
- data/app/views/version_priorities/_prioritized_versions.html.erb +9 -0
- data/app/views/version_priorities/_version.html.erb +8 -0
- data/app/views/version_priorities/show.html.erb +30 -0
- data/assets/javascripts/jquery-1.4.2.min.js +154 -0
- data/assets/javascripts/jquery-ui-1.8.1.custom.min.js +241 -0
- data/assets/javascripts/jquery.ajax_queue.js +59 -0
- data/assets/javascripts/redmine_version_priorities.js +63 -0
- data/assets/stylesheets/redmine_version_priorities.css +17 -0
- data/config/locales/en.yml +5 -0
- data/config/routes.rb +3 -0
- data/init.rb +38 -0
- data/lang/en.yml +2 -0
- data/lib/redmine_version_priorities/patches/issue_patch.rb +27 -0
- data/lib/redmine_version_priorities/patches/query_patch.rb +37 -0
- data/lib/redmine_version_priorities/patches/version_patch.rb +50 -0
- data/test/functional/version_priorities_controller.rb +4 -0
- data/test/integration/edit_version_priorities_test.rb +79 -0
- data/test/integration/view_version_priorities_test.rb +90 -0
- data/test/test_helper.rb +52 -0
- data/test/unit/lib/redmine_version_priorities/patches/issue_patch_test.rb +39 -0
- data/test/unit/lib/redmine_version_priorities/patches/query_patch_test.rb +17 -0
- data/test/unit/lib/redmine_version_priorities/patches/version_patch_test.rb +17 -0
- metadata +96 -0
@@ -0,0 +1,39 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../../../../test_helper'
|
2
|
+
|
3
|
+
class RedmineVersionPriorities::Patches::IssueTest < ActionController::TestCase
|
4
|
+
|
5
|
+
context "Issue#fixed_version_priority" do
|
6
|
+
setup do
|
7
|
+
@project = Project.generate!
|
8
|
+
@issue = Issue.generate_for_project!(@project)
|
9
|
+
end
|
10
|
+
|
11
|
+
context "without a fixed version" do
|
12
|
+
should "return none" do
|
13
|
+
assert @issue.fixed_version.nil?
|
14
|
+
assert_equal 'none', @issue.fixed_version_priority
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
context "with a fixed version with no priority" do
|
19
|
+
should "return none" do
|
20
|
+
@issue.update_attribute(:fixed_version, Version.generate!)
|
21
|
+
assert @issue.fixed_version.present?
|
22
|
+
|
23
|
+
assert_equal 'none', @issue.fixed_version_priority
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
context "with a fixed version with a priority" do
|
28
|
+
should "return the fixed version" do
|
29
|
+
version = Version.generate!(:priority => 4)
|
30
|
+
@issue.update_attribute(:fixed_version, version)
|
31
|
+
assert @issue.fixed_version.present?
|
32
|
+
|
33
|
+
assert_equal version, @issue.fixed_version_priority
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../../../../test_helper'
|
2
|
+
|
3
|
+
class RedmineVersionPriorities::Patches::QueryTest < ActionController::TestCase
|
4
|
+
|
5
|
+
context "Query" do
|
6
|
+
should 'have a fixed version priority column' do
|
7
|
+
assert Query.available_columns.collect(&:name).include?(:fixed_version_priority), "Fixed version priority column not found"
|
8
|
+
end
|
9
|
+
|
10
|
+
should 'allow sorting on the fixed version priority column' do
|
11
|
+
fixed_version_priority_column = Query.available_columns.select {|column| column.name == :fixed_version_priority}.first
|
12
|
+
|
13
|
+
assert fixed_version_priority_column, "Fixed version priority column not found"
|
14
|
+
assert fixed_version_priority_column.sortable?, "Column not sortable"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../../../../test_helper'
|
2
|
+
|
3
|
+
class RedmineVersionPriorities::Patches::VersionTest < ActionController::TestCase
|
4
|
+
|
5
|
+
context "Version" do
|
6
|
+
context "#position" do
|
7
|
+
should 'use acts_as_list' do
|
8
|
+
assert Version.new.acts_as_list_class
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
should "not add items to the list by default" do
|
13
|
+
@version = Version.generate!
|
14
|
+
assert_equal nil, @version.priority
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
metadata
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: redmine_version_priorities
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
version: 0.1.0
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- Eric Davis
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2010-05-06 00:00:00 -07:00
|
18
|
+
default_executable:
|
19
|
+
dependencies: []
|
20
|
+
|
21
|
+
description: A Redmine plugin to prioritize versions to help users make a decision on which issues need to be worked on next.
|
22
|
+
email: edavis@littlestreamsoftware.com
|
23
|
+
executables: []
|
24
|
+
|
25
|
+
extensions: []
|
26
|
+
|
27
|
+
extra_rdoc_files:
|
28
|
+
- README.rdoc
|
29
|
+
files:
|
30
|
+
- COPYRIGHT.txt
|
31
|
+
- CREDITS.txt
|
32
|
+
- GPL.txt
|
33
|
+
- README.rdoc
|
34
|
+
- Rakefile
|
35
|
+
- VERSION
|
36
|
+
- app/controllers/version_priorities_controller.rb
|
37
|
+
- app/views/version_priorities/_prioritized_versions.html.erb
|
38
|
+
- app/views/version_priorities/_version.html.erb
|
39
|
+
- app/views/version_priorities/show.html.erb
|
40
|
+
- assets/javascripts/jquery-1.4.2.min.js
|
41
|
+
- assets/javascripts/jquery-ui-1.8.1.custom.min.js
|
42
|
+
- assets/javascripts/jquery.ajax_queue.js
|
43
|
+
- assets/javascripts/redmine_version_priorities.js
|
44
|
+
- assets/stylesheets/redmine_version_priorities.css
|
45
|
+
- config/locales/en.yml
|
46
|
+
- config/routes.rb
|
47
|
+
- init.rb
|
48
|
+
- lang/en.yml
|
49
|
+
- lib/redmine_version_priorities/patches/issue_patch.rb
|
50
|
+
- lib/redmine_version_priorities/patches/query_patch.rb
|
51
|
+
- lib/redmine_version_priorities/patches/version_patch.rb
|
52
|
+
- test/functional/version_priorities_controller.rb
|
53
|
+
- test/integration/edit_version_priorities_test.rb
|
54
|
+
- test/integration/view_version_priorities_test.rb
|
55
|
+
- test/test_helper.rb
|
56
|
+
- test/unit/lib/redmine_version_priorities/patches/issue_patch_test.rb
|
57
|
+
- test/unit/lib/redmine_version_priorities/patches/query_patch_test.rb
|
58
|
+
- test/unit/lib/redmine_version_priorities/patches/version_patch_test.rb
|
59
|
+
has_rdoc: true
|
60
|
+
homepage: https://projects.littlestreamsoftware.com/projects/version-priorities
|
61
|
+
licenses: []
|
62
|
+
|
63
|
+
post_install_message:
|
64
|
+
rdoc_options:
|
65
|
+
- --charset=UTF-8
|
66
|
+
require_paths:
|
67
|
+
- lib
|
68
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
69
|
+
requirements:
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
segments:
|
73
|
+
- 0
|
74
|
+
version: "0"
|
75
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
segments:
|
80
|
+
- 0
|
81
|
+
version: "0"
|
82
|
+
requirements: []
|
83
|
+
|
84
|
+
rubyforge_project: TODO
|
85
|
+
rubygems_version: 1.3.6
|
86
|
+
signing_key:
|
87
|
+
specification_version: 3
|
88
|
+
summary: A Redmine plugin that allows versions to be prioritized.
|
89
|
+
test_files:
|
90
|
+
- test/test_helper.rb
|
91
|
+
- test/integration/view_version_priorities_test.rb
|
92
|
+
- test/integration/edit_version_priorities_test.rb
|
93
|
+
- test/unit/lib/redmine_version_priorities/patches/version_patch_test.rb
|
94
|
+
- test/unit/lib/redmine_version_priorities/patches/issue_patch_test.rb
|
95
|
+
- test/unit/lib/redmine_version_priorities/patches/query_patch_test.rb
|
96
|
+
- test/functional/version_priorities_controller.rb
|