diff --git a/lib/redmine_dmsf.rb b/lib/redmine_dmsf.rb index 4ce45298..802b9594 100644 --- a/lib/redmine_dmsf.rb +++ b/lib/redmine_dmsf.rb @@ -23,10 +23,30 @@ DMSF_MAX_NOTIFICATION_RECEIVERS_INFO = 10 # DMSF libraries -require 'redmine_dmsf/patches' # plugin patches -require 'redmine_dmsf/webdav' # DAV4Rack implementation -require 'redmine_dmsf/errors' # Exceptions +# Plugin's patches +require 'redmine_dmsf/patches/custom_fields_helper_patch' +require 'redmine_dmsf/patches/acts_as_customizable' +require 'redmine_dmsf/patches/project_patch' +require 'redmine_dmsf/patches/project_tabs_extended' + +# Load up classes that make up our WebDAV solution ontop of DAV4Rack +require 'redmine_dmsf/webdav/no_parse' +require 'redmine_dmsf/webdav/base_resource' +require 'redmine_dmsf/webdav/controller' +require 'redmine_dmsf/webdav/dmsf_resource' +require 'redmine_dmsf/webdav/download' +require 'redmine_dmsf/webdav/index_resource' +require 'redmine_dmsf/webdav/project_resource' +require 'redmine_dmsf/webdav/resource_proxy' + +# Exceptions +require 'redmine_dmsf/errors/dmsf_access_error.rb' +require 'redmine_dmsf/errors/dmsf_content_error.rb' +require 'redmine_dmsf/errors/dmsf_email_max_file_error.rb' +require 'redmine_dmsf/errors/dmsf_file_not_found_error.rb' +require 'redmine_dmsf/errors/dmsf_lock_error.rb' +require 'redmine_dmsf/errors/dmsf_zip_max_file_error.rb' # Hooks require 'redmine_dmsf/hooks/view_projects_form_hook' diff --git a/lib/redmine_dmsf/errors.rb b/lib/redmine_dmsf/errors.rb deleted file mode 100644 index 97fcdece..00000000 --- a/lib/redmine_dmsf/errors.rb +++ /dev/null @@ -1,28 +0,0 @@ -# encoding: utf-8 -# -# Redmine plugin for Document Management System "Features" -# -# Copyright (C) 2011 Vít Jonáš -# Copyright (C) 2012 Daniel Munn -# Copyright (C) 2011-16 Karel Pičman -# -# 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_dmsf/errors/dmsf_access_error.rb' -require 'redmine_dmsf/errors/dmsf_content_error.rb' -require 'redmine_dmsf/errors/dmsf_email_max_file_error.rb' -require 'redmine_dmsf/errors/dmsf_file_not_found_error.rb' -require 'redmine_dmsf/errors/dmsf_lock_error.rb' -require 'redmine_dmsf/errors/dmsf_zip_max_file_error.rb' \ No newline at end of file diff --git a/lib/redmine_dmsf/patches.rb b/lib/redmine_dmsf/patches.rb deleted file mode 100644 index db91a040..00000000 --- a/lib/redmine_dmsf/patches.rb +++ /dev/null @@ -1,24 +0,0 @@ -# Redmine plugin for Document Management System "Features" -# -# Copyright (C) 2011 Vít Jonáš -# Copyright (C) 2012 Daniel Munn -# Copyright (C) 2011-14 Karel Picman -# -# 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_dmsf/patches/custom_fields_helper_patch' -require 'redmine_dmsf/patches/acts_as_customizable' -require 'redmine_dmsf/patches/project_patch' -require 'redmine_dmsf/patches/project_tabs_extended' \ No newline at end of file diff --git a/lib/redmine_dmsf/webdav.rb b/lib/redmine_dmsf/webdav.rb deleted file mode 100644 index 6e2a836d..00000000 --- a/lib/redmine_dmsf/webdav.rb +++ /dev/null @@ -1,28 +0,0 @@ -# Redmine plugin for Document Management System "Features" -# -# Copyright (C) 2012 Daniel Munn -# -# 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. - -# Load up classes that make up our webdav solution ontop -# of DAV4Rack -require 'redmine_dmsf/webdav/no_parse' -require 'redmine_dmsf/webdav/base_resource' -require 'redmine_dmsf/webdav/controller' -require 'redmine_dmsf/webdav/dmsf_resource' -require 'redmine_dmsf/webdav/download' -require 'redmine_dmsf/webdav/index_resource' -require 'redmine_dmsf/webdav/project_resource' -require 'redmine_dmsf/webdav/resource_proxy'