diff options
author | Go MAEDA <maeda@farend.jp> | 2019-03-17 02:04:38 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-03-17 02:04:38 +0000 |
commit | 02b4449414748ceb0198a581496d4ff7fed69386 (patch) | |
tree | 29d775dc0c50bf1ea8c4b37e8ae77700e0a283bb | |
parent | d16369b67c9dd34b007fc58f2f83cb36e6479f37 (diff) | |
download | redmine-02b4449414748ceb0198a581496d4ff7fed69386.tar.gz redmine-02b4449414748ceb0198a581496d4ff7fed69386.zip |
Enable frozen_string_literal for all files under config directory (#26561).
git-svn-id: http://svn.redmine.org/redmine/trunk@17982 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | config/application.rb | 2 | ||||
-rw-r--r-- | config/boot.rb | 2 | ||||
-rw-r--r-- | config/environment.rb | 6 | ||||
-rw-r--r-- | config/environments/test.rb | 2 | ||||
-rw-r--r-- | config/environments/test_pgsql.rb | 2 | ||||
-rw-r--r-- | config/environments/test_sqlite3.rb | 2 | ||||
-rw-r--r-- | config/initializers/00-core_plugins.rb | 2 | ||||
-rw-r--r-- | config/initializers/10-patches.rb | 2 | ||||
-rw-r--r-- | config/initializers/30-redmine.rb | 2 | ||||
-rw-r--r-- | config/initializers/backtrace_silencers.rb | 2 | ||||
-rw-r--r-- | config/routes.rb | 2 |
11 files changed, 13 insertions, 13 deletions
diff --git a/config/application.rb b/config/application.rb index d771840c2..1fb40aeb6 100644 --- a/config/application.rb +++ b/config/application.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true require File.expand_path('../boot', __FILE__) diff --git a/config/boot.rb b/config/boot.rb index 4ff7921ec..4bb97ac51 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # Set up gems listed in the Gemfile. ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) diff --git a/config/environment.rb b/config/environment.rb index f55721cb0..52cdf1628 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # Load the Rails application require File.expand_path('../application', __FILE__) @@ -6,8 +6,8 @@ require File.expand_path('../application', __FILE__) # Make sure there's no plugin in vendor/plugin before starting vendor_plugins_dir = File.join(Rails.root, "vendor", "plugins") if Dir.glob(File.join(vendor_plugins_dir, "*")).any? - $stderr.puts "Plugins in vendor/plugins (#{vendor_plugins_dir}) are no longer allowed. " + - "Please, put your Redmine plugins in the `plugins` directory at the root of your " + + $stderr.puts "Plugins in vendor/plugins (#{vendor_plugins_dir}) are no longer allowed. " \ + "Please, put your Redmine plugins in the `plugins` directory at the root of your " \ "Redmine directory (#{File.join(Rails.root, "plugins")})" exit 1 end diff --git a/config/environments/test.rb b/config/environments/test.rb index ae06c36c6..acce67526 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb diff --git a/config/environments/test_pgsql.rb b/config/environments/test_pgsql.rb index a270fcada..ff997f762 100644 --- a/config/environments/test_pgsql.rb +++ b/config/environments/test_pgsql.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # Same as test.rb instance_eval File.read(File.join(File.dirname(__FILE__), 'test.rb')) diff --git a/config/environments/test_sqlite3.rb b/config/environments/test_sqlite3.rb index a270fcada..ff997f762 100644 --- a/config/environments/test_sqlite3.rb +++ b/config/environments/test_sqlite3.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # Same as test.rb instance_eval File.read(File.join(File.dirname(__FILE__), 'test.rb')) diff --git a/config/initializers/00-core_plugins.rb b/config/initializers/00-core_plugins.rb index a4387344d..3bcd00be6 100644 --- a/config/initializers/00-core_plugins.rb +++ b/config/initializers/00-core_plugins.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # Loads the core plugins located in lib/plugins Dir.glob(File.join(Rails.root, "lib/plugins/*")).sort.each do |directory| diff --git a/config/initializers/10-patches.rb b/config/initializers/10-patches.rb index a01d38de6..3b2bd3a80 100644 --- a/config/initializers/10-patches.rb +++ b/config/initializers/10-patches.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true require 'active_record' diff --git a/config/initializers/30-redmine.rb b/config/initializers/30-redmine.rb index 1b8ee83f1..2b96ebdde 100644 --- a/config/initializers/30-redmine.rb +++ b/config/initializers/30-redmine.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true I18n.backend = Redmine::I18n::Backend.new # Forces I18n to load available locales from the backend diff --git a/config/initializers/backtrace_silencers.rb b/config/initializers/backtrace_silencers.rb index cbb20dd7a..92da832eb 100644 --- a/config/initializers/backtrace_silencers.rb +++ b/config/initializers/backtrace_silencers.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # Be sure to restart your server when you modify this file. diff --git a/config/routes.rb b/config/routes.rb index c3926de61..27cf36a4b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # Redmine - project management software # Copyright (C) 2006-2017 Jean-Philippe Lang |