Añade plugin Redmine Git Hosting 4.0.2

This commit is contained in:
Manuel Cillero 2020-12-05 13:57:05 +01:00
parent 472cb1ea76
commit bdd66d941f
494 changed files with 36768 additions and 0 deletions

View file

@ -0,0 +1,27 @@
require 'redmine'
require 'redmine_git_hosting'
Redmine::Plugin.register :redmine_git_hosting do
name 'Redmine Git Hosting Plugin'
author 'A lot of people! A big thank to them for their contribution!'
description 'Enables Redmine to control hosting of Git repositories through Gitolite'
version '4.0.2'
url 'http://redmine-git-hosting.io/'
author_url 'settings/plugin/redmine_git_hosting/authors'
settings(partial: 'settings/redmine_git_hosting', default: RedmineGitHosting.settings)
requires_redmine version_or_higher: '4.0.3'
begin
requires_redmine_plugin :additionals, version_or_higher: '2.0.21'
rescue Redmine::PluginNotFound
raise 'Please install additionals plugin (https://github.com/alphanodes/additionals)'
end
end
# This *must stay after* Redmine::Plugin.register statement
# because it needs to access to plugin settings...
# so we need the plugin to be fully registered...
Rails.configuration.to_prepare do
require_dependency 'load_gitolite_hooks'
end