-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.rb
30 lines (22 loc) · 1.02 KB
/
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
Redmine::Plugin.register :cosmosys_req_poris do
name 'Cosmosys PORIS plugin'
author 'Txinto Vaz'
description 'A plugin to activate PORIS features of the cosmosys_req plugin.'
version '0.0.1'
url 'http://cosmobots.eu'
author_url 'http://cosmobots.eu'
requires_redmine_plugin :cosmosys, :version_or_higher => '0.0.2'
requires_redmine_plugin :cosmosys_git, :version_or_higher => '0.0.2'
requires_redmine_plugin :cosmosys_req, :version_or_higher => '0.2.0'
permission :csys_poris_menu, :csys_poris => :menu
permission :csys_poris_porispanel, :csys_poris => :porispanel
permission :csys_poris_porispanel_commit, :csys_poris => :porispanel_commit
menu :project_menu, :csys_poris, {:controller => 'csys_poris', :action => 'menu' }, :caption => 'PORIS', :after => :activity, :param => :id
require 'csys_poris'
require 'PORIS'
# Patches to the Redmine core.
require 'csys_poris_project_patch'
require 'csys_poris_issue_patch'
Mime::Type.register 'text/poris', :poris
Mime::Type.register 'text/ruby', :rb
end