forked from yeah/redmine_hoptoad_server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.rb
22 lines (18 loc) · 769 Bytes
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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'
hidden(true) if respond_to?(:hidden) # hide plugin in Planio
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
RedmineHoptoadServer::Patches::IssuePatch.apply
end