forked from edavis10/redmine_hoptoad_server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.rb
21 lines (17 loc) · 722 Bytes
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Redmine::Plugin.register :redmine_hoptoad_server do
name 'Redmine Hoptoad Server plugin'
author 'Jan Schulz-Hofen, Planio GmbH'
author_url 'https://plan.io/team/#jan'
description 'Turns Redmine into an Airbrake/Hoptoad compatible server, i.e. an API provider which can be used with the Airbrake gem or the hoptoad_notifier plugin.'
url 'http://github.com/yeah/redmine_hoptoad_server'
version '1.0.0'
requires_redmine :version_or_higher => '2.4.0'
end
begin
require 'nokogiri'
rescue LoadError
Rails.logger.error "Nokogiri gem not found, parsing hoptoad API v2 requests will be sub-optimal"
end
Rails.configuration.to_prepare do
require_dependency 'redmine_hoptoad_server/patches/issue_patch'
end