2019-03-16 09:37:35 +00:00
|
|
|
# frozen_string_literal: true
|
2019-03-15 01:32:57 +00:00
|
|
|
|
2012-12-02 18:06:06 +00:00
|
|
|
# Redmine - project management software
|
2023-01-01 06:19:35 +00:00
|
|
|
# Copyright (C) 2006-2023 Jean-Philippe Lang
|
2012-12-02 18:06:06 +00:00
|
|
|
#
|
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
|
#
|
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
#
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
|
|
|
|
|
require 'redmine/core_ext'
|
|
|
|
|
|
2012-12-02 19:15:52 +00:00
|
|
|
begin
|
2019-08-14 02:40:56 +00:00
|
|
|
require 'mini_magick' unless Object.const_defined?(:MiniMagick)
|
2012-12-02 19:15:52 +00:00
|
|
|
rescue LoadError
|
2019-08-14 02:40:56 +00:00
|
|
|
# MiniMagick is not available
|
2012-12-02 19:15:52 +00:00
|
|
|
end
|
2013-12-23 17:07:51 +00:00
|
|
|
begin
|
2013-12-26 03:52:25 +00:00
|
|
|
require 'redcarpet' unless Object.const_defined?(:Redcarpet)
|
2013-12-23 17:07:51 +00:00
|
|
|
rescue LoadError
|
|
|
|
|
# Redcarpet is not available
|
|
|
|
|
end
|
2021-08-11 21:40:56 +00:00
|
|
|
begin
|
|
|
|
|
require 'commonmarker' unless Object.const_defined?(:CommonMarker)
|
|
|
|
|
rescue LoadError
|
|
|
|
|
# CommonMarker is not available
|
|
|
|
|
end
|
2012-12-02 19:15:52 +00:00
|
|
|
|
2021-11-17 20:45:39 +00:00
|
|
|
module Redmine
|
2008-02-12 17:58:46 +00:00
|
|
|
end
|