forked from ande3577/redmine-graphs-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit.rb
30 lines (26 loc) · 1003 Bytes
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
require 'redmine'
Rails.configuration.to_prepare do
require_dependency 'target_version_graph_hook'
require_dependency 'issues_sidebar_graph_hook'
end
Redmine::Plugin.register :redmine_graphs do
name 'Redmine Graphs plugin'
author 'Brad Beattie'
description 'This plugin provides instances of Redmine with additional graphs.'
version '0.3.0'
author_url 'https://github.com/bradbeattie'
url 'http://github.com/luismaia/redmine-graphs-plugin'
requires_redmine :version_or_higher => '2.5.1' # required redmine version
# include dummy variable to prevent hash from being removed if all faluse
default_settings = {
:open_aging_issues_enabled => 1,
:total_issues_over_time_enabled => 1,
:total_bugs_over_time_enabled => 1,
:total_vs_closed_issues_enabled => 1,
:burndown_enabled => 1,
:burnup_enabled => 1,
:bug_tracker => 1,
:dummy_value => 'dummy value'
}
settings(:default => default_settings, :partial => 'settings/graphs')
end