do not set FrozenStringLiteral before Redmine itself use it
This commit is contained in:
parent
43eb4b2f9e
commit
ff3b7f52c9
@ -43,6 +43,9 @@ Performance/ChainArrayAllocation:
|
||||
Style/AutoResourceCleanup:
|
||||
Enabled: true
|
||||
|
||||
Style/FrozenStringLiteralComment:
|
||||
Enabled: false
|
||||
|
||||
Style/Documentation:
|
||||
Enabled: false
|
||||
|
||||
|
2
Gemfile
2
Gemfile
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
gem 'deface', '1.3.2'
|
||||
gem 'gemoji', '~> 3.0.0'
|
||||
gem 'invisible_captcha'
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AdditionalsAssignToMeController < ApplicationController
|
||||
before_action :find_issue
|
||||
helper :additionals_issues
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AdditionalsChangeStatusController < ApplicationController
|
||||
before_action :find_issue
|
||||
helper :additionals_issues
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AdditionalsMacrosController < ApplicationController
|
||||
before_action :require_login
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
module AdditionalsFontawesomeHelper
|
||||
def fontawesome_info_url
|
||||
s = []
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
module AdditionalsIssuesHelper
|
||||
def issue_author_options_for_select(project, issue = nil)
|
||||
authors = project.users.sorted
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
module AdditionalsMenuHelper
|
||||
def additionals_top_menu_setup
|
||||
return unless User.current.try(:hrm_user_type_id).nil?
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
module AdditionalsQueriesHelper
|
||||
def additionals_query_session_key(object_type)
|
||||
"#{object_type}_query".to_sym
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
module AdditionalsSettingsHelper
|
||||
def additionals_settings_tabs
|
||||
tabs = [{ name: 'general', partial: 'additionals/settings/general', label: :label_general },
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
require 'digest/md5'
|
||||
|
||||
module AdditionalsTagHelper
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
module AdditionalsWikiPdfHelper
|
||||
include Redmine::Export::PDF
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AdditionalsFontAwesome
|
||||
include Redmine::I18n
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
class AdditionalsImport < Import
|
||||
class_attribute :import_class
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AdditionalsMacro
|
||||
def self.all(options = {})
|
||||
all = Redmine::WikiFormatting::Macros.available_macros
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
module AdditionalsQuery
|
||||
def self.included(base)
|
||||
base.send :include, InstanceMethods
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
class AdditionalsTag
|
||||
TAG_TABLE_NAME = RedmineCrm::Tag.table_name if defined? RedmineCrm
|
||||
TAGGING_TABLE_NAME = RedmineCrm::Tagging.table_name if defined? RedmineCrm
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
Deface::Override.new virtual_path: 'account/register',
|
||||
name: 'add-invisble-captcha',
|
||||
insert_top: 'div.box',
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
Deface::Override.new virtual_path: 'admin/info',
|
||||
name: 'add-system_info',
|
||||
insert_after: 'table.list',
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
Deface::Override.new virtual_path: 'issues/_edit',
|
||||
name: 'edit-issue-permission',
|
||||
replace: 'erb[silent]:contains("User.current.allowed_to?(:log_time, @project)")',
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
Deface::Override.new virtual_path: 'issues/_action_menu',
|
||||
name: 'show-issue-log-time',
|
||||
replace: 'erb[loud]:contains("User.current.allowed_to?(:log_time, @project)")',
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
Deface::Override.new virtual_path: 'layouts/base',
|
||||
name: 'add-body-header',
|
||||
insert_before: 'div#wrapper',
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
Deface::Override.new virtual_path: 'roles/_form',
|
||||
name: 'roles-form-hide',
|
||||
insert_before: 'p.manage_members_shown',
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
Deface::Override.new virtual_path: 'users/show',
|
||||
name: 'user-show-info-hook',
|
||||
insert_top: 'div.splitcontentleft ul:first-child',
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
Deface::Override.new virtual_path: 'welcome/index',
|
||||
name: 'add-welcome-bottom-content',
|
||||
insert_after: 'div.splitcontentright',
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
Deface::Override.new virtual_path: 'wiki/show',
|
||||
name: 'addto-wiki-show',
|
||||
insert_before: 'div.contextual',
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
Deface::Override.new virtual_path: 'wiki/_sidebar',
|
||||
name: 'addto-wiki-sidebar',
|
||||
insert_after: 'ul',
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# Plugin's routes
|
||||
# See: http://guides.rubyonrails.org/routing.html
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddAutowatchInvolvedIssueToUser < Rails.version < '5.2' ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :user_preferences, :autowatch_involved_issue, :boolean, default: true, null: false
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddHideToRoles < Rails.version < '5.2' ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :roles, :hide, :boolean, default: false, null: false
|
||||
|
2
init.rb
2
init.rb
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
raise "\n\033[31madditionals requires ruby 2.3 or newer. Please update your ruby version.\033[0m" if RUBY_VERSION < '2.3'
|
||||
|
||||
require_dependency 'additionals'
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
module Additionals
|
||||
MAX_CUSTOM_MENU_ITEMS = 5
|
||||
SELECT2_INIT_ENTRIES = 20
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
# Formater
|
||||
module Additionals
|
||||
module Formatter
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
module Additionals
|
||||
module Helpers
|
||||
def additionals_list_title(options)
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
module Additionals
|
||||
class AdditionalsHookListener < Redmine::Hook::ViewListener
|
||||
include IssuesHelper
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
module Additionals
|
||||
module Patches
|
||||
module AccessControlPatch
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
module Additionals
|
||||
module Patches
|
||||
module AccountControllerPatch
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
module Additionals
|
||||
module Patches
|
||||
module FormatterMarkdownPatch
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
module Additionals
|
||||
module Patches
|
||||
module FormatterTextilePatch
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
module Additionals
|
||||
module Patches
|
||||
module FormattingHelperPatch
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
module Additionals
|
||||
module Patches
|
||||
module IssuePatch
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
module Additionals
|
||||
module Patches
|
||||
module IssuePriorityPatch
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
module Additionals
|
||||
module Patches
|
||||
module PrincipalPatch
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
module Additionals
|
||||
module Patches
|
||||
module ProjectPatch
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
require_dependency 'query'
|
||||
|
||||
module Additionals
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
module Additionals
|
||||
module Patches
|
||||
module RolePatch
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
module Additionals
|
||||
module Patches
|
||||
module TimeEntryPatch
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
module Additionals
|
||||
module Patches
|
||||
module UserPatch
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
module Additionals
|
||||
module Patches
|
||||
module UserPreferencePatch
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
require_dependency 'wiki_controller'
|
||||
|
||||
module Additionals
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
require_dependency 'wiki'
|
||||
|
||||
module Additionals
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
# Calendar wiki macros
|
||||
module Additionals
|
||||
module WikiMacros
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
# CryptoCompare wiki macros
|
||||
# see https://www.cryptocompare.com/dev/widget/wizard/
|
||||
module Additionals
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
# Date wiki macros
|
||||
module Additionals
|
||||
module WikiMacros
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
# Font Awesome wiki macros
|
||||
module Additionals
|
||||
module WikiMacros
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
# Gist wiki macros
|
||||
module Additionals
|
||||
module WikiMacros
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
# Gist wiki macros
|
||||
module Additionals
|
||||
module WikiMacros
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
# Group wiki macros
|
||||
module Additionals
|
||||
module WikiMacros
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
# Slideshare wiki macros
|
||||
module Additionals
|
||||
module WikiMacros
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
# Issue wiki macros
|
||||
module Additionals
|
||||
module WikiMacros
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
# Last_updated_at wiki macros
|
||||
module Additionals
|
||||
module WikiMacros
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
# Last_updated_by wiki macros
|
||||
module Additionals
|
||||
module WikiMacros
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
# Member wiki macros
|
||||
module Additionals
|
||||
module WikiMacros
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
# meteoblue wiki macros
|
||||
module Additionals
|
||||
module WikiMacros
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
# Issue wiki macros
|
||||
module Additionals
|
||||
module WikiMacros
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
# Project wiki macros
|
||||
module Additionals
|
||||
module WikiMacros
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
# Recently updated wiki macros
|
||||
module Additionals
|
||||
module WikiMacros
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
# Reddit wiki macros
|
||||
module Additionals
|
||||
module WikiMacros
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
# Redmine.org issue wiki macros
|
||||
module Additionals
|
||||
module WikiMacros
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
# Redmine.org issue wiki macros
|
||||
module Additionals
|
||||
module WikiMacros
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
# Slideshare wiki macros
|
||||
module Additionals
|
||||
module WikiMacros
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
# Tradingview wiki macros
|
||||
# see https://www.tradingview.com/widget/
|
||||
module Additionals
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
# Twitter wiki macros
|
||||
module Additionals
|
||||
module WikiMacros
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
# User wiki macros
|
||||
module Additionals
|
||||
module WikiMacros
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
# Vimeo wiki macros
|
||||
module Additionals
|
||||
module WikiMacros
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
# Youtube wiki macros
|
||||
module Additionals
|
||||
module WikiMacros
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: false
|
||||
|
||||
namespace :redmine do
|
||||
namespace :additionals do
|
||||
desc <<-DESCRIPTION
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require File.expand_path('../../test_helper', __FILE__)
|
||||
|
||||
class AccountControllerTest < Additionals::ControllerTest
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require File.expand_path('../../test_helper', __FILE__)
|
||||
|
||||
class AdditionalsAssignToMeControllerTest < Additionals::ControllerTest
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require File.expand_path('../../test_helper', __FILE__)
|
||||
|
||||
class AdditionalsChangeStatusControllerTest < Additionals::ControllerTest
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require File.expand_path('../../test_helper', __FILE__)
|
||||
|
||||
class AdditionalsMacrosControllerTest < Additionals::ControllerTest
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require File.expand_path('../../test_helper', __FILE__)
|
||||
|
||||
class IssuesControllerTest < Additionals::ControllerTest
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require File.expand_path('../../test_helper', __FILE__)
|
||||
|
||||
class ProjectsControllerTest < Additionals::ControllerTest
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require File.expand_path('../../test_helper', __FILE__)
|
||||
|
||||
class UsersControllerTest < Additionals::ControllerTest
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require File.expand_path('../../test_helper', __FILE__)
|
||||
|
||||
class WelcomeControllerTest < Additionals::ControllerTest
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require File.expand_path('../../test_helper', __FILE__)
|
||||
|
||||
class WikiControllerTest < Additionals::ControllerTest
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Additionals
|
||||
module GlobalTestHelper
|
||||
def with_additionals_settings(settings, &_block)
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
|
||||
module ApiTest
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require File.expand_path('../../test_helper', __FILE__)
|
||||
|
||||
class CommonViewsTest < Redmine::IntegrationTest
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require File.expand_path('../../test_helper', __FILE__)
|
||||
|
||||
class JavascriptLibraryTest < Redmine::IntegrationTest
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require File.expand_path('../../test_helper', __FILE__)
|
||||
|
||||
class RoutingTest < Redmine::RoutingTest
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# for travis debugging
|
||||
# config.logger = Logger.new(STDOUT)
|
||||
# config.logger.level = Logger::INFO
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
$VERBOSE = nil
|
||||
|
||||
unless ENV['SKIP_COVERAGE']
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require File.expand_path('../../test_helper', __FILE__)
|
||||
|
||||
class AdditionalsFontAwesomeTest < Additionals::TestCase
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require File.expand_path('../../test_helper', __FILE__)
|
||||
|
||||
class AdditionalsMacroTest < Additionals::TestCase
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
|
||||
class GlobalHelperTest < ActionView::TestCase
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require File.expand_path('../../test_helper', __FILE__)
|
||||
|
||||
class I18nTest < Additionals::TestCase
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require File.expand_path('../../test_helper', __FILE__)
|
||||
|
||||
class IssueTest < Additionals::TestCase
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require File.expand_path('../../test_helper', __FILE__)
|
||||
|
||||
class QueryTest < Additionals::TestCase
|
||||
|
@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require File.expand_path('../../test_helper', __FILE__)
|
||||
|
||||
class RoleTest < Additionals::TestCase
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user