diff options
author | Go MAEDA <maeda@farend.jp> | 2019-03-21 06:06:53 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-03-21 06:06:53 +0000 |
commit | 3b55f654077dfb7b4764eafa52579a83bd22152f (patch) | |
tree | f54f71952c75bfc3077d8f8cf1b2fc556eaaadf2 /lib | |
parent | b900ae6107666deb601753eaa7abab0b299c006d (diff) | |
download | redmine-3b55f654077dfb7b4764eafa52579a83bd22152f.tar.gz redmine-3b55f654077dfb7b4764eafa52579a83bd22152f.zip |
Remove frozen_string_literal magic comment from files which are not used when running the application or tests (#23630).
git-svn-id: http://svn.redmine.org/redmine/trunk@17997 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
32 files changed, 0 insertions, 64 deletions
diff --git a/lib/generators/redmine_plugin/redmine_plugin_generator.rb b/lib/generators/redmine_plugin/redmine_plugin_generator.rb index 7a5d81dd2..ce2e2aa42 100644 --- a/lib/generators/redmine_plugin/redmine_plugin_generator.rb +++ b/lib/generators/redmine_plugin/redmine_plugin_generator.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: false - class RedminePluginGenerator < Rails::Generators::NamedBase source_root File.expand_path("../templates", __FILE__) diff --git a/lib/generators/redmine_plugin/templates/routes.rb b/lib/generators/redmine_plugin/templates/routes.rb index eb4cf1c74..1803173d0 100644 --- a/lib/generators/redmine_plugin/templates/routes.rb +++ b/lib/generators/redmine_plugin/templates/routes.rb @@ -1,4 +1,2 @@ -# frozen_string_literal: false - # Plugin's routes # See: http://guides.rubyonrails.org/routing.html diff --git a/lib/generators/redmine_plugin_controller/redmine_plugin_controller_generator.rb b/lib/generators/redmine_plugin_controller/redmine_plugin_controller_generator.rb index f228f1759..16a820ebf 100644 --- a/lib/generators/redmine_plugin_controller/redmine_plugin_controller_generator.rb +++ b/lib/generators/redmine_plugin_controller/redmine_plugin_controller_generator.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: false - class RedminePluginControllerGenerator < Rails::Generators::NamedBase source_root File.expand_path("../templates", __FILE__) argument :controller, :type => :string diff --git a/lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb b/lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb index 7e96d49c5..f26f8779c 100644 --- a/lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb +++ b/lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: false - class RedminePluginModelGenerator < Rails::Generators::NamedBase source_root File.expand_path("../templates", __FILE__) diff --git a/lib/plugins/gravatar/Rakefile b/lib/plugins/gravatar/Rakefile index a501a1c25..e67e5e7f9 100644 --- a/lib/plugins/gravatar/Rakefile +++ b/lib/plugins/gravatar/Rakefile @@ -1,5 +1,3 @@ -# frozen_string_literal: false - require 'spec/rake/spectask' require 'rake/rdoctask' diff --git a/lib/plugins/gravatar/spec/gravatar_spec.rb b/lib/plugins/gravatar/spec/gravatar_spec.rb index 365d42dbf..6f78d79ad 100644 --- a/lib/plugins/gravatar/spec/gravatar_spec.rb +++ b/lib/plugins/gravatar/spec/gravatar_spec.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: false - require 'rubygems' require 'erb' # to get "h" require 'active_support' # to get "returning" diff --git a/lib/plugins/open_id_authentication/Rakefile b/lib/plugins/open_id_authentication/Rakefile index 3af3cd1f6..31074b856 100644 --- a/lib/plugins/open_id_authentication/Rakefile +++ b/lib/plugins/open_id_authentication/Rakefile @@ -1,5 +1,3 @@ -# frozen_string_literal: false - require 'rake' require 'rake/testtask' require 'rake/rdoctask' diff --git a/lib/plugins/open_id_authentication/generators/open_id_authentication_tables/open_id_authentication_tables_generator.rb b/lib/plugins/open_id_authentication/generators/open_id_authentication_tables/open_id_authentication_tables_generator.rb index 7c2ea2547..6f78afc71 100644 --- a/lib/plugins/open_id_authentication/generators/open_id_authentication_tables/open_id_authentication_tables_generator.rb +++ b/lib/plugins/open_id_authentication/generators/open_id_authentication_tables/open_id_authentication_tables_generator.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: false - class OpenIdAuthenticationTablesGenerator < Rails::Generator::NamedBase def initialize(runtime_args, runtime_options = {}) super diff --git a/lib/plugins/open_id_authentication/generators/upgrade_open_id_authentication_tables/upgrade_open_id_authentication_tables_generator.rb b/lib/plugins/open_id_authentication/generators/upgrade_open_id_authentication_tables/upgrade_open_id_authentication_tables_generator.rb index e23257938..02fddd7fd 100644 --- a/lib/plugins/open_id_authentication/generators/upgrade_open_id_authentication_tables/upgrade_open_id_authentication_tables_generator.rb +++ b/lib/plugins/open_id_authentication/generators/upgrade_open_id_authentication_tables/upgrade_open_id_authentication_tables_generator.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: false - class UpgradeOpenIdAuthenticationTablesGenerator < Rails::Generator::NamedBase def initialize(runtime_args, runtime_options = {}) super diff --git a/lib/plugins/open_id_authentication/lib/open_id_authentication.rb b/lib/plugins/open_id_authentication/lib/open_id_authentication.rb index 711a38d43..538f0cfdb 100644 --- a/lib/plugins/open_id_authentication/lib/open_id_authentication.rb +++ b/lib/plugins/open_id_authentication/lib/open_id_authentication.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: false - require 'uri' require 'openid' require 'rack/openid' diff --git a/lib/plugins/open_id_authentication/lib/tasks/open_id_authentication_tasks.rake b/lib/plugins/open_id_authentication/lib/tasks/open_id_authentication_tasks.rake index 424852bd7..c71434a50 100644 --- a/lib/plugins/open_id_authentication/lib/tasks/open_id_authentication_tasks.rake +++ b/lib/plugins/open_id_authentication/lib/tasks/open_id_authentication_tasks.rake @@ -1,5 +1,3 @@ -# frozen_string_literal: false - namespace :open_id_authentication do namespace :db do desc "Creates authentication tables for use with OpenIdAuthentication" diff --git a/lib/plugins/open_id_authentication/test/mem_cache_store_test.rb b/lib/plugins/open_id_authentication/test/mem_cache_store_test.rb index ef5e424a3..18a943979 100644 --- a/lib/plugins/open_id_authentication/test/mem_cache_store_test.rb +++ b/lib/plugins/open_id_authentication/test/mem_cache_store_test.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: false - require File.dirname(__FILE__) + '/test_helper' require File.dirname(__FILE__) + '/../lib/open_id_authentication/mem_cache_store' diff --git a/lib/plugins/open_id_authentication/test/normalize_test.rb b/lib/plugins/open_id_authentication/test/normalize_test.rb index 2968fc9c2..635d3abc9 100644 --- a/lib/plugins/open_id_authentication/test/normalize_test.rb +++ b/lib/plugins/open_id_authentication/test/normalize_test.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: false - require File.dirname(__FILE__) + '/test_helper' class NormalizeTest < Test::Unit::TestCase diff --git a/lib/plugins/open_id_authentication/test/open_id_authentication_test.rb b/lib/plugins/open_id_authentication/test/open_id_authentication_test.rb index 147ebe7ae..ddcc17b96 100644 --- a/lib/plugins/open_id_authentication/test/open_id_authentication_test.rb +++ b/lib/plugins/open_id_authentication/test/open_id_authentication_test.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: false - require File.dirname(__FILE__) + '/test_helper' class OpenIdAuthenticationTest < Test::Unit::TestCase diff --git a/lib/plugins/open_id_authentication/test/status_test.rb b/lib/plugins/open_id_authentication/test/status_test.rb index 9bf39056e..bf7bfb382 100644 --- a/lib/plugins/open_id_authentication/test/status_test.rb +++ b/lib/plugins/open_id_authentication/test/status_test.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: false - require File.dirname(__FILE__) + '/test_helper' class StatusTest < Test::Unit::TestCase diff --git a/lib/plugins/open_id_authentication/test/test_helper.rb b/lib/plugins/open_id_authentication/test/test_helper.rb index 9af4077a5..cb76ceddc 100644 --- a/lib/plugins/open_id_authentication/test/test_helper.rb +++ b/lib/plugins/open_id_authentication/test/test_helper.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: false - require 'test/unit' require 'rubygems' diff --git a/lib/tasks/ci.rake b/lib/tasks/ci.rake index 3b0c0bde0..8c7f8b68f 100644 --- a/lib/tasks/ci.rake +++ b/lib/tasks/ci.rake @@ -1,5 +1,3 @@ -# frozen_string_literal: false - desc "Run the Continuous Integration tests for Redmine" task :ci do # RAILS_ENV and ENV[] can diverge so force them both to test diff --git a/lib/tasks/ciphering.rake b/lib/tasks/ciphering.rake index bebf308dc..2b1183352 100644 --- a/lib/tasks/ciphering.rake +++ b/lib/tasks/ciphering.rake @@ -1,5 +1,3 @@ -# frozen_string_literal: false - # Redmine - project management software # Copyright (C) 2006-2017 Jean-Philippe Lang # diff --git a/lib/tasks/deprecated.rake b/lib/tasks/deprecated.rake index 1cce6d344..c62579d0a 100644 --- a/lib/tasks/deprecated.rake +++ b/lib/tasks/deprecated.rake @@ -1,5 +1,3 @@ -# frozen_string_literal: false - def deprecated_task(name, new_name) task name=>new_name do $stderr.puts "\nNote: The rake task #{name} has been deprecated, please use the replacement version #{new_name}" diff --git a/lib/tasks/email.rake b/lib/tasks/email.rake index 8d03b2913..25d7d667b 100644 --- a/lib/tasks/email.rake +++ b/lib/tasks/email.rake @@ -1,5 +1,3 @@ -# frozen_string_literal: false - # Redmine - project management software # Copyright (C) 2006-2017 Jean-Philippe Lang # diff --git a/lib/tasks/extract_fixtures.rake b/lib/tasks/extract_fixtures.rake index 1c7f9342c..65f529315 100644 --- a/lib/tasks/extract_fixtures.rake +++ b/lib/tasks/extract_fixtures.rake @@ -1,5 +1,3 @@ -# frozen_string_literal: false - desc 'Create YAML test fixtures from data in an existing database. Defaults to development database. Set RAILS_ENV to override.' diff --git a/lib/tasks/initializers.rake b/lib/tasks/initializers.rake index 5b1e0b30c..6da60c147 100644 --- a/lib/tasks/initializers.rake +++ b/lib/tasks/initializers.rake @@ -1,5 +1,3 @@ -# frozen_string_literal: false - desc 'Generates a secret token for the application.' file 'config/initializers/secret_token.rb' do diff --git a/lib/tasks/load_default_data.rake b/lib/tasks/load_default_data.rake index 51949c2b4..bcfff7c3b 100644 --- a/lib/tasks/load_default_data.rake +++ b/lib/tasks/load_default_data.rake @@ -1,5 +1,3 @@ -# frozen_string_literal: false - desc 'Load Redmine default configuration data. Language is chosen interactively or by setting REDMINE_LANG environment variable.' namespace :redmine do diff --git a/lib/tasks/locales.rake b/lib/tasks/locales.rake index dbf7bcf45..028a25154 100644 --- a/lib/tasks/locales.rake +++ b/lib/tasks/locales.rake @@ -1,5 +1,3 @@ -# frozen_string_literal: false - desc 'Updates and checks locales against en.yml' task :locales do %w(locales:update locales:check_interpolation).collect do |task| diff --git a/lib/tasks/metrics.rake b/lib/tasks/metrics.rake index de7fd3aa3..214cc996e 100644 --- a/lib/tasks/metrics.rake +++ b/lib/tasks/metrics.rake @@ -1,5 +1,3 @@ -# frozen_string_literal: false - begin require 'metric_fu' rescue LoadError diff --git a/lib/tasks/migrate_from_mantis.rake b/lib/tasks/migrate_from_mantis.rake index f169d9ea3..61c42325d 100644 --- a/lib/tasks/migrate_from_mantis.rake +++ b/lib/tasks/migrate_from_mantis.rake @@ -1,5 +1,3 @@ -# frozen_string_literal: false - # Redmine - project management software # Copyright (C) 2006-2017 Jean-Philippe Lang # diff --git a/lib/tasks/migrate_from_trac.rake b/lib/tasks/migrate_from_trac.rake index a1d457550..eb0d81e0a 100644 --- a/lib/tasks/migrate_from_trac.rake +++ b/lib/tasks/migrate_from_trac.rake @@ -1,5 +1,3 @@ -# frozen_string_literal: false - # Redmine - project management software # Copyright (C) 2006-2017 Jean-Philippe Lang # diff --git a/lib/tasks/permissions.rake b/lib/tasks/permissions.rake index 038b2a731..3ed53f1f1 100644 --- a/lib/tasks/permissions.rake +++ b/lib/tasks/permissions.rake @@ -1,5 +1,3 @@ -# frozen_string_literal: false - namespace :redmine do desc "List all permissions and the actions registered with them" task :permissions => :environment do diff --git a/lib/tasks/redmine.rake b/lib/tasks/redmine.rake index 0fd09ceeb..f26200114 100644 --- a/lib/tasks/redmine.rake +++ b/lib/tasks/redmine.rake @@ -1,5 +1,3 @@ -# frozen_string_literal: false - # Redmine - project management software # Copyright (C) 2006-2017 Jean-Philippe Lang # diff --git a/lib/tasks/reminder.rake b/lib/tasks/reminder.rake index 0b1ae2c8e..56122ca7b 100644 --- a/lib/tasks/reminder.rake +++ b/lib/tasks/reminder.rake @@ -1,5 +1,3 @@ -# frozen_string_literal: false - # Redmine - project management software # Copyright (C) 2006-2017 Jean-Philippe Lang # diff --git a/lib/tasks/testing.rake b/lib/tasks/testing.rake index ea809c731..33bedd4e0 100644 --- a/lib/tasks/testing.rake +++ b/lib/tasks/testing.rake @@ -1,5 +1,3 @@ -# frozen_string_literal: false - namespace :test do desc 'Measures test coverage' task :coverage do diff --git a/lib/tasks/yardoc.rake b/lib/tasks/yardoc.rake index 23ba7ea1c..60d3a644a 100644 --- a/lib/tasks/yardoc.rake +++ b/lib/tasks/yardoc.rake @@ -1,5 +1,3 @@ -# frozen_string_literal: false - begin require 'yard' |