redmine-roadmap_extended_issues 0.0.1

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ef2da1c55ad8869e24ceb5cb7f85e588ae1ebd04
4
+ data.tar.gz: e26576d7b69280c96f629080c4b39e4326cd881d
5
+ SHA512:
6
+ metadata.gz: 88d88350637415d40902edb0de667cb44cf10240ab455ccb59967ba4f4c99f0f3091c70de22077dae4cf60d9fdd032090adfcb877f83afbcb4ab5011985424bd
7
+ data.tar.gz: 781da2fcfeaa77e853064ebec1ef7042bc166fa10f043f6641779e3f931e3bd80c18132f95c344100f63b131a51dd376a16abe0e6e07d076dec57d47f4e1794f
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ Gemfile.lock
2
+ pkg
data/.rubocop.yml ADDED
@@ -0,0 +1,8 @@
1
+ StringLiterals:
2
+ EnforcedStyle: "double_quotes"
3
+
4
+ Style/FileName:
5
+ Enabled: false
6
+
7
+ Documentation:
8
+ Enabled: false
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in candy_check.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015 Jonas Thiel
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,31 @@
1
+ # redmine-roadmap_extended_issues
2
+
3
+ Adds more fields to the issues in Redmine's roadmap
4
+
5
+ ## Installation
6
+
7
+ Ensure you have a `Gemfile.local` file in your Redmine installation. Add to your `Gemfile.local`:
8
+
9
+ ```ruby
10
+ gem "redmine-roadmap_extended_issues"
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ ```
16
+ $ bundle
17
+ ```
18
+
19
+ Restart the Redmine application
20
+
21
+ ## Usage
22
+
23
+ No further steps needed
24
+
25
+ ## Contributing
26
+
27
+ 1. Fork it ( https://github.com/[my-github-username]/redmine-roadmap_extended_issues/fork )
28
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
29
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
30
+ 4. Push to the branch (`git push origin my-new-feature`)
31
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env rake
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rubocop/rake_task"
5
+
6
+ RuboCop::RakeTask.new
7
+
8
+ task default: [:rubocop]
@@ -0,0 +1,7 @@
1
+ require "roadmap_extended_issues/version"
2
+ require "roadmap_extended_issues/infos"
3
+ require "roadmap_extended_issues/engine"
4
+
5
+ # Redmine plugin to add more fields to the issues in the roadmap
6
+ module RoadmapExtendedIssues
7
+ end
@@ -0,0 +1,10 @@
1
+ require "roadmap_extended_issues/redmine_plugin"
2
+
3
+ module RoadmapExtendedIssues
4
+ # Simple engine to support the Redmine plugin
5
+ class Engine < ::Rails::Engine
6
+ config.to_prepare do
7
+ RedminePlugin.new
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,22 @@
1
+ # Add a new view hook into Redmine's template
2
+ MoreViewHooks.add(
3
+ :view_versions_index_issues_table_issue,
4
+ virtual_path: "versions/index",
5
+ insert_after: "table.related-issues td.subject",
6
+ context: "issue: issue"
7
+ )
8
+
9
+ module RoadmapExtendedIssues
10
+ class Hooks < Redmine::Hook::ViewListener
11
+ def view_versions_index_issues_table_issue(context)
12
+ render_extended_issue(context[:issue])
13
+ end
14
+
15
+ private
16
+
17
+ def render_extended_issue(issue)
18
+ return "" unless issue
19
+ content_tag :td, h(issue.status.name)
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,11 @@
1
+ module RoadmapExtendedIssues
2
+ module Infos
3
+ NAME = "redmine-roadmap_extended_issues"
4
+ DESCRIPTION = "Adds more fields to the issues in Redmine's roadmap"
5
+ LICENSE = "MIT"
6
+ URL = "https://github.com/neopoly/redmine-roadmap_extended_issues"
7
+ AUTHORS = {
8
+ "Jonas Thiel" => "jt@neopoly.de"
9
+ }.freeze
10
+ end
11
+ end
@@ -0,0 +1,29 @@
1
+ module RoadmapExtendedIssues
2
+ # Registers this gems a Redmine plugin and applies the needed patches
3
+ class RedminePlugin
4
+ include RoadmapExtendedIssues::Infos
5
+
6
+ def initialize
7
+ register!
8
+ boot!
9
+ end
10
+
11
+ private
12
+
13
+ def register!
14
+ Redmine::Plugin.register :roadmap_extended_issues do
15
+ name NAME
16
+ author AUTHORS.keys.join(", ")
17
+ description DESCRIPTION
18
+ version VERSION
19
+ url URL
20
+ author_url URL
21
+ directory Engine.root
22
+ end
23
+ end
24
+
25
+ def boot!
26
+ require "roadmap_extended_issues/hooks"
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,3 @@
1
+ module RoadmapExtendedIssues
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,28 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "roadmap_extended_issues/version"
5
+ require "roadmap_extended_issues/infos"
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = "redmine-roadmap_extended_issues"
9
+ spec.version = RoadmapExtendedIssues::VERSION
10
+ spec.authors = RoadmapExtendedIssues::Infos::AUTHORS.keys
11
+ spec.email = RoadmapExtendedIssues::Infos::AUTHORS.values
12
+ spec.summary = RoadmapExtendedIssues::Infos::DESCRIPTION
13
+ spec.description = RoadmapExtendedIssues::Infos::DESCRIPTION
14
+ spec.homepage = RoadmapExtendedIssues::Infos::URL
15
+ spec.license = RoadmapExtendedIssues::Infos::LICENSE
16
+
17
+ spec.files = `git ls-files -z`.split("\x0")
18
+ spec.executables = spec.files.grep(/^bin\//) { |f| File.basename(f) }
19
+ spec.test_files = spec.files.grep(/^(test|spec|features)\//)
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_dependency "rails", "~> 4.2.0"
23
+ spec.add_dependency "redmine-more_view_hooks"
24
+
25
+ spec.add_development_dependency "bundler", "~> 1.7"
26
+ spec.add_development_dependency "rake", "~> 10.0"
27
+ spec.add_development_dependency "rubocop"
28
+ end
metadata ADDED
@@ -0,0 +1,128 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: redmine-roadmap_extended_issues
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Jonas Thiel
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-03-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 4.2.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 4.2.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: redmine-more_view_hooks
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.7'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.7'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: Adds more fields to the issues in Redmine's roadmap
84
+ email:
85
+ - jt@neopoly.de
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".gitignore"
91
+ - ".rubocop.yml"
92
+ - Gemfile
93
+ - LICENSE.txt
94
+ - README.md
95
+ - Rakefile
96
+ - lib/redmine-roadmap_extended_issues.rb
97
+ - lib/roadmap_extended_issues/engine.rb
98
+ - lib/roadmap_extended_issues/hooks.rb
99
+ - lib/roadmap_extended_issues/infos.rb
100
+ - lib/roadmap_extended_issues/redmine_plugin.rb
101
+ - lib/roadmap_extended_issues/version.rb
102
+ - redmine-roadmap_extended_issues.gemspec
103
+ homepage: https://github.com/neopoly/redmine-roadmap_extended_issues
104
+ licenses:
105
+ - MIT
106
+ metadata: {}
107
+ post_install_message:
108
+ rdoc_options: []
109
+ require_paths:
110
+ - lib
111
+ required_ruby_version: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
116
+ required_rubygems_version: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ requirements: []
122
+ rubyforge_project:
123
+ rubygems_version: 2.4.6
124
+ signing_key:
125
+ specification_version: 4
126
+ summary: Adds more fields to the issues in Redmine's roadmap
127
+ test_files: []
128
+ has_rdoc: