Commit bf13e7ab authored by maeda's avatar maeda

Remove frozen_string_literal magic comment from files which are not used when...

Remove frozen_string_literal magic comment from files which are not used when running the application or tests (#23630).


git-svn-id: https://svn.redmine.org/redmine/trunk@17997 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent e479d7f9
# frozen_string_literal: false
source 'https://rubygems.org' source 'https://rubygems.org'
gem "bundler", ">= 1.5.0" gem "bundler", ">= 1.5.0"
......
#!/usr/bin/env rake #!/usr/bin/env rake
# frozen_string_literal: false
# Add your own tasks in files placed in lib/tasks ending in .rake, # Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: false
ENV["RAILS_ENV"] ||= "production" ENV["RAILS_ENV"] ||= "production"
require File.expand_path(File.dirname(__FILE__) + "/../config/environment") require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: false
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
load Gem.bin_path('bundler', 'bundle') load Gem.bin_path('bundler', 'bundle')
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: false
require 'optparse' require 'optparse'
require 'ostruct' require 'ostruct'
require 'date' require 'date'
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: false
APP_PATH = File.expand_path('../../config/application', __FILE__) APP_PATH = File.expand_path('../../config/application', __FILE__)
require_relative '../config/boot' require_relative '../config/boot'
require 'rails/commands' require 'rails/commands'
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: false
require_relative '../config/boot' require_relative '../config/boot'
require 'rake' require 'rake'
Rake.application.run Rake.application.run
# frozen_string_literal: false
# This file is used by Rack-based servers to start the application. # This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__) require ::File.expand_path('../config/environment', __FILE__)
......
# frozen_string_literal: false
# Redmine - project management software # Redmine - project management software
# Copyright (C) 2006 Jean-Philippe Lang # Copyright (C) 2006 Jean-Philippe Lang
# #
......
# frozen_string_literal: false
class IssueMove < ActiveRecord::Migration[4.2] class IssueMove < ActiveRecord::Migration[4.2]
# model removed # model removed
class Permission < ActiveRecord::Base; end class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class IssueAddNote < ActiveRecord::Migration[4.2] class IssueAddNote < ActiveRecord::Migration[4.2]
# model removed # model removed
class Permission < ActiveRecord::Base; end class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class ExportPdf < ActiveRecord::Migration[4.2] class ExportPdf < ActiveRecord::Migration[4.2]
# model removed # model removed
class Permission < ActiveRecord::Base; end class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class IssueStartDate < ActiveRecord::Migration[4.2] class IssueStartDate < ActiveRecord::Migration[4.2]
def self.up def self.up
add_column :issues, :start_date, :date add_column :issues, :start_date, :date
......
# frozen_string_literal: false
class CalendarAndActivity < ActiveRecord::Migration[4.2] class CalendarAndActivity < ActiveRecord::Migration[4.2]
# model removed # model removed
class Permission < ActiveRecord::Base; end class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class CreateJournals < ActiveRecord::Migration[4.2] class CreateJournals < ActiveRecord::Migration[4.2]
# model removed, but needed for data migration # model removed, but needed for data migration
......
# frozen_string_literal: false
class CreateUserPreferences < ActiveRecord::Migration[4.2] class CreateUserPreferences < ActiveRecord::Migration[4.2]
def self.up def self.up
create_table :user_preferences do |t| create_table :user_preferences do |t|
......
# frozen_string_literal: false
class AddHideMailPref < ActiveRecord::Migration[4.2] class AddHideMailPref < ActiveRecord::Migration[4.2]
def self.up def self.up
add_column :user_preferences, :hide_mail, :boolean, :default => false add_column :user_preferences, :hide_mail, :boolean, :default => false
......
# frozen_string_literal: false
class CreateComments < ActiveRecord::Migration[4.2] class CreateComments < ActiveRecord::Migration[4.2]
def self.up def self.up
create_table :comments do |t| create_table :comments do |t|
......
# frozen_string_literal: false
class AddNewsCommentsCount < ActiveRecord::Migration[4.2] class AddNewsCommentsCount < ActiveRecord::Migration[4.2]
def self.up def self.up
add_column :news, :comments_count, :integer, :default => 0, :null => false add_column :news, :comments_count, :integer, :default => 0, :null => false
......
# frozen_string_literal: false
class AddCommentsPermissions < ActiveRecord::Migration[4.2] class AddCommentsPermissions < ActiveRecord::Migration[4.2]
# model removed # model removed
class Permission < ActiveRecord::Base; end class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class CreateQueries < ActiveRecord::Migration[4.2] class CreateQueries < ActiveRecord::Migration[4.2]
def self.up def self.up
create_table :queries, :force => true do |t| create_table :queries, :force => true do |t|
......
# frozen_string_literal: false
class AddQueriesPermissions < ActiveRecord::Migration[4.2] class AddQueriesPermissions < ActiveRecord::Migration[4.2]
# model removed # model removed
class Permission < ActiveRecord::Base; end class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class CreateRepositories < ActiveRecord::Migration[4.2] class CreateRepositories < ActiveRecord::Migration[4.2]
def self.up def self.up
create_table :repositories, :force => true do |t| create_table :repositories, :force => true do |t|
......
# frozen_string_literal: false
class AddRepositoriesPermissions < ActiveRecord::Migration[4.2] class AddRepositoriesPermissions < ActiveRecord::Migration[4.2]
# model removed # model removed
class Permission < ActiveRecord::Base; end class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class CreateSettings < ActiveRecord::Migration[4.2] class CreateSettings < ActiveRecord::Migration[4.2]
def self.up def self.up
create_table :settings, :force => true do |t| create_table :settings, :force => true do |t|
......
# frozen_string_literal: false
class SetDocAndFilesNotifications < ActiveRecord::Migration[4.2] class SetDocAndFilesNotifications < ActiveRecord::Migration[4.2]
# model removed # model removed
class Permission < ActiveRecord::Base; end class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class AddIssueStatusPosition < ActiveRecord::Migration[4.2] class AddIssueStatusPosition < ActiveRecord::Migration[4.2]
def self.up def self.up
add_column :issue_statuses, :position, :integer, :default => 1 add_column :issue_statuses, :position, :integer, :default => 1
......
# frozen_string_literal: false
class AddRolePosition < ActiveRecord::Migration[4.2] class AddRolePosition < ActiveRecord::Migration[4.2]
def self.up def self.up
add_column :roles, :position, :integer, :default => 1 add_column :roles, :position, :integer, :default => 1
......
# frozen_string_literal: false
class AddTrackerPosition < ActiveRecord::Migration[4.2] class AddTrackerPosition < ActiveRecord::Migration[4.2]
def self.up def self.up
add_column :trackers, :position, :integer, :default => 1 add_column :trackers, :position, :integer, :default => 1
......
# frozen_string_literal: false
class SerializePossiblesValues < ActiveRecord::Migration[4.2] class SerializePossiblesValues < ActiveRecord::Migration[4.2]
def self.up def self.up
CustomField.all.each do |field| CustomField.all.each do |field|
......
# frozen_string_literal: false
class AddTrackerIsInRoadmap < ActiveRecord::Migration[4.2] class AddTrackerIsInRoadmap < ActiveRecord::Migration[4.2]
def self.up def self.up
add_column :trackers, :is_in_roadmap, :boolean, :default => true, :null => false add_column :trackers, :is_in_roadmap, :boolean, :default => true, :null => false
......
# frozen_string_literal: false
class AddRoadmapPermission < ActiveRecord::Migration[4.2] class AddRoadmapPermission < ActiveRecord::Migration[4.2]
# model removed # model removed
class Permission < ActiveRecord::Base; end class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class AddSearchPermission < ActiveRecord::Migration[4.2] class AddSearchPermission < ActiveRecord::Migration[4.2]
# model removed # model removed
class Permission < ActiveRecord::Base; end class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class AddRepositoryLoginAndPassword < ActiveRecord::Migration[4.2] class AddRepositoryLoginAndPassword < ActiveRecord::Migration[4.2]
def self.up def self.up
add_column :repositories, :login, :string, :limit => 60, :default => "" add_column :repositories, :login, :string, :limit => 60, :default => ""
......
# frozen_string_literal: false
class CreateWikis < ActiveRecord::Migration[4.2] class CreateWikis < ActiveRecord::Migration[4.2]
def self.up def self.up
create_table :wikis do |t| create_table :wikis do |t|
......
# frozen_string_literal: false
class CreateWikiPages < ActiveRecord::Migration[4.2] class CreateWikiPages < ActiveRecord::Migration[4.2]
def self.up def self.up
create_table :wiki_pages do |t| create_table :wiki_pages do |t|
......
# frozen_string_literal: false
class CreateWikiContents < ActiveRecord::Migration[4.2] class CreateWikiContents < ActiveRecord::Migration[4.2]
def self.up def self.up
create_table :wiki_contents do |t| create_table :wiki_contents do |t|
......
# frozen_string_literal: false
class AddProjectsFeedsPermissions < ActiveRecord::Migration[4.2] class AddProjectsFeedsPermissions < ActiveRecord::Migration[4.2]
# model removed # model removed
class Permission < ActiveRecord::Base; end class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class AddRepositoryRootUrl < ActiveRecord::Migration[4.2] class AddRepositoryRootUrl < ActiveRecord::Migration[4.2]
def self.up def self.up
add_column :repositories, :root_url, :string, :limit => 255, :default => "" add_column :repositories, :root_url, :string, :limit => 255, :default => ""
......
# frozen_string_literal: false
class CreateTimeEntries < ActiveRecord::Migration[4.2] class CreateTimeEntries < ActiveRecord::Migration[4.2]
def self.up def self.up
create_table :time_entries do |t| create_table :time_entries do |t|
......
# frozen_string_literal: false
class AddTimelogPermissions < ActiveRecord::Migration[4.2] class AddTimelogPermissions < ActiveRecord::Migration[4.2]
# model removed # model removed
class Permission < ActiveRecord::Base; end class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class CreateChangesets < ActiveRecord::Migration[4.2] class CreateChangesets < ActiveRecord::Migration[4.2]
def self.up def self.up
create_table :changesets do |t| create_table :changesets do |t|
......
# frozen_string_literal: false
class CreateChanges < ActiveRecord::Migration[4.2] class CreateChanges < ActiveRecord::Migration[4.2]
def self.up def self.up
create_table :changes do |t| create_table :changes do |t|
......
# frozen_string_literal: false
class AddChangesetCommitDate < ActiveRecord::Migration[4.2] class AddChangesetCommitDate < ActiveRecord::Migration[4.2]
def self.up def self.up
add_column :changesets, :commit_date, :date add_column :changesets, :commit_date, :date
......
# frozen_string_literal: false
class AddProjectIdentifier < ActiveRecord::Migration[4.2] class AddProjectIdentifier < ActiveRecord::Migration[4.2]
def self.up def self.up
add_column :projects, :identifier, :string, :limit => 20 add_column :projects, :identifier, :string, :limit => 20
......
# frozen_string_literal: false
class AddCustomFieldIsFilter < ActiveRecord::Migration[4.2] class AddCustomFieldIsFilter < ActiveRecord::Migration[4.2]
def self.up def self.up
add_column :custom_fields, :is_filter, :boolean, :null => false, :default => false add_column :custom_fields, :is_filter, :boolean, :null => false, :default => false
......
# frozen_string_literal: false
class CreateWatchers < ActiveRecord::Migration[4.2] class CreateWatchers < ActiveRecord::Migration[4.2]
def self.up def self.up
create_table :watchers do |t| create_table :watchers do |t|
......
# frozen_string_literal: false
class CreateChangesetsIssues < ActiveRecord::Migration[4.2] class CreateChangesetsIssues < ActiveRecord::Migration[4.2]
def self.up def self.up
create_table :changesets_issues, :id => false do |t| create_table :changesets_issues, :id => false do |t|
......
# frozen_string_literal: false
class RenameCommentToComments < ActiveRecord::Migration[4.2] class RenameCommentToComments < ActiveRecord::Migration[4.2]
def self.up def self.up
rename_column(:comments, :comment, :comments) if ActiveRecord::Base.connection.columns(Comment.table_name).detect{|c| c.name == "comment"} rename_column(:comments, :comment, :comments) if ActiveRecord::Base.connection.columns(Comment.table_name).detect{|c| c.name == "comment"}
......
# frozen_string_literal: false
class CreateIssueRelations < ActiveRecord::Migration[4.2] class CreateIssueRelations < ActiveRecord::Migration[4.2]
def self.up def self.up
create_table :issue_relations do |t| create_table :issue_relations do |t|
......
# frozen_string_literal: false
class AddRelationsPermissions < ActiveRecord::Migration[4.2] class AddRelationsPermissions < ActiveRecord::Migration[4.2]
# model removed # model removed
class Permission < ActiveRecord::Base; end class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class SetLanguageLengthToFive < ActiveRecord::Migration[4.2] class SetLanguageLengthToFive < ActiveRecord::Migration[4.2]
def self.up def self.up
change_column :users, :language, :string, :limit => 5, :default => "" change_column :users, :language, :string, :limit => 5, :default => ""
......
# frozen_string_literal: false
class CreateBoards < ActiveRecord::Migration[4.2] class CreateBoards < ActiveRecord::Migration[4.2]
def self.up def self.up
create_table :boards do |t| create_table :boards do |t|
......
# frozen_string_literal: false
class CreateMessages < ActiveRecord::Migration[4.2] class CreateMessages < ActiveRecord::Migration[4.2]
def self.up def self.up
create_table :messages do |t| create_table :messages do |t|
......
# frozen_string_literal: false
class AddBoardsPermissions < ActiveRecord::Migration[4.2] class AddBoardsPermissions < ActiveRecord::Migration[4.2]
# model removed # model removed
class Permission < ActiveRecord::Base; end class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class AllowNullVersionEffectiveDate < ActiveRecord::Migration[4.2] class AllowNullVersionEffectiveDate < ActiveRecord::Migration[4.2]
def self.up def self.up
change_column :versions, :effective_date, :date, :default => nil, :null => true change_column :versions, :effective_date, :date, :default => nil, :null => true
......
# frozen_string_literal: false
class AddWikiDestroyPagePermission < ActiveRecord::Migration[4.2] class AddWikiDestroyPagePermission < ActiveRecord::Migration[4.2]
# model removed # model removed
class Permission < ActiveRecord::Base; end class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class AddWikiAttachmentsPermissions < ActiveRecord::Migration[4.2] class AddWikiAttachmentsPermissions < ActiveRecord::Migration[4.2]
# model removed # model removed
class Permission < ActiveRecord::Base; end class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class AddProjectStatus < ActiveRecord::Migration[4.2] class AddProjectStatus < ActiveRecord::Migration[4.2]
def self.up def self.up
add_column :projects, :status, :integer, :default => 1, :null => false add_column :projects, :status, :integer, :default => 1, :null => false
......
# frozen_string_literal: false
class AddChangesRevision < ActiveRecord::Migration[4.2] class AddChangesRevision < ActiveRecord::Migration[4.2]
def self.up def self.up
add_column :changes, :revision, :string add_column :changes, :revision, :string
......
# frozen_string_literal: false
class AddChangesBranch < ActiveRecord::Migration[4.2] class AddChangesBranch < ActiveRecord::Migration[4.2]
def self.up def self.up
add_column :changes, :branch, :string add_column :changes, :branch, :string
......