Project

General

Profile

Download (1.42 KB) Statistics
| Branch: | Tag: | Revision:

root / init.rb @ 5:c6c8ebe48b9d

1
# Redmine Commit Relation Editor plugin for Redmine
2
# Copyright (C) 2011  Haruyuki Iida
3
#
4
# This program is free software; you can redistribute it and/or
5
# modify it under the terms of the GNU General Public License
6
# as published by the Free Software Foundation; either version 2
7
# of the License, or (at your option) any later version.
8
#
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
# GNU General Public License for more details.
13
#
14
# You should have received a copy of the GNU General Public License
15
# along with this program; if not, write to the Free Software
16
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17

    
18
require 'redmine'
19
require 'commit_relation_editor_application_hooks'
20

    
21
Redmine::Plugin.register :redmine_commit_relation_editor do
22
  name 'Redmine Commit Relation Editor plugin'
23
  author 'Haruyuki Iida'
24
  description 'This is a plugin for Redmine lets you can edit relation between issues and commits.'
25
  version '0.0.2'
26
  url 'http://www.r-labs.org/projects/relation-editor'
27
  author_url 'http://about.me/haru_iida'
28
  requires_redmine :version_or_higher => '1.2.0'
29
  
30
  project_module :commit_relation_editor do
31
    permission :edit_commit_relation, {:commit_relation_editor => [:new, :destroy]}, :require => :member
32
  end
33

    
34
end
(5-5/5)