forked from scantem/redmine_rocketchat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.rb
27 lines (23 loc) · 809 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
require 'redmine'
require_dependency 'redmine_rocketchat/listener'
require_dependency 'redmine_rocketchat/mail_handler_patch'
Redmine::Plugin.register :redmine_rocketchat do
name 'Redmine Rocket.chat'
author 'Simon Cantem'
url 'https://github.com/scantem/redmine_rocketchat'
description 'Rocket.chat chat integration'
version '0.2.1'
requires_redmine :version_or_higher => '2.0.0'
settings \
:default => {
'callback_url' => 'http://example.com/callback/',
'channel' => nil,
'icon' => 'https://raw.githubusercontent.com/scantem/redmine_rocketchat/assets/icon.png',
'username' => 'redmine',
'display_watchers' => 'no',
'auto_mentions' => 'yes',
'new_include_description' => 'yes',
'updated_include_description' => 'yes'
},
:partial => 'settings/rocketchat_settings'
end