summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-03-15 01:32:57 +0000
committerGo MAEDA <maeda@farend.jp>2019-03-15 01:32:57 +0000
commit5861160ffc350a97b5ff41465fbd7e03008853e4 (patch)
treead260a758b0c88c42debd6b567d6cd382d27ae42
parent9f4a4be01a48eb2cbb30f8786aee3b9fec830f19 (diff)
downloadredmine-5861160ffc350a97b5ff41465fbd7e03008853e4.tar.gz
redmine-5861160ffc350a97b5ff41465fbd7e03008853e4.zip
Add "frozen_string_literal: false" for all files (#26561).
This will be changed to true in the future. git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--Gemfile2
-rw-r--r--Rakefile2
-rw-r--r--app/controllers/account_controller.rb2
-rw-r--r--app/controllers/activities_controller.rb2
-rw-r--r--app/controllers/admin_controller.rb2
-rw-r--r--app/controllers/application_controller.rb2
-rw-r--r--app/controllers/attachments_controller.rb2
-rw-r--r--app/controllers/auth_sources_controller.rb2
-rw-r--r--app/controllers/auto_completes_controller.rb2
-rw-r--r--app/controllers/boards_controller.rb2
-rw-r--r--app/controllers/calendars_controller.rb2
-rw-r--r--app/controllers/comments_controller.rb2
-rw-r--r--app/controllers/context_menus_controller.rb2
-rw-r--r--app/controllers/custom_field_enumerations_controller.rb2
-rw-r--r--app/controllers/custom_fields_controller.rb2
-rw-r--r--app/controllers/documents_controller.rb2
-rw-r--r--app/controllers/email_addresses_controller.rb2
-rw-r--r--app/controllers/enumerations_controller.rb2
-rw-r--r--app/controllers/files_controller.rb2
-rw-r--r--app/controllers/gantts_controller.rb2
-rw-r--r--app/controllers/groups_controller.rb2
-rw-r--r--app/controllers/imports_controller.rb2
-rw-r--r--app/controllers/issue_categories_controller.rb2
-rw-r--r--app/controllers/issue_relations_controller.rb2
-rw-r--r--app/controllers/issue_statuses_controller.rb2
-rw-r--r--app/controllers/issues_controller.rb2
-rw-r--r--app/controllers/journals_controller.rb2
-rw-r--r--app/controllers/mail_handler_controller.rb2
-rw-r--r--app/controllers/members_controller.rb2
-rw-r--r--app/controllers/messages_controller.rb2
-rw-r--r--app/controllers/my_controller.rb2
-rw-r--r--app/controllers/news_controller.rb2
-rw-r--r--app/controllers/previews_controller.rb2
-rw-r--r--app/controllers/principal_memberships_controller.rb2
-rw-r--r--app/controllers/project_enumerations_controller.rb2
-rw-r--r--app/controllers/projects_controller.rb2
-rw-r--r--app/controllers/queries_controller.rb2
-rw-r--r--app/controllers/reports_controller.rb2
-rw-r--r--app/controllers/repositories_controller.rb2
-rw-r--r--app/controllers/roles_controller.rb2
-rw-r--r--app/controllers/search_controller.rb2
-rw-r--r--app/controllers/settings_controller.rb2
-rw-r--r--app/controllers/sys_controller.rb2
-rw-r--r--app/controllers/timelog_controller.rb2
-rw-r--r--app/controllers/trackers_controller.rb2
-rw-r--r--app/controllers/users_controller.rb2
-rw-r--r--app/controllers/versions_controller.rb2
-rw-r--r--app/controllers/watchers_controller.rb2
-rw-r--r--app/controllers/welcome_controller.rb2
-rw-r--r--app/controllers/wiki_controller.rb2
-rw-r--r--app/controllers/wikis_controller.rb2
-rw-r--r--app/controllers/workflows_controller.rb2
-rw-r--r--app/helpers/account_helper.rb2
-rw-r--r--app/helpers/activities_helper.rb2
-rw-r--r--app/helpers/admin_helper.rb2
-rw-r--r--app/helpers/application_helper.rb2
-rw-r--r--app/helpers/attachments_helper.rb2
-rw-r--r--app/helpers/auth_sources_helper.rb2
-rw-r--r--app/helpers/boards_helper.rb2
-rw-r--r--app/helpers/calendars_helper.rb2
-rw-r--r--app/helpers/context_menus_helper.rb2
-rw-r--r--app/helpers/custom_fields_helper.rb2
-rw-r--r--app/helpers/documents_helper.rb2
-rw-r--r--app/helpers/email_addresses_helper.rb2
-rw-r--r--app/helpers/enumerations_helper.rb2
-rw-r--r--app/helpers/gantt_helper.rb2
-rw-r--r--app/helpers/groups_helper.rb2
-rw-r--r--app/helpers/imports_helper.rb2
-rw-r--r--app/helpers/issue_categories_helper.rb2
-rw-r--r--app/helpers/issue_relations_helper.rb2
-rw-r--r--app/helpers/issue_statuses_helper.rb2
-rw-r--r--app/helpers/issues_helper.rb2
-rw-r--r--app/helpers/journals_helper.rb2
-rw-r--r--app/helpers/mail_handler_helper.rb2
-rw-r--r--app/helpers/members_helper.rb2
-rw-r--r--app/helpers/messages_helper.rb2
-rw-r--r--app/helpers/my_helper.rb2
-rw-r--r--app/helpers/news_helper.rb2
-rw-r--r--app/helpers/principal_memberships_helper.rb2
-rw-r--r--app/helpers/projects_helper.rb2
-rw-r--r--app/helpers/queries_helper.rb2
-rw-r--r--app/helpers/reports_helper.rb2
-rw-r--r--app/helpers/repositories_helper.rb2
-rw-r--r--app/helpers/roles_helper.rb2
-rw-r--r--app/helpers/routes_helper.rb2
-rw-r--r--app/helpers/search_helper.rb2
-rw-r--r--app/helpers/settings_helper.rb2
-rw-r--r--app/helpers/sort_helper.rb2
-rw-r--r--app/helpers/timelog_helper.rb2
-rw-r--r--app/helpers/trackers_helper.rb2
-rw-r--r--app/helpers/users_helper.rb2
-rw-r--r--app/helpers/versions_helper.rb2
-rw-r--r--app/helpers/watchers_helper.rb2
-rw-r--r--app/helpers/welcome_helper.rb2
-rw-r--r--app/helpers/wiki_helper.rb2
-rw-r--r--app/helpers/workflows_helper.rb2
-rw-r--r--app/models/attachment.rb2
-rw-r--r--app/models/auth_source.rb2
-rw-r--r--app/models/auth_source_ldap.rb2
-rw-r--r--app/models/board.rb2
-rw-r--r--app/models/change.rb2
-rw-r--r--app/models/changeset.rb2
-rw-r--r--app/models/comment.rb2
-rw-r--r--app/models/custom_field.rb2
-rw-r--r--app/models/custom_field_enumeration.rb2
-rw-r--r--app/models/custom_field_value.rb2
-rw-r--r--app/models/custom_value.rb2
-rw-r--r--app/models/document.rb2
-rw-r--r--app/models/document_category.rb2
-rw-r--r--app/models/document_category_custom_field.rb2
-rw-r--r--app/models/document_custom_field.rb2
-rw-r--r--app/models/email_address.rb2
-rw-r--r--app/models/enabled_module.rb2
-rw-r--r--app/models/enumeration.rb2
-rw-r--r--app/models/group.rb2
-rw-r--r--app/models/group_anonymous.rb2
-rw-r--r--app/models/group_builtin.rb2
-rw-r--r--app/models/group_custom_field.rb2
-rw-r--r--app/models/group_non_member.rb2
-rw-r--r--app/models/import.rb2
-rw-r--r--app/models/import_item.rb2
-rw-r--r--app/models/issue.rb2
-rw-r--r--app/models/issue_category.rb2
-rw-r--r--app/models/issue_custom_field.rb2
-rw-r--r--app/models/issue_import.rb2
-rw-r--r--app/models/issue_priority.rb2
-rw-r--r--app/models/issue_priority_custom_field.rb2
-rw-r--r--app/models/issue_query.rb2
-rw-r--r--app/models/issue_relation.rb2
-rw-r--r--app/models/issue_status.rb2
-rw-r--r--app/models/journal.rb2
-rw-r--r--app/models/journal_detail.rb2
-rwxr-xr-xapp/models/mail_handler.rb2
-rw-r--r--app/models/mailer.rb2
-rw-r--r--app/models/member.rb2
-rw-r--r--app/models/member_role.rb2
-rw-r--r--app/models/message.rb2
-rw-r--r--app/models/news.rb2
-rw-r--r--app/models/principal.rb2
-rw-r--r--app/models/project.rb2
-rw-r--r--app/models/project_custom_field.rb2
-rw-r--r--app/models/query.rb2
-rw-r--r--app/models/repository.rb2
-rw-r--r--app/models/repository/bazaar.rb2
-rw-r--r--app/models/repository/cvs.rb2
-rw-r--r--app/models/repository/filesystem.rb2
-rw-r--r--app/models/repository/git.rb2
-rw-r--r--app/models/repository/mercurial.rb2
-rw-r--r--app/models/repository/subversion.rb2
-rw-r--r--app/models/role.rb2
-rw-r--r--app/models/setting.rb2
-rw-r--r--app/models/time_entry.rb2
-rw-r--r--app/models/time_entry_activity.rb2
-rw-r--r--app/models/time_entry_activity_custom_field.rb2
-rw-r--r--app/models/time_entry_custom_field.rb2
-rw-r--r--app/models/time_entry_query.rb2
-rw-r--r--app/models/token.rb2
-rw-r--r--app/models/tracker.rb2
-rw-r--r--app/models/user.rb2
-rw-r--r--app/models/user_custom_field.rb2
-rw-r--r--app/models/user_preference.rb2
-rw-r--r--app/models/version.rb2
-rw-r--r--app/models/version_custom_field.rb2
-rw-r--r--app/models/watcher.rb2
-rw-r--r--app/models/wiki.rb2
-rw-r--r--app/models/wiki_content.rb2
-rw-r--r--app/models/wiki_content_version.rb236
-rw-r--r--app/models/wiki_page.rb2
-rw-r--r--app/models/wiki_redirect.rb2
-rw-r--r--app/models/workflow_permission.rb2
-rw-r--r--app/models/workflow_rule.rb2
-rw-r--r--app/models/workflow_transition.rb2
-rw-r--r--app/views/common/feed.atom.builder2
-rw-r--r--app/views/journals/index.builder2
-rwxr-xr-xbin/about1
-rwxr-xr-xbin/bundle2
-rw-r--r--bin/changelog.rb2
-rwxr-xr-xbin/rails2
-rwxr-xr-xbin/rake2
-rw-r--r--config.ru2
-rw-r--r--config/application.rb2
-rw-r--r--config/boot.rb2
-rw-r--r--config/environment.rb2
-rw-r--r--config/environments/development.rb2
-rw-r--r--config/environments/production.rb2
-rw-r--r--config/environments/test.rb2
-rw-r--r--config/environments/test_pgsql.rb2
-rw-r--r--config/environments/test_sqlite3.rb2
-rw-r--r--config/initializers/00-core_plugins.rb2
-rw-r--r--config/initializers/10-patches.rb2
-rw-r--r--config/initializers/20-mime_types.rb2
-rw-r--r--config/initializers/30-redmine.rb2
-rw-r--r--config/initializers/backtrace_silencers.rb2
-rw-r--r--config/initializers/inflections.rb2
-rw-r--r--config/routes.rb2
-rw-r--r--db/migrate/001_setup.rb2
-rw-r--r--db/migrate/002_issue_move.rb2
-rw-r--r--db/migrate/003_issue_add_note.rb2
-rw-r--r--db/migrate/004_export_pdf.rb2
-rw-r--r--db/migrate/005_issue_start_date.rb2
-rw-r--r--db/migrate/006_calendar_and_activity.rb2
-rw-r--r--db/migrate/007_create_journals.rb2
-rw-r--r--db/migrate/008_create_user_preferences.rb2
-rw-r--r--db/migrate/009_add_hide_mail_pref.rb2
-rw-r--r--db/migrate/010_create_comments.rb2
-rw-r--r--db/migrate/011_add_news_comments_count.rb2
-rw-r--r--db/migrate/012_add_comments_permissions.rb2
-rw-r--r--db/migrate/013_create_queries.rb2
-rw-r--r--db/migrate/014_add_queries_permissions.rb2
-rw-r--r--db/migrate/015_create_repositories.rb2
-rw-r--r--db/migrate/016_add_repositories_permissions.rb2
-rw-r--r--db/migrate/017_create_settings.rb2
-rw-r--r--db/migrate/018_set_doc_and_files_notifications.rb2
-rw-r--r--db/migrate/019_add_issue_status_position.rb2
-rw-r--r--db/migrate/020_add_role_position.rb2
-rw-r--r--db/migrate/021_add_tracker_position.rb2
-rw-r--r--db/migrate/022_serialize_possibles_values.rb2
-rw-r--r--db/migrate/023_add_tracker_is_in_roadmap.rb2
-rw-r--r--db/migrate/024_add_roadmap_permission.rb2
-rw-r--r--db/migrate/025_add_search_permission.rb2
-rw-r--r--db/migrate/026_add_repository_login_and_password.rb2
-rw-r--r--db/migrate/027_create_wikis.rb2
-rw-r--r--db/migrate/028_create_wiki_pages.rb2
-rw-r--r--db/migrate/029_create_wiki_contents.rb2
-rw-r--r--db/migrate/030_add_projects_feeds_permissions.rb2
-rw-r--r--db/migrate/031_add_repository_root_url.rb2
-rw-r--r--db/migrate/032_create_time_entries.rb2
-rw-r--r--db/migrate/033_add_timelog_permissions.rb2
-rw-r--r--db/migrate/034_create_changesets.rb2
-rw-r--r--db/migrate/035_create_changes.rb2
-rw-r--r--db/migrate/036_add_changeset_commit_date.rb2
-rw-r--r--db/migrate/037_add_project_identifier.rb2
-rw-r--r--db/migrate/038_add_custom_field_is_filter.rb2
-rw-r--r--db/migrate/039_create_watchers.rb2
-rw-r--r--db/migrate/040_create_changesets_issues.rb2
-rw-r--r--db/migrate/041_rename_comment_to_comments.rb2
-rw-r--r--db/migrate/042_create_issue_relations.rb2
-rw-r--r--db/migrate/043_add_relations_permissions.rb2
-rw-r--r--db/migrate/044_set_language_length_to_five.rb2
-rw-r--r--db/migrate/045_create_boards.rb2
-rw-r--r--db/migrate/046_create_messages.rb2
-rw-r--r--db/migrate/047_add_boards_permissions.rb2
-rw-r--r--db/migrate/048_allow_null_version_effective_date.rb2
-rw-r--r--db/migrate/049_add_wiki_destroy_page_permission.rb2
-rw-r--r--db/migrate/050_add_wiki_attachments_permissions.rb2
-rw-r--r--db/migrate/051_add_project_status.rb2
-rw-r--r--db/migrate/052_add_changes_revision.rb2
-rw-r--r--db/migrate/053_add_changes_branch.rb2
-rw-r--r--db/migrate/054_add_changesets_scmid.rb2
-rw-r--r--db/migrate/055_add_repositories_type.rb2
-rw-r--r--db/migrate/056_add_repositories_changes_permission.rb2
-rw-r--r--db/migrate/057_add_versions_wiki_page_title.rb2
-rw-r--r--db/migrate/058_add_issue_categories_assigned_to_id.rb2
-rw-r--r--db/migrate/059_add_roles_assignable.rb2
-rw-r--r--db/migrate/060_change_changesets_committer_limit.rb2
-rw-r--r--db/migrate/061_add_roles_builtin.rb2
-rw-r--r--db/migrate/062_insert_builtin_roles.rb2
-rw-r--r--db/migrate/063_add_roles_permissions.rb2
-rw-r--r--db/migrate/064_drop_permissions.rb2
-rw-r--r--db/migrate/065_add_settings_updated_on.rb2
-rw-r--r--db/migrate/066_add_custom_value_customized_index.rb2
-rw-r--r--db/migrate/067_create_wiki_redirects.rb2
-rw-r--r--db/migrate/068_create_enabled_modules.rb2
-rw-r--r--db/migrate/069_add_issues_estimated_hours.rb2
-rw-r--r--db/migrate/070_change_attachments_content_type_limit.rb2
-rw-r--r--db/migrate/071_add_queries_column_names.rb2
-rw-r--r--db/migrate/072_add_enumerations_position.rb2
-rw-r--r--db/migrate/073_add_enumerations_is_default.rb2
-rw-r--r--db/migrate/074_add_auth_sources_tls.rb2
-rw-r--r--db/migrate/075_add_members_mail_notification.rb2
-rw-r--r--db/migrate/076_allow_null_position.rb2
-rw-r--r--db/migrate/077_remove_issue_statuses_html_color.rb2
-rw-r--r--db/migrate/078_add_custom_fields_position.rb2
-rw-r--r--db/migrate/079_add_user_preferences_time_zone.rb2
-rw-r--r--db/migrate/080_add_users_type.rb2
-rw-r--r--db/migrate/081_create_projects_trackers.rb2
-rw-r--r--db/migrate/082_add_messages_locked.rb2
-rw-r--r--db/migrate/083_add_messages_sticky.rb2
-rw-r--r--db/migrate/084_change_auth_sources_account_limit.rb2
-rw-r--r--db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb2
-rw-r--r--db/migrate/086_add_custom_fields_searchable.rb2
-rw-r--r--db/migrate/087_change_projects_description_to_text.rb2
-rw-r--r--db/migrate/088_add_custom_fields_default_value.rb2
-rw-r--r--db/migrate/089_add_attachments_description.rb2
-rw-r--r--db/migrate/090_change_versions_name_limit.rb2
-rw-r--r--db/migrate/091_change_changesets_revision_to_string.rb2
-rw-r--r--db/migrate/092_change_changes_from_revision_to_string.rb2
-rw-r--r--db/migrate/093_add_wiki_pages_protected.rb2
-rw-r--r--db/migrate/094_change_projects_homepage_limit.rb2
-rw-r--r--db/migrate/095_add_wiki_pages_parent_id.rb2
-rw-r--r--db/migrate/096_add_commit_access_permission.rb2
-rw-r--r--db/migrate/097_add_view_wiki_edits_permission.rb2
-rw-r--r--db/migrate/098_set_topic_authors_as_watchers.rb2
-rw-r--r--db/migrate/099_add_delete_wiki_pages_attachments_permission.rb2
-rw-r--r--db/migrate/100_add_changesets_user_id.rb2
-rw-r--r--db/migrate/101_populate_changesets_user_id.rb2
-rw-r--r--db/migrate/102_add_custom_fields_editable.rb2
-rw-r--r--db/migrate/103_set_custom_fields_editable.rb2
-rw-r--r--db/migrate/104_add_projects_lft_and_rgt.rb2
-rw-r--r--db/migrate/105_build_projects_tree.rb2
-rw-r--r--db/migrate/106_remove_projects_projects_count.rb2
-rw-r--r--db/migrate/107_add_open_id_authentication_tables.rb2
-rw-r--r--db/migrate/108_add_identity_url_to_users.rb2
-rw-r--r--db/migrate/20090214190337_add_watchers_user_id_type_index.rb2
-rw-r--r--db/migrate/20090312172426_add_queries_sort_criteria.rb2
-rw-r--r--db/migrate/20090312194159_add_projects_trackers_unique_index.rb2
-rw-r--r--db/migrate/20090318181151_extend_settings_name.rb2
-rw-r--r--db/migrate/20090323224724_add_type_to_enumerations.rb2
-rw-r--r--db/migrate/20090401221305_update_enumerations_to_sti.rb2
-rw-r--r--db/migrate/20090401231134_add_active_field_to_enumerations.rb2
-rw-r--r--db/migrate/20090403001910_add_project_to_enumerations.rb2
-rw-r--r--db/migrate/20090406161854_add_parent_id_to_enumerations.rb2
-rw-r--r--db/migrate/20090425161243_add_queries_group_by.rb2
-rw-r--r--db/migrate/20090503121501_create_member_roles.rb2
-rw-r--r--db/migrate/20090503121505_populate_member_roles.rb2
-rw-r--r--db/migrate/20090503121510_drop_members_role_id.rb2
-rw-r--r--db/migrate/20090614091200_fix_messages_sticky_null.rb2
-rw-r--r--db/migrate/20090704172350_populate_users_type.rb2
-rw-r--r--db/migrate/20090704172355_create_groups_users.rb2
-rw-r--r--db/migrate/20090704172358_add_member_roles_inherited_from.rb2
-rw-r--r--db/migrate/20091010093521_fix_users_custom_values.rb2
-rw-r--r--db/migrate/20091017212227_add_missing_indexes_to_workflows.rb2
-rw-r--r--db/migrate/20091017212457_add_missing_indexes_to_custom_fields_projects.rb2
-rw-r--r--db/migrate/20091017212644_add_missing_indexes_to_messages.rb2
-rw-r--r--db/migrate/20091017212938_add_missing_indexes_to_repositories.rb2
-rw-r--r--db/migrate/20091017213027_add_missing_indexes_to_comments.rb2
-rw-r--r--db/migrate/20091017213113_add_missing_indexes_to_enumerations.rb2
-rw-r--r--db/migrate/20091017213151_add_missing_indexes_to_wiki_pages.rb2
-rw-r--r--db/migrate/20091017213228_add_missing_indexes_to_watchers.rb2
-rw-r--r--db/migrate/20091017213257_add_missing_indexes_to_auth_sources.rb2
-rw-r--r--db/migrate/20091017213332_add_missing_indexes_to_documents.rb2
-rw-r--r--db/migrate/20091017213444_add_missing_indexes_to_tokens.rb2
-rw-r--r--db/migrate/20091017213536_add_missing_indexes_to_changesets.rb2
-rw-r--r--db/migrate/20091017213642_add_missing_indexes_to_issue_categories.rb2
-rw-r--r--db/migrate/20091017213716_add_missing_indexes_to_member_roles.rb2
-rw-r--r--db/migrate/20091017213757_add_missing_indexes_to_boards.rb2
-rw-r--r--db/migrate/20091017213835_add_missing_indexes_to_user_preferences.rb2
-rw-r--r--db/migrate/20091017213910_add_missing_indexes_to_issues.rb2
-rw-r--r--db/migrate/20091017214015_add_missing_indexes_to_members.rb2
-rw-r--r--db/migrate/20091017214107_add_missing_indexes_to_custom_fields.rb2
-rw-r--r--db/migrate/20091017214136_add_missing_indexes_to_queries.rb2
-rw-r--r--db/migrate/20091017214236_add_missing_indexes_to_time_entries.rb2
-rw-r--r--db/migrate/20091017214308_add_missing_indexes_to_news.rb2
-rw-r--r--db/migrate/20091017214336_add_missing_indexes_to_users.rb2
-rw-r--r--db/migrate/20091017214406_add_missing_indexes_to_attachments.rb2
-rw-r--r--db/migrate/20091017214440_add_missing_indexes_to_wiki_contents.rb2
-rw-r--r--db/migrate/20091017214519_add_missing_indexes_to_custom_values.rb2
-rw-r--r--db/migrate/20091017214611_add_missing_indexes_to_journals.rb2
-rw-r--r--db/migrate/20091017214644_add_missing_indexes_to_issue_relations.rb2
-rw-r--r--db/migrate/20091017214720_add_missing_indexes_to_wiki_redirects.rb2
-rw-r--r--db/migrate/20091017214750_add_missing_indexes_to_custom_fields_trackers.rb2
-rw-r--r--db/migrate/20091025163651_add_activity_indexes.rb2
-rw-r--r--db/migrate/20091108092559_add_versions_status.rb2
-rw-r--r--db/migrate/20091114105931_add_view_issues_permission.rb2
-rw-r--r--db/migrate/20091123212029_add_default_done_ratio_to_issue_status.rb2
-rw-r--r--db/migrate/20091205124427_add_versions_sharing.rb2
-rw-r--r--db/migrate/20091220183509_add_lft_and_rgt_indexes_to_projects.rb2
-rw-r--r--db/migrate/20091220183727_add_index_to_settings_name.rb2
-rw-r--r--db/migrate/20091220184736_add_indexes_to_issue_status.rb2
-rw-r--r--db/migrate/20091225164732_remove_enumerations_opt.rb2
-rw-r--r--db/migrate/20091227112908_change_wiki_contents_text_limit.rb2
-rw-r--r--db/migrate/20100129193402_change_users_mail_notification_to_string.rb2
-rw-r--r--db/migrate/20100129193813_update_mail_notification_values.rb2
-rw-r--r--db/migrate/20100221100219_add_index_on_changesets_scmid.rb2
-rw-r--r--db/migrate/20100313132032_add_issues_nested_sets_columns.rb2
-rw-r--r--db/migrate/20100313171051_add_index_on_issues_nested_set.rb2
-rw-r--r--db/migrate/20100705164950_change_changes_path_length_limit.rb2
-rw-r--r--db/migrate/20100819172912_enable_calendar_and_gantt_modules_where_appropriate.rb2
-rw-r--r--db/migrate/20101104182107_add_unique_index_on_members.rb2
-rw-r--r--db/migrate/20101107130441_add_custom_fields_visible.rb2
-rw-r--r--db/migrate/20101114115114_change_projects_name_limit.rb2
-rw-r--r--db/migrate/20101114115359_change_projects_identifier_limit.rb2
-rw-r--r--db/migrate/20110220160626_add_workflows_assignee_and_author.rb2
-rw-r--r--db/migrate/20110223180944_add_users_salt.rb2
-rw-r--r--db/migrate/20110223180953_salt_user_passwords.rb2
-rw-r--r--db/migrate/20110224000000_add_repositories_path_encoding.rb2
-rw-r--r--db/migrate/20110226120112_change_repositories_password_limit.rb2
-rw-r--r--db/migrate/20110226120132_change_auth_sources_account_password_limit.rb2
-rw-r--r--db/migrate/20110227125750_change_journal_details_values_to_text.rb2
-rw-r--r--db/migrate/20110228000000_add_repositories_log_encoding.rb2
-rw-r--r--db/migrate/20110228000100_copy_repositories_log_encoding.rb2
-rw-r--r--db/migrate/20110401192910_add_index_to_users_type.rb2
-rw-r--r--db/migrate/20110408103312_add_roles_issues_visibility.rb2
-rw-r--r--db/migrate/20110412065600_add_issues_is_private.rb2
-rw-r--r--db/migrate/20110511000000_add_repositories_extra_info.rb2
-rw-r--r--db/migrate/20110902000000_create_changeset_parents.rb2
-rw-r--r--db/migrate/20111201201315_add_unique_index_to_issue_relations.rb2
-rw-r--r--db/migrate/20120115143024_add_repositories_identifier.rb2
-rw-r--r--db/migrate/20120115143100_add_repositories_is_default.rb2
-rw-r--r--db/migrate/20120115143126_set_default_repositories.rb2
-rw-r--r--db/migrate/20120127174243_add_custom_fields_multiple.rb2
-rw-r--r--db/migrate/20120205111326_change_users_login_limit.rb2
-rw-r--r--db/migrate/20120223110929_change_attachments_container_defaults.rb2
-rw-r--r--db/migrate/20120301153455_add_auth_sources_filter.rb2
-rw-r--r--db/migrate/20120422150750_change_repositories_to_full_sti.rb2
-rw-r--r--db/migrate/20120705074331_add_trackers_fields_bits.rb2
-rw-r--r--db/migrate/20120707064544_add_auth_sources_timeout.rb2
-rw-r--r--db/migrate/20120714122000_add_workflows_type.rb2
-rw-r--r--db/migrate/20120714122100_update_workflows_to_sti.rb2
-rw-r--r--db/migrate/20120714122200_add_workflows_rule_fields.rb2
-rw-r--r--db/migrate/20120731164049_add_boards_parent_id.rb2
-rw-r--r--db/migrate/20120930112914_add_journals_private_notes.rb2
-rw-r--r--db/migrate/20121026002032_add_enumerations_position_name.rb2
-rw-r--r--db/migrate/20121026003537_populate_enumerations_position_name.rb2
-rw-r--r--db/migrate/20121209123234_add_queries_type.rb2
-rw-r--r--db/migrate/20121209123358_update_queries_to_sti.rb2
-rw-r--r--db/migrate/20121213084931_add_attachments_disk_directory.rb2
-rw-r--r--db/migrate/20130110122628_split_documents_permissions.rb2
-rw-r--r--db/migrate/20130201184705_add_unique_index_on_tokens_value.rb2
-rw-r--r--db/migrate/20130202090625_add_projects_inherit_members.rb2
-rw-r--r--db/migrate/20130207175206_add_unique_index_on_custom_fields_trackers.rb2
-rw-r--r--db/migrate/20130207181455_add_unique_index_on_custom_fields_projects.rb2
-rw-r--r--db/migrate/20130215073721_change_users_lastname_length_to_255.rb2
-rw-r--r--db/migrate/20130215111127_add_issues_closed_on.rb2
-rw-r--r--db/migrate/20130215111141_populate_issues_closed_on.rb2
-rw-r--r--db/migrate/20130217094251_remove_issues_default_fk_values.rb2
-rw-r--r--db/migrate/20130602092539_create_queries_roles.rb2
-rw-r--r--db/migrate/20130710182539_add_queries_visibility.rb2
-rw-r--r--db/migrate/20130713104233_create_custom_fields_roles.rb2
-rw-r--r--db/migrate/20130713111657_add_queries_options.rb2
-rw-r--r--db/migrate/20130729070143_add_users_must_change_passwd.rb2
-rw-r--r--db/migrate/20130911193200_remove_eols_from_attachments_filename.rb2
-rw-r--r--db/migrate/20131004113137_support_for_multiple_commit_keywords.rb2
-rw-r--r--db/migrate/20131005100610_add_repositories_created_on.rb2
-rw-r--r--db/migrate/20131124175346_add_custom_fields_format_store.rb2
-rw-r--r--db/migrate/20131210180802_add_custom_fields_description.rb2
-rw-r--r--db/migrate/20131214094309_remove_custom_fields_min_max_length_default_values.rb2
-rw-r--r--db/migrate/20131215104612_store_relation_type_in_journal_details.rb2
-rw-r--r--db/migrate/20131218183023_delete_orphan_time_entries_custom_values.rb2
-rw-r--r--db/migrate/20140228130325_change_changesets_comments_limit.rb2
-rw-r--r--db/migrate/20140903143914_add_password_changed_at_to_user.rb12
-rw-r--r--db/migrate/20140920094058_insert_builtin_groups.rb2
-rw-r--r--db/migrate/20141029181752_add_trackers_default_status_id.rb2
-rw-r--r--db/migrate/20141029181824_remove_issue_statuses_is_default.rb2
-rw-r--r--db/migrate/20141109112308_add_roles_users_visibility.rb2
-rw-r--r--db/migrate/20141122124142_add_wiki_redirects_redirects_to_wiki_id.rb2
-rw-r--r--db/migrate/20150113194759_create_email_addresses.rb2
-rw-r--r--db/migrate/20150113211532_populate_email_addresses.rb2
-rw-r--r--db/migrate/20150113213922_remove_users_mail.rb2
-rw-r--r--db/migrate/20150113213955_add_email_addresses_user_id_index.rb2
-rw-r--r--db/migrate/20150208105930_replace_move_issues_permission.rb2
-rw-r--r--db/migrate/20150510083747_change_documents_title_limit.rb2
-rw-r--r--db/migrate/20150525103953_clear_estimated_hours_on_parent_issues.rb2
-rw-r--r--db/migrate/20150526183158_add_roles_time_entries_visibility.rb2
-rw-r--r--db/migrate/20150528084820_add_roles_all_roles_managed.rb2
-rw-r--r--db/migrate/20150528092912_create_roles_managed_roles.rb2
-rw-r--r--db/migrate/20150528093249_add_unique_index_on_roles_managed_roles.rb2
-rw-r--r--db/migrate/20150725112753_insert_allowed_statuses_for_new_issues.rb2
-rw-r--r--db/migrate/20150730122707_create_imports.rb2
-rw-r--r--db/migrate/20150730122735_create_import_items.rb2
-rw-r--r--db/migrate/20150921204850_change_time_entries_comments_limit_to_1024.rb2
-rw-r--r--db/migrate/20150921210243_change_wiki_contents_comments_limit_to_1024.rb2
-rw-r--r--db/migrate/20151020182334_change_attachments_filesize_limit_to_8.rb2
-rw-r--r--db/migrate/20151020182731_fix_comma_in_user_format_setting_value.rb2
-rw-r--r--db/migrate/20151021184614_change_issue_categories_name_limit_to_60.rb2
-rw-r--r--db/migrate/20151021185456_change_auth_sources_filter_to_text.rb2
-rw-r--r--db/migrate/20151021190616_change_user_preferences_hide_mail_default_to_true.rb2
-rw-r--r--db/migrate/20151024082034_add_tokens_updated_on.rb2
-rw-r--r--db/migrate/20151025072118_create_custom_field_enumerations.rb2
-rw-r--r--db/migrate/20151031095005_add_projects_default_version_id.rb2
-rw-r--r--db/migrate/20160404080304_force_password_reset_during_setup.rb2
-rw-r--r--db/migrate/20160416072926_remove_position_defaults.rb2
-rw-r--r--db/migrate/20160529063352_add_roles_settings.rb2
-rw-r--r--db/migrate/20161001122012_add_tracker_id_index_to_workflows.rb2
-rw-r--r--db/migrate/20161002133421_add_index_on_member_roles_inherited_from.rb2
-rw-r--r--db/migrate/20161010081301_change_issues_description_limit.rb2
-rw-r--r--db/migrate/20161010081528_change_journal_details_value_limit.rb2
-rw-r--r--db/migrate/20161010081600_change_journals_notes_limit.rb2
-rw-r--r--db/migrate/20161126094932_add_index_on_changesets_issues_issue_id.rb12
-rw-r--r--db/migrate/20161220091118_add_index_on_issues_parent_id.rb2
-rw-r--r--db/migrate/20170207050700_add_index_on_disk_filename_to_attachments.rb2
-rw-r--r--db/migrate/20170302015225_change_attachments_digest_limit_to_64.rb2
-rw-r--r--db/migrate/20170309214320_add_project_default_assigned_to_id.rb2
-rw-r--r--db/migrate/20170320051650_change_repositories_extra_info_limit.rb2
-rw-r--r--db/migrate/20170418090031_add_view_news_to_all_existing_roles.rb2
-rw-r--r--db/migrate/20170419144536_add_view_messages_to_all_existing_roles.rb2
-rw-r--r--db/migrate/20170723112801_rename_comments_to_content.rb2
-rw-r--r--db/migrate/20180501132547_add_author_id_to_time_entries.rb2
-rw-r--r--db/migrate/20180913072918_add_verify_peer_to_auth_sources.rb2
-rw-r--r--db/migrate/20180923082945_change_sqlite_booleans_to_0_and_1.rb2
-rw-r--r--db/migrate/20180923091603_change_sqlite_booleans_default.rb2
-rw-r--r--extra/mail_handler/rdm-mailhandler.rb2
-rw-r--r--extra/sample_plugin/app/controllers/example_controller.rb2
-rw-r--r--extra/sample_plugin/app/models/meeting.rb2
-rw-r--r--extra/sample_plugin/config/routes.rb2
-rw-r--r--extra/sample_plugin/db/migrate/001_create_meetings.rb2
-rw-r--r--extra/sample_plugin/init.rb2
-rw-r--r--extra/sample_plugin/test/integration/routing_test.rb1
-rwxr-xr-xextra/svn/reposman.rb1
-rw-r--r--lib/diff.rb2
-rw-r--r--lib/generators/redmine_plugin/redmine_plugin_generator.rb2
-rw-r--r--lib/generators/redmine_plugin/templates/routes.rb2
-rw-r--r--lib/generators/redmine_plugin_controller/redmine_plugin_controller_generator.rb2
-rw-r--r--lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb2
-rw-r--r--lib/plugins/acts_as_activity_provider/init.rb2
-rw-r--r--lib/plugins/acts_as_activity_provider/lib/acts_as_activity_provider.rb2
-rw-r--r--lib/plugins/acts_as_attachable/init.rb2
-rw-r--r--lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb2
-rw-r--r--lib/plugins/acts_as_customizable/init.rb2
-rw-r--r--lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb2
-rw-r--r--lib/plugins/acts_as_event/init.rb2
-rw-r--r--lib/plugins/acts_as_event/lib/acts_as_event.rb2
-rw-r--r--lib/plugins/acts_as_searchable/init.rb2
-rw-r--r--lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb2
-rw-r--r--lib/plugins/acts_as_tree/Rakefile2
-rw-r--r--lib/plugins/acts_as_tree/init.rb2
-rw-r--r--lib/plugins/acts_as_tree/lib/active_record/acts/tree.rb2
-rw-r--r--lib/plugins/acts_as_tree/test/acts_as_tree_test.rb2
-rw-r--r--lib/plugins/acts_as_watchable/init.rb2
-rw-r--r--lib/plugins/acts_as_watchable/lib/acts_as_watchable.rb2
-rw-r--r--lib/plugins/gravatar/Rakefile2
-rw-r--r--lib/plugins/gravatar/init.rb2
-rw-r--r--lib/plugins/gravatar/lib/gravatar.rb2
-rw-r--r--lib/plugins/gravatar/spec/gravatar_spec.rb2
-rw-r--r--lib/plugins/open_id_authentication/Rakefile2
-rw-r--r--lib/plugins/open_id_authentication/generators/open_id_authentication_tables/open_id_authentication_tables_generator.rb2
-rw-r--r--lib/plugins/open_id_authentication/generators/upgrade_open_id_authentication_tables/upgrade_open_id_authentication_tables_generator.rb2
-rw-r--r--lib/plugins/open_id_authentication/init.rb2
-rw-r--r--lib/plugins/open_id_authentication/lib/open_id_authentication.rb2
-rw-r--r--lib/plugins/open_id_authentication/lib/open_id_authentication/association.rb2
-rw-r--r--lib/plugins/open_id_authentication/lib/open_id_authentication/db_store.rb2
-rw-r--r--lib/plugins/open_id_authentication/lib/open_id_authentication/mem_cache_store.rb2
-rw-r--r--lib/plugins/open_id_authentication/lib/open_id_authentication/nonce.rb2
-rw-r--r--lib/plugins/open_id_authentication/lib/open_id_authentication/request.rb2
-rw-r--r--lib/plugins/open_id_authentication/lib/open_id_authentication/timeout_fixes.rb4
-rw-r--r--lib/plugins/open_id_authentication/lib/tasks/open_id_authentication_tasks.rake2
-rw-r--r--lib/plugins/open_id_authentication/test/mem_cache_store_test.rb2
-rw-r--r--lib/plugins/open_id_authentication/test/normalize_test.rb2
-rw-r--r--lib/plugins/open_id_authentication/test/open_id_authentication_test.rb2
-rw-r--r--lib/plugins/open_id_authentication/test/status_test.rb4
-rw-r--r--lib/plugins/open_id_authentication/test/test_helper.rb2
-rw-r--r--lib/redmine.rb2
-rw-r--r--lib/redmine/access_control.rb2
-rw-r--r--lib/redmine/access_keys.rb2
-rw-r--r--lib/redmine/activity.rb2
-rw-r--r--lib/redmine/activity/fetcher.rb2
-rw-r--r--lib/redmine/acts/positioned.rb2
-rw-r--r--lib/redmine/ciphering.rb2
-rw-r--r--lib/redmine/codeset_util.rb1
-rw-r--r--lib/redmine/configuration.rb2
-rw-r--r--lib/redmine/core_ext.rb2
-rw-r--r--lib/redmine/core_ext/active_record.rb2
-rw-r--r--lib/redmine/core_ext/string.rb2
-rw-r--r--lib/redmine/core_ext/string/conversions.rb2
-rw-r--r--lib/redmine/core_ext/string/inflections.rb2
-rw-r--r--lib/redmine/database.rb2
-rw-r--r--lib/redmine/default_data/loader.rb2
-rw-r--r--lib/redmine/export/csv.rb2
-rw-r--r--lib/redmine/export/pdf.rb2
-rw-r--r--lib/redmine/export/pdf/issues_pdf_helper.rb2
-rw-r--r--lib/redmine/export/pdf/wiki_pdf_helper.rb2
-rw-r--r--lib/redmine/field_format.rb2
-rw-r--r--lib/redmine/helpers/calendar.rb2
-rw-r--r--lib/redmine/helpers/diff.rb2
-rw-r--r--lib/redmine/helpers/gantt.rb2
-rw-r--r--lib/redmine/helpers/time_report.rb2
-rw-r--r--lib/redmine/helpers/url.rb2
-rw-r--r--lib/redmine/hook.rb2
-rw-r--r--lib/redmine/hook/listener.rb4
-rw-r--r--lib/redmine/hook/view_listener.rb2
-rw-r--r--lib/redmine/i18n.rb2
-rw-r--r--lib/redmine/imap.rb2
-rw-r--r--lib/redmine/info.rb2
-rw-r--r--lib/redmine/menu_manager.rb2
-rw-r--r--lib/redmine/mime_type.rb2
-rw-r--r--lib/redmine/my_page.rb2
-rw-r--r--lib/redmine/nested_set/issue_nested_set.rb2
-rw-r--r--lib/redmine/nested_set/project_nested_set.rb2
-rw-r--r--lib/redmine/nested_set/traversing.rb2
-rw-r--r--lib/redmine/notifiable.rb2
-rw-r--r--lib/redmine/pagination.rb2
-rw-r--r--lib/redmine/platform.rb2
-rw-r--r--lib/redmine/plugin.rb2
-rw-r--r--lib/redmine/pop3.rb2
-rw-r--r--lib/redmine/safe_attributes.rb2
-rw-r--r--lib/redmine/scm/adapters.rb2
-rw-r--r--lib/redmine/scm/adapters/abstract_adapter.rb2
-rw-r--r--lib/redmine/scm/adapters/bazaar_adapter.rb2
-rw-r--r--lib/redmine/scm/adapters/command_failed.rb2
-rw-r--r--lib/redmine/scm/adapters/cvs_adapter.rb2
-rw-r--r--lib/redmine/scm/adapters/filesystem_adapter.rb2
-rw-r--r--lib/redmine/scm/adapters/git_adapter.rb2
-rw-r--r--lib/redmine/scm/adapters/mercurial_adapter.rb2
-rw-r--r--lib/redmine/scm/adapters/subversion_adapter.rb2
-rw-r--r--lib/redmine/scm/base.rb2
-rw-r--r--lib/redmine/search.rb2
-rw-r--r--lib/redmine/sort_criteria.rb2
-rw-r--r--lib/redmine/subclass_factory.rb2
-rw-r--r--lib/redmine/sudo_mode.rb2
-rw-r--r--lib/redmine/syntax_highlighting.rb2
-rw-r--r--lib/redmine/themes.rb2
-rw-r--r--lib/redmine/thumbnail.rb2
-rw-r--r--lib/redmine/unified_diff.rb2
-rw-r--r--lib/redmine/utils.rb2
-rw-r--r--lib/redmine/version.rb2
-rw-r--r--lib/redmine/views/api_template_handler.rb2
-rw-r--r--lib/redmine/views/builders.rb2
-rw-r--r--lib/redmine/views/builders/json.rb2
-rw-r--r--lib/redmine/views/builders/structure.rb2
-rw-r--r--lib/redmine/views/builders/xml.rb2
-rw-r--r--lib/redmine/views/labelled_form_builder.rb2
-rw-r--r--lib/redmine/views/other_formats_builder.rb2
-rw-r--r--lib/redmine/wiki_formatting.rb2
-rw-r--r--lib/redmine/wiki_formatting/html_parser.rb2
-rw-r--r--lib/redmine/wiki_formatting/macros.rb2
-rw-r--r--lib/redmine/wiki_formatting/markdown/formatter.rb2
-rw-r--r--lib/redmine/wiki_formatting/markdown/helper.rb2
-rw-r--r--lib/redmine/wiki_formatting/markdown/html_parser.rb2
-rw-r--r--lib/redmine/wiki_formatting/textile/formatter.rb2
-rw-r--r--lib/redmine/wiki_formatting/textile/helper.rb2
-rw-r--r--lib/redmine/wiki_formatting/textile/html_parser.rb2
-rw-r--r--lib/redmine/wiki_formatting/textile/redcloth3.rb2
-rw-r--r--lib/tasks/ci.rake2
-rw-r--r--lib/tasks/ciphering.rake2
-rw-r--r--lib/tasks/deprecated.rake2
-rw-r--r--lib/tasks/email.rake2
-rw-r--r--lib/tasks/extract_fixtures.rake2
-rw-r--r--lib/tasks/initializers.rake2
-rw-r--r--lib/tasks/load_default_data.rake2
-rw-r--r--lib/tasks/locales.rake2
-rw-r--r--lib/tasks/metrics.rake2
-rw-r--r--lib/tasks/migrate_from_mantis.rake2
-rw-r--r--lib/tasks/migrate_from_trac.rake2
-rw-r--r--lib/tasks/permissions.rake2
-rw-r--r--lib/tasks/redmine.rake2
-rw-r--r--lib/tasks/reminder.rake2
-rw-r--r--lib/tasks/testing.rake2
-rw-r--r--lib/tasks/yardoc.rake2
-rw-r--r--test/application_system_test_case.rb2
-rw-r--r--test/coverage/html_formatter.rb2
-rw-r--r--test/extra/redmine_pm/repository_git_test_pm.rb2
-rw-r--r--test/extra/redmine_pm/repository_subversion_test_pm.rb2
-rw-r--r--test/extra/redmine_pm/test_case.rb2
-rw-r--r--test/fixtures/files/2006/07/060719210727_source.rb2
-rw-r--r--test/functional/account_controller_openid_test.rb2
-rw-r--r--test/functional/account_controller_test.rb2
-rw-r--r--test/functional/activities_controller_test.rb2
-rw-r--r--test/functional/admin_controller_test.rb2
-rw-r--r--test/functional/attachments_controller_test.rb2
-rw-r--r--test/functional/attachments_visibility_test.rb2
-rw-r--r--test/functional/auth_sources_controller_test.rb2
-rw-r--r--test/functional/auto_completes_controller_test.rb2
-rw-r--r--test/functional/boards_controller_test.rb2
-rw-r--r--test/functional/calendars_controller_test.rb2
-rw-r--r--test/functional/comments_controller_test.rb2
-rw-r--r--test/functional/context_menus_controller_test.rb2
-rw-r--r--test/functional/custom_field_enumerations_controller_test.rb2
-rw-r--r--test/functional/custom_fields_controller_test.rb2
-rw-r--r--test/functional/documents_controller_test.rb2
-rw-r--r--test/functional/email_addresses_controller_test.rb2
-rw-r--r--test/functional/enumerations_controller_test.rb2
-rw-r--r--test/functional/files_controller_test.rb2
-rw-r--r--test/functional/gantts_controller_test.rb2
-rw-r--r--test/functional/groups_controller_test.rb2
-rw-r--r--test/functional/imports_controller_test.rb2
-rw-r--r--test/functional/issue_categories_controller_test.rb2
-rw-r--r--test/functional/issue_relations_controller_test.rb2
-rw-r--r--test/functional/issue_statuses_controller_test.rb2
-rw-r--r--test/functional/issues_controller_test.rb2
-rw-r--r--test/functional/issues_controller_transaction_test.rb2
-rw-r--r--test/functional/issues_custom_fields_visibility_test.rb2
-rw-r--r--test/functional/journals_controller_test.rb2
-rw-r--r--test/functional/mail_handler_controller_test.rb2
-rw-r--r--test/functional/members_controller_test.rb2
-rw-r--r--test/functional/messages_controller_test.rb2
-rw-r--r--test/functional/my_controller_test.rb2
-rw-r--r--test/functional/news_controller_test.rb2
-rw-r--r--test/functional/previews_controller_test.rb2
-rw-r--r--test/functional/principal_memberships_controller_test.rb2
-rw-r--r--test/functional/project_enumerations_controller_test.rb2
-rw-r--r--test/functional/projects_controller_test.rb2
-rw-r--r--test/functional/queries_controller_test.rb2
-rw-r--r--test/functional/reports_controller_test.rb2
-rw-r--r--test/functional/repositories_bazaar_controller_test.rb2
-rw-r--r--test/functional/repositories_controller_test.rb2
-rw-r--r--test/functional/repositories_cvs_controller_test.rb2
-rw-r--r--test/functional/repositories_filesystem_controller_test.rb2
-rw-r--r--test/functional/repositories_git_controller_test.rb2
-rw-r--r--test/functional/repositories_mercurial_controller_test.rb2
-rw-r--r--test/functional/repositories_subversion_controller_test.rb2
-rw-r--r--test/functional/roles_controller_test.rb2
-rw-r--r--test/functional/search_controller_test.rb2
-rw-r--r--test/functional/search_custom_fields_visibility_test.rb2
-rw-r--r--test/functional/sessions_controller_test.rb2
-rw-r--r--test/functional/settings_controller_test.rb2
-rw-r--r--test/functional/sys_controller_test.rb2
-rw-r--r--test/functional/timelog_controller_test.rb2
-rw-r--r--test/functional/timelog_custom_fields_visibility_test.rb2
-rw-r--r--test/functional/timelog_report_test.rb2
-rw-r--r--test/functional/trackers_controller_test.rb2
-rw-r--r--test/functional/users_controller_test.rb2
-rw-r--r--test/functional/versions_controller_test.rb2
-rw-r--r--test/functional/watchers_controller_test.rb2
-rw-r--r--test/functional/welcome_controller_test.rb2
-rw-r--r--test/functional/wiki_controller_test.rb2
-rw-r--r--test/functional/wikis_controller_test.rb2
-rw-r--r--test/functional/workflows_controller_test.rb2
-rw-r--r--test/helpers/activities_helper_test.rb2
-rw-r--r--test/helpers/application_helper_test.rb2
-rw-r--r--test/helpers/custom_fields_helper_test.rb2
-rw-r--r--test/helpers/groups_helper_test.rb2
-rw-r--r--test/helpers/issues_helper_test.rb2
-rw-r--r--test/helpers/journals_helper_test.rb2
-rw-r--r--test/helpers/members_helper_test.rb2
-rw-r--r--test/helpers/projects_helper_test.rb2
-rw-r--r--test/helpers/queries_helper_test.rb2
-rw-r--r--test/helpers/routes_helper_test.rb2
-rw-r--r--test/helpers/search_helper_test.rb2
-rw-r--r--test/helpers/settings_helper_test.rb2
-rw-r--r--test/helpers/sort_helper_test.rb2
-rw-r--r--test/helpers/timelog_helper_test.rb2
-rw-r--r--test/helpers/version_helper_test.rb2
-rw-r--r--test/helpers/watchers_helper_test.rb2
-rw-r--r--test/helpers/wiki_helper_test.rb2
-rw-r--r--test/integration/account_test.rb2
-rw-r--r--test/integration/admin_test.rb2
-rw-r--r--test/integration/api_test/api_routing_test.rb2
-rw-r--r--test/integration/api_test/api_test.rb2
-rw-r--r--test/integration/api_test/attachments_test.rb2
-rw-r--r--test/integration/api_test/authentication_test.rb2
-rw-r--r--test/integration/api_test/custom_fields_attribute_test.rb2
-rw-r--r--test/integration/api_test/custom_fields_test.rb2
-rw-r--r--test/integration/api_test/disabled_rest_api_test.rb2
-rw-r--r--test/integration/api_test/enumerations_test.rb2
-rw-r--r--test/integration/api_test/files_test.rb2
-rw-r--r--test/integration/api_test/groups_test.rb2
-rw-r--r--test/integration/api_test/issue_categories_test.rb2
-rw-r--r--test/integration/api_test/issue_relations_test.rb2
-rw-r--r--test/integration/api_test/issue_statuses_test.rb2
-rw-r--r--test/integration/api_test/issues_test.rb2
-rw-r--r--test/integration/api_test/jsonp_test.rb2
-rw-r--r--test/integration/api_test/memberships_test.rb2
-rw-r--r--test/integration/api_test/news_test.rb2
-rw-r--r--test/integration/api_test/projects_test.rb2
-rw-r--r--test/integration/api_test/queries_test.rb2
-rw-r--r--test/integration/api_test/roles_test.rb2
-rw-r--r--test/integration/api_test/search_test.rb2
-rw-r--r--test/integration/api_test/time_entries_test.rb2
-rw-r--r--test/integration/api_test/trackers_test.rb2
-rw-r--r--test/integration/api_test/users_test.rb2
-rw-r--r--test/integration/api_test/versions_test.rb2
-rw-r--r--test/integration/api_test/wiki_pages_test.rb2
-rw-r--r--test/integration/application_test.rb2
-rw-r--r--test/integration/attachments_test.rb2
-rw-r--r--test/integration/feeds_test.rb2
-rw-r--r--test/integration/issues_test.rb2
-rw-r--r--test/integration/layout_test.rb2
-rw-r--r--test/integration/lib/redmine/field_format/attachment_format_test.rb2
-rw-r--r--test/integration/lib/redmine/hook_test.rb2
-rw-r--r--test/integration/lib/redmine/menu_manager_test.rb2
-rw-r--r--test/integration/lib/redmine/themes_test.rb2
-rw-r--r--test/integration/projects_test.rb2
-rw-r--r--test/integration/repositories_git_test.rb2
-rw-r--r--test/integration/routing/account_test.rb2
-rw-r--r--test/integration/routing/activities_test.rb2
-rw-r--r--test/integration/routing/admin_test.rb2
-rw-r--r--test/integration/routing/attachments_test.rb2
-rw-r--r--test/integration/routing/auth_sources_test.rb2
-rw-r--r--test/integration/routing/auto_completes_test.rb2
-rw-r--r--test/integration/routing/boards_test.rb2
-rw-r--r--test/integration/routing/calendars_test.rb2
-rw-r--r--test/integration/routing/comments_test.rb2
-rw-r--r--test/integration/routing/context_menus_test.rb2
-rw-r--r--test/integration/routing/custom_fields_test.rb2
-rw-r--r--test/integration/routing/documents_test.rb2
-rw-r--r--test/integration/routing/enumerations_test.rb2
-rw-r--r--test/integration/routing/files_test.rb2
-rw-r--r--test/integration/routing/gantts_test.rb2
-rw-r--r--test/integration/routing/groups_test.rb2
-rw-r--r--test/integration/routing/imports_test.rb2
-rw-r--r--test/integration/routing/issue_categories_test.rb2
-rw-r--r--test/integration/routing/issue_relations_test.rb2
-rw-r--r--test/integration/routing/issue_statuses_test.rb2
-rw-r--r--test/integration/routing/issues_test.rb2
-rw-r--r--test/integration/routing/journals_test.rb2
-rw-r--r--test/integration/routing/mail_handler_test.rb2
-rw-r--r--test/integration/routing/members_test.rb2
-rw-r--r--test/integration/routing/messages_test.rb2
-rw-r--r--test/integration/routing/my_test.rb2
-rw-r--r--test/integration/routing/news_test.rb2
-rw-r--r--test/integration/routing/previews_test.rb2
-rw-r--r--test/integration/routing/principal_memberships_test.rb2
-rw-r--r--test/integration/routing/project_enumerations_test.rb2
-rw-r--r--test/integration/routing/projects_test.rb2
-rw-r--r--test/integration/routing/queries_test.rb2
-rw-r--r--test/integration/routing/reports_test.rb2
-rw-r--r--test/integration/routing/repositories_test.rb2
-rw-r--r--test/integration/routing/roles_test.rb2
-rw-r--r--test/integration/routing/search_test.rb2
-rw-r--r--test/integration/routing/settings_test.rb2
-rw-r--r--test/integration/routing/sys_test.rb2
-rw-r--r--test/integration/routing/timelog_test.rb2
-rw-r--r--test/integration/routing/trackers_test.rb2
-rw-r--r--test/integration/routing/users_test.rb2
-rw-r--r--test/integration/routing/versions_test.rb2
-rw-r--r--test/integration/routing/watchers_test.rb2
-rw-r--r--test/integration/routing/welcome_test.rb2
-rw-r--r--test/integration/routing/wiki_test.rb2
-rw-r--r--test/integration/routing/wikis_test.rb2
-rw-r--r--test/integration/routing/workflows_test.rb2
-rw-r--r--test/integration/sessions_test.rb2
-rw-r--r--test/integration/sudo_mode_test.rb2
-rw-r--r--test/integration/users_test.rb2
-rw-r--r--test/integration/welcome_test.rb2
-rw-r--r--test/mocks/open_id_authentication_mock.rb2
-rw-r--r--test/object_helpers.rb2
-rw-r--r--test/system/issues_import_test.rb2
-rw-r--r--test/system/issues_test.rb2
-rw-r--r--test/system/my_page_test.rb2
-rw-r--r--test/system/quick_jump_test.rb2
-rw-r--r--test/system/sudo_mode_test.rb2
-rw-r--r--test/system/timelog_test.rb2
-rw-r--r--test/test_helper.rb2
-rw-r--r--test/unit/activity_test.rb2
-rw-r--r--test/unit/attachment_test.rb2
-rw-r--r--test/unit/attachment_transaction_test.rb2
-rw-r--r--test/unit/auth_source_ldap_test.rb2
-rw-r--r--test/unit/board_test.rb2
-rw-r--r--test/unit/changeset_test.rb2
-rw-r--r--test/unit/comment_test.rb2
-rw-r--r--test/unit/custom_field_test.rb2
-rw-r--r--test/unit/custom_field_user_format_test.rb2
-rw-r--r--test/unit/custom_field_version_format_test.rb2
-rw-r--r--test/unit/custom_value_test.rb2
-rw-r--r--test/unit/default_data_test.rb2
-rw-r--r--test/unit/document_category_test.rb2
-rw-r--r--test/unit/document_test.rb2
-rw-r--r--test/unit/enabled_module_test.rb2
-rw-r--r--test/unit/enumeration_test.rb2
-rw-r--r--test/unit/group_test.rb2
-rw-r--r--test/unit/initializers/patches_test.rb2
-rw-r--r--test/unit/issue_category_test.rb2
-rw-r--r--test/unit/issue_custom_field_test.rb2
-rw-r--r--test/unit/issue_import_test.rb2
-rw-r--r--test/unit/issue_nested_set_concurrency_test.rb2
-rw-r--r--test/unit/issue_nested_set_test.rb2
-rw-r--r--test/unit/issue_priority_test.rb2
-rw-r--r--test/unit/issue_relation_test.rb2
-rw-r--r--test/unit/issue_scopes_test.rb2
-rw-r--r--test/unit/issue_status_test.rb2
-rw-r--r--test/unit/issue_subtasking_test.rb2
-rw-r--r--test/unit/issue_test.rb2
-rw-r--r--test/unit/issue_transaction_test.rb2
-rw-r--r--test/unit/journal_observer_test.rb2
-rw-r--r--test/unit/journal_test.rb2
-rw-r--r--test/unit/lib/redmine/access_control_test.rb2
-rw-r--r--test/unit/lib/redmine/acts/positioned_with_scope_test.rb2
-rw-r--r--test/unit/lib/redmine/acts/positioned_without_scope_test.rb2
-rw-r--r--test/unit/lib/redmine/ciphering_test.rb2
-rw-r--r--test/unit/lib/redmine/codeset_util_test.rb2
-rw-r--r--test/unit/lib/redmine/configuration_test.rb2
-rw-r--r--test/unit/lib/redmine/export/csv_test.rb2
-rw-r--r--test/unit/lib/redmine/export/pdf/issues_pdf_test.rb2
-rw-r--r--test/unit/lib/redmine/export/pdf_test.rb2
-rw-r--r--test/unit/lib/redmine/field_format/attachment_format_test.rb2
-rw-r--r--test/unit/lib/redmine/field_format/attachment_format_visibility_test.rb2
-rw-r--r--test/unit/lib/redmine/field_format/bool_format_test.rb2
-rw-r--r--test/unit/lib/redmine/field_format/enumeration_format_test.rb2
-rw-r--r--test/unit/lib/redmine/field_format/field_format_test.rb2
-rw-r--r--test/unit/lib/redmine/field_format/link_format_test.rb2
-rw-r--r--test/unit/lib/redmine/field_format/list_format_test.rb2
-rw-r--r--test/unit/lib/redmine/field_format/numeric_format_test.rb72
-rw-r--r--test/unit/lib/redmine/field_format/user_field_format_test.rb2
-rw-r--r--test/unit/lib/redmine/field_format/version_field_format_test.rb2
-rw-r--r--test/unit/lib/redmine/helpers/calendar_test.rb2
-rw-r--r--test/unit/lib/redmine/helpers/diff_test.rb76
-rw-r--r--test/unit/lib/redmine/helpers/gantt_test.rb2
-rw-r--r--test/unit/lib/redmine/helpers/url_test.rb2
-rw-r--r--test/unit/lib/redmine/hook_test.rb2
-rw-r--r--test/unit/lib/redmine/i18n_test.rb2
-rw-r--r--test/unit/lib/redmine/info_test.rb2
-rw-r--r--test/unit/lib/redmine/menu_manager/mapper_test.rb2
-rw-r--r--test/unit/lib/redmine/menu_manager/menu_helper_test.rb2
-rw-r--r--test/unit/lib/redmine/menu_manager/menu_item_test.rb2
-rw-r--r--test/unit/lib/redmine/menu_manager_test.rb2
-rw-r--r--test/unit/lib/redmine/mime_type_test.rb2
-rw-r--r--test/unit/lib/redmine/notifiable_test.rb2
-rw-r--r--test/unit/lib/redmine/pagination_helper_test.rb2
-rw-r--r--test/unit/lib/redmine/pagination_test.rb2
-rw-r--r--test/unit/lib/redmine/plugin_test.rb2
-rw-r--r--test/unit/lib/redmine/safe_attributes_test.rb2
-rw-r--r--test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb2
-rw-r--r--test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb2
-rw-r--r--test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb2
-rw-r--r--test/unit/lib/redmine/scm/adapters/git_adapter_test.rb2
-rw-r--r--test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb2
-rw-r--r--test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb2
-rw-r--r--test/unit/lib/redmine/themes_test.rb2
-rw-r--r--test/unit/lib/redmine/unified_diff_test.rb2
-rw-r--r--test/unit/lib/redmine/utils/date_calculation.rb2
-rw-r--r--test/unit/lib/redmine/views/builders/json_test.rb2
-rw-r--r--test/unit/lib/redmine/views/builders/xml_test.rb2
-rw-r--r--test/unit/lib/redmine/views/labelled_form_builder_test.rb2
-rw-r--r--test/unit/lib/redmine/wiki_formatting/html_parser_test.rb2
-rw-r--r--test/unit/lib/redmine/wiki_formatting/macros_test.rb2
-rw-r--r--test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb2
-rw-r--r--test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb2
-rw-r--r--test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb2
-rw-r--r--test/unit/lib/redmine/wiki_formatting/textile_html_parser_test.rb2
-rw-r--r--test/unit/lib/redmine/wiki_formatting_test.rb2
-rw-r--r--test/unit/lib/redmine_test.rb2
-rw-r--r--test/unit/mail_handler_test.rb2
-rw-r--r--test/unit/mailer_localisation_test.rb2
-rw-r--r--test/unit/mailer_test.rb2
-rw-r--r--test/unit/member_test.rb2
-rw-r--r--test/unit/message_test.rb2
-rw-r--r--test/unit/news_test.rb2
-rw-r--r--test/unit/principal_test.rb2
-rw-r--r--test/unit/project_copy_test.rb2
-rw-r--r--test/unit/project_members_inheritance_test.rb2
-rw-r--r--test/unit/project_nested_set_concurrency_test.rb2
-rw-r--r--test/unit/project_nested_set_test.rb2
-rw-r--r--test/unit/project_test.rb2
-rw-r--r--test/unit/query_test.rb2
-rw-r--r--test/unit/repository_bazaar_test.rb2
-rw-r--r--test/unit/repository_cvs_test.rb2
-rw-r--r--test/unit/repository_filesystem_test.rb2
-rw-r--r--test/unit/repository_git_test.rb2
-rw-r--r--test/unit/repository_mercurial_test.rb2
-rw-r--r--test/unit/repository_subversion_test.rb2
-rw-r--r--test/unit/repository_test.rb2
-rw-r--r--test/unit/role_test.rb2
-rw-r--r--test/unit/search_test.rb2
-rw-r--r--test/unit/setting_test.rb2
-rw-r--r--test/unit/time_entry_activity_test.rb2
-rw-r--r--test/unit/time_entry_query_test.rb2
-rw-r--r--test/unit/time_entry_test.rb2
-rw-r--r--test/unit/token_test.rb2
-rw-r--r--test/unit/tracker_test.rb2
-rw-r--r--test/unit/user_preference_test.rb2
-rw-r--r--test/unit/user_test.rb2
-rw-r--r--test/unit/version_test.rb2
-rw-r--r--test/unit/watcher_test.rb2
-rw-r--r--test/unit/wiki_content_test.rb2
-rw-r--r--test/unit/wiki_content_version_test.rb2
-rw-r--r--test/unit/wiki_page_test.rb2
-rw-r--r--test/unit/wiki_redirect_test.rb2
-rw-r--r--test/unit/wiki_test.rb2
-rw-r--r--test/unit/workflow_test.rb2
-rw-r--r--test/unit/workflow_transition_test.rb2
940 files changed, 2078 insertions, 202 deletions
diff --git a/Gemfile b/Gemfile
index f5f5fd0aa..42afe30d4 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
source 'https://rubygems.org'
gem "bundler", ">= 1.5.0"
diff --git a/Rakefile b/Rakefile
index 5fbdf84ca..7031ed9e5 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,4 +1,6 @@
#!/usr/bin/env rake
+# frozen_string_literal: false
+
# 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.
diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb
index f604540a7..0a16a4cc4 100644
--- a/app/controllers/account_controller.rb
+++ b/app/controllers/account_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/activities_controller.rb b/app/controllers/activities_controller.rb
index a9650a6f0..70e144773 100644
--- a/app/controllers/activities_controller.rb
+++ b/app/controllers/activities_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb
index 885c3a169..785135818 100644
--- a/app/controllers/admin_controller.rb
+++ b/app/controllers/admin_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 2f0cfbf58..5b47c60d2 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb
index 552ff9cff..4b8199166 100644
--- a/app/controllers/attachments_controller.rb
+++ b/app/controllers/attachments_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/auth_sources_controller.rb b/app/controllers/auth_sources_controller.rb
index ed0b415e5..144d6d82d 100644
--- a/app/controllers/auth_sources_controller.rb
+++ b/app/controllers/auth_sources_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/auto_completes_controller.rb b/app/controllers/auto_completes_controller.rb
index 2d707f929..4a59ff46e 100644
--- a/app/controllers/auto_completes_controller.rb
+++ b/app/controllers/auto_completes_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/boards_controller.rb b/app/controllers/boards_controller.rb
index 03ca50c35..669d9f142 100644
--- a/app/controllers/boards_controller.rb
+++ b/app/controllers/boards_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/calendars_controller.rb b/app/controllers/calendars_controller.rb
index e07ba2e61..d7269abbd 100644
--- a/app/controllers/calendars_controller.rb
+++ b/app/controllers/calendars_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb
index e7974d49e..ab9e70980 100644
--- a/app/controllers/comments_controller.rb
+++ b/app/controllers/comments_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/context_menus_controller.rb b/app/controllers/context_menus_controller.rb
index bd6977503..526aaa5a6 100644
--- a/app/controllers/context_menus_controller.rb
+++ b/app/controllers/context_menus_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/custom_field_enumerations_controller.rb b/app/controllers/custom_field_enumerations_controller.rb
index fc186b98d..aadb0af49 100644
--- a/app/controllers/custom_field_enumerations_controller.rb
+++ b/app/controllers/custom_field_enumerations_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/custom_fields_controller.rb b/app/controllers/custom_fields_controller.rb
index 41d4a7301..4b9d89192 100644
--- a/app/controllers/custom_fields_controller.rb
+++ b/app/controllers/custom_fields_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/documents_controller.rb b/app/controllers/documents_controller.rb
index 00b6dd9f1..e458d838a 100644
--- a/app/controllers/documents_controller.rb
+++ b/app/controllers/documents_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/email_addresses_controller.rb b/app/controllers/email_addresses_controller.rb
index 22026254a..ba2334023 100644
--- a/app/controllers/email_addresses_controller.rb
+++ b/app/controllers/email_addresses_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/enumerations_controller.rb b/app/controllers/enumerations_controller.rb
index a04d7b184..7ed59d482 100644
--- a/app/controllers/enumerations_controller.rb
+++ b/app/controllers/enumerations_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/files_controller.rb b/app/controllers/files_controller.rb
index bc66c80b0..aa02bbb64 100644
--- a/app/controllers/files_controller.rb
+++ b/app/controllers/files_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/gantts_controller.rb b/app/controllers/gantts_controller.rb
index 3283282d5..24f9250c5 100644
--- a/app/controllers/gantts_controller.rb
+++ b/app/controllers/gantts_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb
index 4379ee39b..a11526595 100644
--- a/app/controllers/groups_controller.rb
+++ b/app/controllers/groups_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/imports_controller.rb b/app/controllers/imports_controller.rb
index 3d7e406fa..4fa3f6b4c 100644
--- a/app/controllers/imports_controller.rb
+++ b/app/controllers/imports_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/issue_categories_controller.rb b/app/controllers/issue_categories_controller.rb
index d635a28f3..85d87a9d0 100644
--- a/app/controllers/issue_categories_controller.rb
+++ b/app/controllers/issue_categories_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/issue_relations_controller.rb b/app/controllers/issue_relations_controller.rb
index 0bcc8c5e3..f00c0d4dd 100644
--- a/app/controllers/issue_relations_controller.rb
+++ b/app/controllers/issue_relations_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/issue_statuses_controller.rb b/app/controllers/issue_statuses_controller.rb
index 92c033783..b299a46b2 100644
--- a/app/controllers/issue_statuses_controller.rb
+++ b/app/controllers/issue_statuses_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index 1f037817c..7d9a9ee6e 100644
--- a/app/controllers/issues_controller.rb
+++ b/app/controllers/issues_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/journals_controller.rb b/app/controllers/journals_controller.rb
index 7f07b38a8..ade2a5f6a 100644
--- a/app/controllers/journals_controller.rb
+++ b/app/controllers/journals_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/mail_handler_controller.rb b/app/controllers/mail_handler_controller.rb
index 1942ab1b7..e394a77db 100644
--- a/app/controllers/mail_handler_controller.rb
+++ b/app/controllers/mail_handler_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/members_controller.rb b/app/controllers/members_controller.rb
index 1583e9e78..330ef3f48 100644
--- a/app/controllers/members_controller.rb
+++ b/app/controllers/members_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/messages_controller.rb b/app/controllers/messages_controller.rb
index 99dda31fd..9cffeea70 100644
--- a/app/controllers/messages_controller.rb
+++ b/app/controllers/messages_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rb
index 72b65e433..9c744533e 100644
--- a/app/controllers/my_controller.rb
+++ b/app/controllers/my_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/news_controller.rb b/app/controllers/news_controller.rb
index 3df9e5e44..1504637f6 100644
--- a/app/controllers/news_controller.rb
+++ b/app/controllers/news_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/previews_controller.rb b/app/controllers/previews_controller.rb
index 41e6941f9..5382d6902 100644
--- a/app/controllers/previews_controller.rb
+++ b/app/controllers/previews_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/principal_memberships_controller.rb b/app/controllers/principal_memberships_controller.rb
index 924ecbdf9..68770628f 100644
--- a/app/controllers/principal_memberships_controller.rb
+++ b/app/controllers/principal_memberships_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/project_enumerations_controller.rb b/app/controllers/project_enumerations_controller.rb
index d9a77f969..55f29b394 100644
--- a/app/controllers/project_enumerations_controller.rb
+++ b/app/controllers/project_enumerations_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 1b88e5fc6..09cc0f713 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/queries_controller.rb b/app/controllers/queries_controller.rb
index 784dec984..3457a83ab 100644
--- a/app/controllers/queries_controller.rb
+++ b/app/controllers/queries_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/reports_controller.rb b/app/controllers/reports_controller.rb
index a4ea33b6f..688f57323 100644
--- a/app/controllers/reports_controller.rb
+++ b/app/controllers/reports_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb
index 346ecf5c7..5fdac37e9 100644
--- a/app/controllers/repositories_controller.rb
+++ b/app/controllers/repositories_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/roles_controller.rb b/app/controllers/roles_controller.rb
index b85c51b62..0022137e7 100644
--- a/app/controllers/roles_controller.rb
+++ b/app/controllers/roles_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb
index 744c3a3cb..37ac37cac 100644
--- a/app/controllers/search_controller.rb
+++ b/app/controllers/search_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/settings_controller.rb b/app/controllers/settings_controller.rb
index 9985fa6ea..c1ee94dbc 100644
--- a/app/controllers/settings_controller.rb
+++ b/app/controllers/settings_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/sys_controller.rb b/app/controllers/sys_controller.rb
index 35886fc4e..ac5911dba 100644
--- a/app/controllers/sys_controller.rb
+++ b/app/controllers/sys_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb
index f0988fad9..6282fb41b 100644
--- a/app/controllers/timelog_controller.rb
+++ b/app/controllers/timelog_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/trackers_controller.rb b/app/controllers/trackers_controller.rb
index caf6b1165..4abdb61b6 100644
--- a/app/controllers/trackers_controller.rb
+++ b/app/controllers/trackers_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index efc9dce4d..de40797dc 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/versions_controller.rb b/app/controllers/versions_controller.rb
index 30fdc9313..800771760 100644
--- a/app/controllers/versions_controller.rb
+++ b/app/controllers/versions_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/watchers_controller.rb b/app/controllers/watchers_controller.rb
index 3f080e96b..6fb70a6b6 100644
--- a/app/controllers/watchers_controller.rb
+++ b/app/controllers/watchers_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb
index 341a64df8..3922f6b97 100644
--- a/app/controllers/welcome_controller.rb
+++ b/app/controllers/welcome_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb
index c5f7cdc0c..5baff3c6d 100644
--- a/app/controllers/wiki_controller.rb
+++ b/app/controllers/wiki_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/wikis_controller.rb b/app/controllers/wikis_controller.rb
index 2c6a9a7ac..6454ca46b 100644
--- a/app/controllers/wikis_controller.rb
+++ b/app/controllers/wikis_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/controllers/workflows_controller.rb b/app/controllers/workflows_controller.rb
index c831827cb..49a16515d 100644
--- a/app/controllers/workflows_controller.rb
+++ b/app/controllers/workflows_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/helpers/account_helper.rb b/app/helpers/account_helper.rb
index e4d8222bf..423a7b9de 100644
--- a/app/helpers/account_helper.rb
+++ b/app/helpers/account_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/activities_helper.rb b/app/helpers/activities_helper.rb
index 526709e4a..dda6485ce 100644
--- a/app/helpers/activities_helper.rb
+++ b/app/helpers/activities_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/admin_helper.rb b/app/helpers/admin_helper.rb
index e972ef03d..0cc1a48aa 100644
--- a/app/helpers/admin_helper.rb
+++ b/app/helpers/admin_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 8fa56ac55..8ccdf0736 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/attachments_helper.rb b/app/helpers/attachments_helper.rb
index 385f3b8a4..9bbcb01b1 100644
--- a/app/helpers/attachments_helper.rb
+++ b/app/helpers/attachments_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/auth_sources_helper.rb b/app/helpers/auth_sources_helper.rb
index 4f4b1cd52..b1b3b9c22 100644
--- a/app/helpers/auth_sources_helper.rb
+++ b/app/helpers/auth_sources_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/boards_helper.rb b/app/helpers/boards_helper.rb
index 0931dd048..80d0289c1 100644
--- a/app/helpers/boards_helper.rb
+++ b/app/helpers/boards_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/calendars_helper.rb b/app/helpers/calendars_helper.rb
index fe3796c7f..30b9e315b 100644
--- a/app/helpers/calendars_helper.rb
+++ b/app/helpers/calendars_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/context_menus_helper.rb b/app/helpers/context_menus_helper.rb
index 0254d3add..953fb10da 100644
--- a/app/helpers/context_menus_helper.rb
+++ b/app/helpers/context_menus_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/custom_fields_helper.rb b/app/helpers/custom_fields_helper.rb
index 54573c763..e9f544e63 100644
--- a/app/helpers/custom_fields_helper.rb
+++ b/app/helpers/custom_fields_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/documents_helper.rb b/app/helpers/documents_helper.rb
index a6741b8cd..5d7298ade 100644
--- a/app/helpers/documents_helper.rb
+++ b/app/helpers/documents_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/email_addresses_helper.rb b/app/helpers/email_addresses_helper.rb
index 1f44f212d..45081c4b1 100644
--- a/app/helpers/email_addresses_helper.rb
+++ b/app/helpers/email_addresses_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/enumerations_helper.rb b/app/helpers/enumerations_helper.rb
index 2759e8457..65c773899 100644
--- a/app/helpers/enumerations_helper.rb
+++ b/app/helpers/enumerations_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/gantt_helper.rb b/app/helpers/gantt_helper.rb
index 65585898f..10653c32c 100644
--- a/app/helpers/gantt_helper.rb
+++ b/app/helpers/gantt_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/groups_helper.rb b/app/helpers/groups_helper.rb
index 7eb885f8a..b95a311df 100644
--- a/app/helpers/groups_helper.rb
+++ b/app/helpers/groups_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/imports_helper.rb b/app/helpers/imports_helper.rb
index 39f3b95ab..8f3a3ebe0 100644
--- a/app/helpers/imports_helper.rb
+++ b/app/helpers/imports_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/issue_categories_helper.rb b/app/helpers/issue_categories_helper.rb
index 8af3452a5..a17961687 100644
--- a/app/helpers/issue_categories_helper.rb
+++ b/app/helpers/issue_categories_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/issue_relations_helper.rb b/app/helpers/issue_relations_helper.rb
index a1b3b990a..c1e2f2e75 100644
--- a/app/helpers/issue_relations_helper.rb
+++ b/app/helpers/issue_relations_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/issue_statuses_helper.rb b/app/helpers/issue_statuses_helper.rb
index 49441dde5..db519b4c2 100644
--- a/app/helpers/issue_statuses_helper.rb
+++ b/app/helpers/issue_statuses_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index a3e655a30..00bf5092b 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/journals_helper.rb b/app/helpers/journals_helper.rb
index 5e817e862..7f234d2df 100644
--- a/app/helpers/journals_helper.rb
+++ b/app/helpers/journals_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/mail_handler_helper.rb b/app/helpers/mail_handler_helper.rb
index f7957cea5..481b6e9e0 100644
--- a/app/helpers/mail_handler_helper.rb
+++ b/app/helpers/mail_handler_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/members_helper.rb b/app/helpers/members_helper.rb
index ff7ff1bff..54ff8eb87 100644
--- a/app/helpers/members_helper.rb
+++ b/app/helpers/members_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/messages_helper.rb b/app/helpers/messages_helper.rb
index 77ca38526..bb3c87da9 100644
--- a/app/helpers/messages_helper.rb
+++ b/app/helpers/messages_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/my_helper.rb b/app/helpers/my_helper.rb
index da42e077d..1b5fc7838 100644
--- a/app/helpers/my_helper.rb
+++ b/app/helpers/my_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/news_helper.rb b/app/helpers/news_helper.rb
index f105593fa..5666e3c1d 100644
--- a/app/helpers/news_helper.rb
+++ b/app/helpers/news_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/principal_memberships_helper.rb b/app/helpers/principal_memberships_helper.rb
index bf6898fde..2dd4d334e 100644
--- a/app/helpers/principal_memberships_helper.rb
+++ b/app/helpers/principal_memberships_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb
index 794546163..c2a5e5371 100644
--- a/app/helpers/projects_helper.rb
+++ b/app/helpers/projects_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/queries_helper.rb b/app/helpers/queries_helper.rb
index 261291727..969de9e1e 100644
--- a/app/helpers/queries_helper.rb
+++ b/app/helpers/queries_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/reports_helper.rb b/app/helpers/reports_helper.rb
index 201c99024..472577dea 100644
--- a/app/helpers/reports_helper.rb
+++ b/app/helpers/reports_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/repositories_helper.rb b/app/helpers/repositories_helper.rb
index f64ed1dc0..341a8e356 100644
--- a/app/helpers/repositories_helper.rb
+++ b/app/helpers/repositories_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/roles_helper.rb b/app/helpers/roles_helper.rb
index ce5ffe71b..eaf464b01 100644
--- a/app/helpers/roles_helper.rb
+++ b/app/helpers/roles_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/routes_helper.rb b/app/helpers/routes_helper.rb
index c0a367563..8177609ef 100644
--- a/app/helpers/routes_helper.rb
+++ b/app/helpers/routes_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb
index d7c483048..9e48d7385 100644
--- a/app/helpers/search_helper.rb
+++ b/app/helpers/search_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/settings_helper.rb b/app/helpers/settings_helper.rb
index 09caeb3e5..28b5217e4 100644
--- a/app/helpers/settings_helper.rb
+++ b/app/helpers/settings_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/sort_helper.rb b/app/helpers/sort_helper.rb
index c6bf5383e..56e6334b8 100644
--- a/app/helpers/sort_helper.rb
+++ b/app/helpers/sort_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Helpers to sort tables using clickable column headers.
#
diff --git a/app/helpers/timelog_helper.rb b/app/helpers/timelog_helper.rb
index cb79a545a..c28db5339 100644
--- a/app/helpers/timelog_helper.rb
+++ b/app/helpers/timelog_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/trackers_helper.rb b/app/helpers/trackers_helper.rb
index ffb2ca3de..dd305c91e 100644
--- a/app/helpers/trackers_helper.rb
+++ b/app/helpers/trackers_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb
index c0d954499..b83fc6a76 100644
--- a/app/helpers/users_helper.rb
+++ b/app/helpers/users_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/versions_helper.rb b/app/helpers/versions_helper.rb
index 9ade12a75..7a2adbd00 100644
--- a/app/helpers/versions_helper.rb
+++ b/app/helpers/versions_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/watchers_helper.rb b/app/helpers/watchers_helper.rb
index ad8cd5995..1199f182a 100644
--- a/app/helpers/watchers_helper.rb
+++ b/app/helpers/watchers_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/welcome_helper.rb b/app/helpers/welcome_helper.rb
index cc8ab380b..5f32769c2 100644
--- a/app/helpers/welcome_helper.rb
+++ b/app/helpers/welcome_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/wiki_helper.rb b/app/helpers/wiki_helper.rb
index b11a7eb19..02af6500d 100644
--- a/app/helpers/wiki_helper.rb
+++ b/app/helpers/wiki_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/helpers/workflows_helper.rb b/app/helpers/workflows_helper.rb
index 8ac75aa98..df9868bad 100644
--- a/app/helpers/workflows_helper.rb
+++ b/app/helpers/workflows_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/app/models/attachment.rb b/app/models/attachment.rb
index be9d0067d..0291a1013 100644
--- a/app/models/attachment.rb
+++ b/app/models/attachment.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/auth_source.rb b/app/models/auth_source.rb
index 8b745f33f..768e7e860 100644
--- a/app/models/auth_source.rb
+++ b/app/models/auth_source.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/auth_source_ldap.rb b/app/models/auth_source_ldap.rb
index c3939e8d5..c94a81022 100644
--- a/app/models/auth_source_ldap.rb
+++ b/app/models/auth_source_ldap.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/board.rb b/app/models/board.rb
index 7f09fddbe..df53596c9 100644
--- a/app/models/board.rb
+++ b/app/models/board.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/change.rb b/app/models/change.rb
index ce75239f1..e4afd0975 100644
--- a/app/models/change.rb
+++ b/app/models/change.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/changeset.rb b/app/models/changeset.rb
index 637a1819f..1d3734073 100644
--- a/app/models/changeset.rb
+++ b/app/models/changeset.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/comment.rb b/app/models/comment.rb
index f2833ac6c..0f768b1cb 100644
--- a/app/models/comment.rb
+++ b/app/models/comment.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb
index 25e9009d8..744599ea1 100644
--- a/app/models/custom_field.rb
+++ b/app/models/custom_field.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/custom_field_enumeration.rb b/app/models/custom_field_enumeration.rb
index 125cd41b0..75c7187dc 100644
--- a/app/models/custom_field_enumeration.rb
+++ b/app/models/custom_field_enumeration.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/custom_field_value.rb b/app/models/custom_field_value.rb
index b5481e164..2b16656b6 100644
--- a/app/models/custom_field_value.rb
+++ b/app/models/custom_field_value.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/custom_value.rb b/app/models/custom_value.rb
index 734c76b22..f5678967c 100644
--- a/app/models/custom_value.rb
+++ b/app/models/custom_value.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/document.rb b/app/models/document.rb
index ccf750fc6..668de8016 100644
--- a/app/models/document.rb
+++ b/app/models/document.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/document_category.rb b/app/models/document_category.rb
index 218c6cde6..db260fe72 100644
--- a/app/models/document_category.rb
+++ b/app/models/document_category.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/document_category_custom_field.rb b/app/models/document_category_custom_field.rb
index 9ff5ee768..849ede90c 100644
--- a/app/models/document_category_custom_field.rb
+++ b/app/models/document_category_custom_field.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/document_custom_field.rb b/app/models/document_custom_field.rb
index 7b689e80c..0123685a0 100644
--- a/app/models/document_custom_field.rb
+++ b/app/models/document_custom_field.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/email_address.rb b/app/models/email_address.rb
index 3bcd929d6..14c031c5c 100644
--- a/app/models/email_address.rb
+++ b/app/models/email_address.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/enabled_module.rb b/app/models/enabled_module.rb
index 12511662c..38e371a6f 100644
--- a/app/models/enabled_module.rb
+++ b/app/models/enabled_module.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/enumeration.rb b/app/models/enumeration.rb
index f330da085..4099df89e 100644
--- a/app/models/enumeration.rb
+++ b/app/models/enumeration.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/group.rb b/app/models/group.rb
index b81e877af..e20e35142 100644
--- a/app/models/group.rb
+++ b/app/models/group.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/group_anonymous.rb b/app/models/group_anonymous.rb
index a3e5f381c..906ffb287 100644
--- a/app/models/group_anonymous.rb
+++ b/app/models/group_anonymous.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/group_builtin.rb b/app/models/group_builtin.rb
index 911e274d7..763f6f008 100644
--- a/app/models/group_builtin.rb
+++ b/app/models/group_builtin.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/group_custom_field.rb b/app/models/group_custom_field.rb
index 76755ecbe..6eb28a939 100644
--- a/app/models/group_custom_field.rb
+++ b/app/models/group_custom_field.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/group_non_member.rb b/app/models/group_non_member.rb
index d94666ac6..096689abf 100644
--- a/app/models/group_non_member.rb
+++ b/app/models/group_non_member.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/import.rb b/app/models/import.rb
index 71bc3c1bb..fb5b0e3af 100644
--- a/app/models/import.rb
+++ b/app/models/import.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/import_item.rb b/app/models/import_item.rb
index 74d5c3797..afb995115 100644
--- a/app/models/import_item.rb
+++ b/app/models/import_item.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/issue.rb b/app/models/issue.rb
index b20da8d91..c5589e73e 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/issue_category.rb b/app/models/issue_category.rb
index 506ae483d..a7781411d 100644
--- a/app/models/issue_category.rb
+++ b/app/models/issue_category.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/issue_custom_field.rb b/app/models/issue_custom_field.rb
index f0a7871b0..eddc34c47 100644
--- a/app/models/issue_custom_field.rb
+++ b/app/models/issue_custom_field.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/issue_import.rb b/app/models/issue_import.rb
index 9fc4f5550..ffffd44fc 100644
--- a/app/models/issue_import.rb
+++ b/app/models/issue_import.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/issue_priority.rb b/app/models/issue_priority.rb
index 10b81b577..88b4ff402 100644
--- a/app/models/issue_priority.rb
+++ b/app/models/issue_priority.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/issue_priority_custom_field.rb b/app/models/issue_priority_custom_field.rb
index ffcf2a972..af73b26d3 100644
--- a/app/models/issue_priority_custom_field.rb
+++ b/app/models/issue_priority_custom_field.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/issue_query.rb b/app/models/issue_query.rb
index 85a97806a..b0e13ca9c 100644
--- a/app/models/issue_query.rb
+++ b/app/models/issue_query.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/issue_relation.rb b/app/models/issue_relation.rb
index be695c13d..786296e5f 100644
--- a/app/models/issue_relation.rb
+++ b/app/models/issue_relation.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/issue_status.rb b/app/models/issue_status.rb
index 9f139f2fc..2d9fd77de 100644
--- a/app/models/issue_status.rb
+++ b/app/models/issue_status.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/journal.rb b/app/models/journal.rb
index ce3f9d0b3..39542ed9c 100644
--- a/app/models/journal.rb
+++ b/app/models/journal.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/journal_detail.rb b/app/models/journal_detail.rb
index 8de9b8dbc..fccff4af2 100644
--- a/app/models/journal_detail.rb
+++ b/app/models/journal_detail.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/mail_handler.rb b/app/models/mail_handler.rb
index d271d3299..d62c4b043 100755
--- a/app/models/mail_handler.rb
+++ b/app/models/mail_handler.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/mailer.rb b/app/models/mailer.rb
index 92432cf09..d8fbf9cd4 100644
--- a/app/models/mailer.rb
+++ b/app/models/mailer.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/member.rb b/app/models/member.rb
index 05bb0d441..02f019402 100644
--- a/app/models/member.rb
+++ b/app/models/member.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/member_role.rb b/app/models/member_role.rb
index 3be525363..fa49671d2 100644
--- a/app/models/member_role.rb
+++ b/app/models/member_role.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/message.rb b/app/models/message.rb
index 83e8cd2c0..81df08743 100644
--- a/app/models/message.rb
+++ b/app/models/message.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/news.rb b/app/models/news.rb
index 90df77e32..74508c818 100644
--- a/app/models/news.rb
+++ b/app/models/news.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/principal.rb b/app/models/principal.rb
index 08926d3a1..1d9c288cb 100644
--- a/app/models/principal.rb
+++ b/app/models/principal.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/project.rb b/app/models/project.rb
index 6d91d570a..75f99e397 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/project_custom_field.rb b/app/models/project_custom_field.rb
index e038313f8..81d75e536 100644
--- a/app/models/project_custom_field.rb
+++ b/app/models/project_custom_field.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/query.rb b/app/models/query.rb
index f6cc3bd2c..a06d75dee 100644
--- a/app/models/query.rb
+++ b/app/models/query.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/repository.rb b/app/models/repository.rb
index 256222f50..336884071 100644
--- a/app/models/repository.rb
+++ b/app/models/repository.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/repository/bazaar.rb b/app/models/repository/bazaar.rb
index 431565dfb..c95f501a8 100644
--- a/app/models/repository/bazaar.rb
+++ b/app/models/repository/bazaar.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/repository/cvs.rb b/app/models/repository/cvs.rb
index 4d4a51cfd..4e4e1a239 100644
--- a/app/models/repository/cvs.rb
+++ b/app/models/repository/cvs.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/repository/filesystem.rb b/app/models/repository/filesystem.rb
index 0b370f39e..c06114520 100644
--- a/app/models/repository/filesystem.rb
+++ b/app/models/repository/filesystem.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/repository/git.rb b/app/models/repository/git.rb
index e48d36490..65da33c4d 100644
--- a/app/models/repository/git.rb
+++ b/app/models/repository/git.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
# Copyright (C) 2007 Patrick Aljord patcito@Å‹mail.com
diff --git a/app/models/repository/mercurial.rb b/app/models/repository/mercurial.rb
index 2a8079ca0..704c4e2a7 100644
--- a/app/models/repository/mercurial.rb
+++ b/app/models/repository/mercurial.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/repository/subversion.rb b/app/models/repository/subversion.rb
index bc4e9f2e8..de2758dde 100644
--- a/app/models/repository/subversion.rb
+++ b/app/models/repository/subversion.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/role.rb b/app/models/role.rb
index 36ef4bc8b..8f159cb77 100644
--- a/app/models/role.rb
+++ b/app/models/role.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/setting.rb b/app/models/setting.rb
index e59c48c86..390a8f861 100644
--- a/app/models/setting.rb
+++ b/app/models/setting.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/time_entry.rb b/app/models/time_entry.rb
index f0c7b7786..2601d6b38 100644
--- a/app/models/time_entry.rb
+++ b/app/models/time_entry.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/time_entry_activity.rb b/app/models/time_entry_activity.rb
index 62fd18b4d..26cc95bcf 100644
--- a/app/models/time_entry_activity.rb
+++ b/app/models/time_entry_activity.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/time_entry_activity_custom_field.rb b/app/models/time_entry_activity_custom_field.rb
index 93bc682e6..065f39d38 100644
--- a/app/models/time_entry_activity_custom_field.rb
+++ b/app/models/time_entry_activity_custom_field.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/time_entry_custom_field.rb b/app/models/time_entry_custom_field.rb
index 78bfb9d2b..162085823 100644
--- a/app/models/time_entry_custom_field.rb
+++ b/app/models/time_entry_custom_field.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/time_entry_query.rb b/app/models/time_entry_query.rb
index 4073b3d1a..59bb3e429 100644
--- a/app/models/time_entry_query.rb
+++ b/app/models/time_entry_query.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/token.rb b/app/models/token.rb
index 85d6abb9a..69459c77a 100644
--- a/app/models/token.rb
+++ b/app/models/token.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/tracker.rb b/app/models/tracker.rb
index d90ab3e15..81fea01ba 100644
--- a/app/models/tracker.rb
+++ b/app/models/tracker.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/user.rb b/app/models/user.rb
index 0f82a6806..e9b414fd4 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/user_custom_field.rb b/app/models/user_custom_field.rb
index 8b4b34705..aca965bbe 100644
--- a/app/models/user_custom_field.rb
+++ b/app/models/user_custom_field.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/user_preference.rb b/app/models/user_preference.rb
index 7373290c5..403c58a89 100644
--- a/app/models/user_preference.rb
+++ b/app/models/user_preference.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/version.rb b/app/models/version.rb
index 2ccea2fda..19ce4f337 100644
--- a/app/models/version.rb
+++ b/app/models/version.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/version_custom_field.rb b/app/models/version_custom_field.rb
index f353d7fac..7b5029373 100644
--- a/app/models/version_custom_field.rb
+++ b/app/models/version_custom_field.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/watcher.rb b/app/models/watcher.rb
index 30118845b..4e5417b68 100644
--- a/app/models/watcher.rb
+++ b/app/models/watcher.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/wiki.rb b/app/models/wiki.rb
index 186abdc74..605a6496e 100644
--- a/app/models/wiki.rb
+++ b/app/models/wiki.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/wiki_content.rb b/app/models/wiki_content.rb
index 32e0c8450..44be2d8e8 100644
--- a/app/models/wiki_content.rb
+++ b/app/models/wiki_content.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/wiki_content_version.rb b/app/models/wiki_content_version.rb
index fb4c35cbb..67459de2a 100644
--- a/app/models/wiki_content_version.rb
+++ b/app/models/wiki_content_version.rb
@@ -1,117 +1,119 @@
-# Redmine - project management software
-# Copyright (C) 2006-2017 Jean-Philippe Lang
-#
-# 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 'zlib'
-
-class WikiContentVersion < ActiveRecord::Base
- belongs_to :page, :class_name => 'WikiPage'
- belongs_to :author, :class_name => 'User'
-
- acts_as_event :title => Proc.new {|o| "#{l(:label_wiki_edit)}: #{o.page.title} (##{o.version})"},
- :description => :comments,
- :datetime => :updated_on,
- :type => 'wiki-page',
- :group => :page,
- :url => Proc.new {|o| {:controller => 'wiki', :action => 'show', :project_id => o.page.wiki.project, :id => o.page.title, :version => o.version}}
-
- acts_as_activity_provider :type => 'wiki_edits',
- :timestamp => "#{table_name}.updated_on",
- :author_key => "#{table_name}.author_id",
- :permission => :view_wiki_edits,
- :scope => select("#{table_name}.updated_on, #{table_name}.comments, " +
- "#{table_name}.version, #{WikiPage.table_name}.title, " +
- "#{table_name}.page_id, #{table_name}.author_id, " +
- "#{table_name}.id").
- joins("LEFT JOIN #{WikiPage.table_name} ON #{WikiPage.table_name}.id = #{table_name}.page_id " +
- "LEFT JOIN #{Wiki.table_name} ON #{Wiki.table_name}.id = #{WikiPage.table_name}.wiki_id " +
- "LEFT JOIN #{Project.table_name} ON #{Project.table_name}.id = #{Wiki.table_name}.project_id")
-
- after_destroy :page_update_after_destroy
-
- def text=(plain)
- case Setting.wiki_compression
- when 'gzip'
- begin
- self.data = Zlib::Deflate.deflate(plain, Zlib::BEST_COMPRESSION)
- self.compression = 'gzip'
- rescue
- self.data = plain
- self.compression = ''
- end
- else
- self.data = plain
- self.compression = ''
- end
- plain
- end
-
- def text
- @text ||= begin
- str = case compression
- when 'gzip'
- Zlib::Inflate.inflate(data)
- else
- # uncompressed data
- data
- end
- str.force_encoding("UTF-8")
- str
- end
- end
-
- def project
- page.project
- end
-
- def attachments
- page.nil? ? [] : page.attachments
- end
-
- # Return true if the content is the current page content
- def current_version?
- page.content.version == self.version
- end
-
- # Returns the previous version or nil
- def previous
- @previous ||= WikiContentVersion.
- reorder(version: :desc).
- includes(:author).
- where("wiki_content_id = ? AND version < ?", wiki_content_id, version).first
- end
-
- # Returns the next version or nil
- def next
- @next ||= WikiContentVersion.
- reorder(version: :asc).
- includes(:author).
- where("wiki_content_id = ? AND version > ?", wiki_content_id, version).first
- end
-
- private
-
- # Updates page's content if the latest version is removed
- # or destroys the page if it was the only version
- def page_update_after_destroy
- latest = page.content.versions.reorder(version: :desc).first
- if latest && page.content.version != latest.version
- raise ActiveRecord::Rollback unless page.content.revert_to!(latest)
- elsif latest.nil?
- raise ActiveRecord::Rollback unless page.destroy
- end
- end
-end
+# frozen_string_literal: false
+
+# Redmine - project management software
+# Copyright (C) 2006-2017 Jean-Philippe Lang
+#
+# 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 'zlib'
+
+class WikiContentVersion < ActiveRecord::Base
+ belongs_to :page, :class_name => 'WikiPage'
+ belongs_to :author, :class_name => 'User'
+
+ acts_as_event :title => Proc.new {|o| "#{l(:label_wiki_edit)}: #{o.page.title} (##{o.version})"},
+ :description => :comments,
+ :datetime => :updated_on,
+ :type => 'wiki-page',
+ :group => :page,
+ :url => Proc.new {|o| {:controller => 'wiki', :action => 'show', :project_id => o.page.wiki.project, :id => o.page.title, :version => o.version}}
+
+ acts_as_activity_provider :type => 'wiki_edits',
+ :timestamp => "#{table_name}.updated_on",
+ :author_key => "#{table_name}.author_id",
+ :permission => :view_wiki_edits,
+ :scope => select("#{table_name}.updated_on, #{table_name}.comments, " +
+ "#{table_name}.version, #{WikiPage.table_name}.title, " +
+ "#{table_name}.page_id, #{table_name}.author_id, " +
+ "#{table_name}.id").
+ joins("LEFT JOIN #{WikiPage.table_name} ON #{WikiPage.table_name}.id = #{table_name}.page_id " +
+ "LEFT JOIN #{Wiki.table_name} ON #{Wiki.table_name}.id = #{WikiPage.table_name}.wiki_id " +
+ "LEFT JOIN #{Project.table_name} ON #{Project.table_name}.id = #{Wiki.table_name}.project_id")
+
+ after_destroy :page_update_after_destroy
+
+ def text=(plain)
+ case Setting.wiki_compression
+ when 'gzip'
+ begin
+ self.data = Zlib::Deflate.deflate(plain, Zlib::BEST_COMPRESSION)
+ self.compression = 'gzip'
+ rescue
+ self.data = plain
+ self.compression = ''
+ end
+ else
+ self.data = plain
+ self.compression = ''
+ end
+ plain
+ end
+
+ def text
+ @text ||= begin
+ str = case compression
+ when 'gzip'
+ Zlib::Inflate.inflate(data)
+ else
+ # uncompressed data
+ data
+ end
+ str.force_encoding("UTF-8")
+ str
+ end
+ end
+
+ def project
+ page.project
+ end
+
+ def attachments
+ page.nil? ? [] : page.attachments
+ end
+
+ # Return true if the content is the current page content
+ def current_version?
+ page.content.version == self.version
+ end
+
+ # Returns the previous version or nil
+ def previous
+ @previous ||= WikiContentVersion.
+ reorder(version: :desc).
+ includes(:author).
+ where("wiki_content_id = ? AND version < ?", wiki_content_id, version).first
+ end
+
+ # Returns the next version or nil
+ def next
+ @next ||= WikiContentVersion.
+ reorder(version: :asc).
+ includes(:author).
+ where("wiki_content_id = ? AND version > ?", wiki_content_id, version).first
+ end
+
+ private
+
+ # Updates page's content if the latest version is removed
+ # or destroys the page if it was the only version
+ def page_update_after_destroy
+ latest = page.content.versions.reorder(version: :desc).first
+ if latest && page.content.version != latest.version
+ raise ActiveRecord::Rollback unless page.content.revert_to!(latest)
+ elsif latest.nil?
+ raise ActiveRecord::Rollback unless page.destroy
+ end
+ end
+end
diff --git a/app/models/wiki_page.rb b/app/models/wiki_page.rb
index b81f6e5bb..7bd660890 100644
--- a/app/models/wiki_page.rb
+++ b/app/models/wiki_page.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/wiki_redirect.rb b/app/models/wiki_redirect.rb
index 79e96abee..674a72000 100644
--- a/app/models/wiki_redirect.rb
+++ b/app/models/wiki_redirect.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/workflow_permission.rb b/app/models/workflow_permission.rb
index a231978b6..7c08b5fd3 100644
--- a/app/models/workflow_permission.rb
+++ b/app/models/workflow_permission.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/workflow_rule.rb b/app/models/workflow_rule.rb
index c4cbf1508..831ab231d 100644
--- a/app/models/workflow_rule.rb
+++ b/app/models/workflow_rule.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/models/workflow_transition.rb b/app/models/workflow_transition.rb
index 4f161df1f..7d664d7e8 100644
--- a/app/models/workflow_transition.rb
+++ b/app/models/workflow_transition.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/app/views/common/feed.atom.builder b/app/views/common/feed.atom.builder
index 893400dea..aa6021592 100644
--- a/app/views/common/feed.atom.builder
+++ b/app/views/common/feed.atom.builder
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
xml.instruct!
xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
xml.title truncate_single_line_raw(@title, 100)
diff --git a/app/views/journals/index.builder b/app/views/journals/index.builder
index f157ae968..8261a39ce 100644
--- a/app/views/journals/index.builder
+++ b/app/views/journals/index.builder
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
xml.instruct!
xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
xml.title @title
diff --git a/bin/about b/bin/about
index cfec3b406..d1815f783 100755
--- a/bin/about
+++ b/bin/about
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
+# frozen_string_literal: false
ENV["RAILS_ENV"] ||= "production"
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
diff --git a/bin/bundle b/bin/bundle
index 66e9889e8..96e725c20 100755
--- a/bin/bundle
+++ b/bin/bundle
@@ -1,3 +1,5 @@
#!/usr/bin/env ruby
+# frozen_string_literal: false
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
load Gem.bin_path('bundler', 'bundle')
diff --git a/bin/changelog.rb b/bin/changelog.rb
index 7862f21eb..36c11f458 100644
--- a/bin/changelog.rb
+++ b/bin/changelog.rb
@@ -1,4 +1,6 @@
#!/usr/bin/env ruby
+# frozen_string_literal: false
+
require 'optparse'
require 'ostruct'
require 'date'
diff --git a/bin/rails b/bin/rails
index 728cd85aa..6ba2e160f 100755
--- a/bin/rails
+++ b/bin/rails
@@ -1,4 +1,6 @@
#!/usr/bin/env ruby
+# frozen_string_literal: false
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
require_relative '../config/boot'
require 'rails/commands'
diff --git a/bin/rake b/bin/rake
index 17240489f..15f8a9a8d 100755
--- a/bin/rake
+++ b/bin/rake
@@ -1,4 +1,6 @@
#!/usr/bin/env ruby
+# frozen_string_literal: false
+
require_relative '../config/boot'
require 'rake'
Rake.application.run
diff --git a/config.ru b/config.ru
index 5bc2a619e..e666ae557 100644
--- a/config.ru
+++ b/config.ru
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
diff --git a/config/application.rb b/config/application.rb
index e182fc2b9..d771840c2 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require File.expand_path('../boot', __FILE__)
require 'rails/all'
diff --git a/config/boot.rb b/config/boot.rb
index 359673666..4ff7921ec 100644
--- a/config/boot.rb
+++ b/config/boot.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# 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 705e4ecd7..f55721cb0 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Load the Rails application
require File.expand_path('../application', __FILE__)
diff --git a/config/environments/development.rb b/config/environments/development.rb
index f7b15e140..d835395f1 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 85cd3890c..d8e9824ee 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb
diff --git a/config/environments/test.rb b/config/environments/test.rb
index e1a3252b0..ae06c36c6 100644
--- a/config/environments/test.rb
+++ b/config/environments/test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
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 258914d20..a270fcada 100644
--- a/config/environments/test_pgsql.rb
+++ b/config/environments/test_pgsql.rb
@@ -1,2 +1,4 @@
+# frozen_string_literal: false
+
# 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 258914d20..a270fcada 100644
--- a/config/environments/test_sqlite3.rb
+++ b/config/environments/test_sqlite3.rb
@@ -1,2 +1,4 @@
+# frozen_string_literal: false
+
# 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 95c7f3f5d..a4387344d 100644
--- a/config/initializers/00-core_plugins.rb
+++ b/config/initializers/00-core_plugins.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Loads the core plugins located in lib/plugins
Dir.glob(File.join(Rails.root, "lib/plugins/*")).sort.each do |directory|
if File.directory?(directory)
diff --git a/config/initializers/10-patches.rb b/config/initializers/10-patches.rb
index 8d73eba2c..a01d38de6 100644
--- a/config/initializers/10-patches.rb
+++ b/config/initializers/10-patches.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require 'active_record'
module ActiveRecord
diff --git a/config/initializers/20-mime_types.rb b/config/initializers/20-mime_types.rb
index 092e3992d..f5a1c3783 100644
--- a/config/initializers/20-mime_types.rb
+++ b/config/initializers/20-mime_types.rb
@@ -1 +1,3 @@
+# frozen_string_literal: false
+
# Add new mime types for use in respond_to blocks:
diff --git a/config/initializers/30-redmine.rb b/config/initializers/30-redmine.rb
index bebed4aca..1b8ee83f1 100644
--- a/config/initializers/30-redmine.rb
+++ b/config/initializers/30-redmine.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
I18n.backend = Redmine::I18n::Backend.new
# Forces I18n to load available locales from the backend
I18n.config.available_locales = nil
diff --git a/config/initializers/backtrace_silencers.rb b/config/initializers/backtrace_silencers.rb
index 890eede19..cbb20dd7a 100644
--- a/config/initializers/backtrace_silencers.rb
+++ b/config/initializers/backtrace_silencers.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Be sure to restart your server when you modify this file.
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb
index 9e8b0131f..4347c3a3d 100644
--- a/config/initializers/inflections.rb
+++ b/config/initializers/inflections.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format
diff --git a/config/routes.rb b/config/routes.rb
index 034498208..6de9f47b5 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/db/migrate/001_setup.rb b/db/migrate/001_setup.rb
index 1cd569403..dde3a29c4 100644
--- a/db/migrate/001_setup.rb
+++ b/db/migrate/001_setup.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006 Jean-Philippe Lang
#
diff --git a/db/migrate/002_issue_move.rb b/db/migrate/002_issue_move.rb
index d5966f04e..82d9391ef 100644
--- a/db/migrate/002_issue_move.rb
+++ b/db/migrate/002_issue_move.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class IssueMove < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
diff --git a/db/migrate/003_issue_add_note.rb b/db/migrate/003_issue_add_note.rb
index 9f899a80f..9fb45c9da 100644
--- a/db/migrate/003_issue_add_note.rb
+++ b/db/migrate/003_issue_add_note.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class IssueAddNote < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
diff --git a/db/migrate/004_export_pdf.rb b/db/migrate/004_export_pdf.rb
index ac7ef2627..d29165eef 100644
--- a/db/migrate/004_export_pdf.rb
+++ b/db/migrate/004_export_pdf.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ExportPdf < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
diff --git a/db/migrate/005_issue_start_date.rb b/db/migrate/005_issue_start_date.rb
index 93decfb35..983c9a4ae 100644
--- a/db/migrate/005_issue_start_date.rb
+++ b/db/migrate/005_issue_start_date.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class IssueStartDate < ActiveRecord::Migration[4.2]
def self.up
add_column :issues, :start_date, :date
diff --git a/db/migrate/006_calendar_and_activity.rb b/db/migrate/006_calendar_and_activity.rb
index 3ff204c62..bd38e23b8 100644
--- a/db/migrate/006_calendar_and_activity.rb
+++ b/db/migrate/006_calendar_and_activity.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CalendarAndActivity < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
diff --git a/db/migrate/007_create_journals.rb b/db/migrate/007_create_journals.rb
index 0d1201406..7062f2cae 100644
--- a/db/migrate/007_create_journals.rb
+++ b/db/migrate/007_create_journals.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateJournals < ActiveRecord::Migration[4.2]
# model removed, but needed for data migration
diff --git a/db/migrate/008_create_user_preferences.rb b/db/migrate/008_create_user_preferences.rb
index b782b179e..a0e78b570 100644
--- a/db/migrate/008_create_user_preferences.rb
+++ b/db/migrate/008_create_user_preferences.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateUserPreferences < ActiveRecord::Migration[4.2]
def self.up
create_table :user_preferences do |t|
diff --git a/db/migrate/009_add_hide_mail_pref.rb b/db/migrate/009_add_hide_mail_pref.rb
index 8dd3399c9..69bab179d 100644
--- a/db/migrate/009_add_hide_mail_pref.rb
+++ b/db/migrate/009_add_hide_mail_pref.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddHideMailPref < ActiveRecord::Migration[4.2]
def self.up
add_column :user_preferences, :hide_mail, :boolean, :default => false
diff --git a/db/migrate/010_create_comments.rb b/db/migrate/010_create_comments.rb
index c711c748a..f4e898fe4 100644
--- a/db/migrate/010_create_comments.rb
+++ b/db/migrate/010_create_comments.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateComments < ActiveRecord::Migration[4.2]
def self.up
create_table :comments do |t|
diff --git a/db/migrate/011_add_news_comments_count.rb b/db/migrate/011_add_news_comments_count.rb
index 01a283345..a4b285a92 100644
--- a/db/migrate/011_add_news_comments_count.rb
+++ b/db/migrate/011_add_news_comments_count.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddNewsCommentsCount < ActiveRecord::Migration[4.2]
def self.up
add_column :news, :comments_count, :integer, :default => 0, :null => false
diff --git a/db/migrate/012_add_comments_permissions.rb b/db/migrate/012_add_comments_permissions.rb
index e82fb89e9..dbe2eca1d 100644
--- a/db/migrate/012_add_comments_permissions.rb
+++ b/db/migrate/012_add_comments_permissions.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddCommentsPermissions < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
diff --git a/db/migrate/013_create_queries.rb b/db/migrate/013_create_queries.rb
index 578472590..2a5eee5b9 100644
--- a/db/migrate/013_create_queries.rb
+++ b/db/migrate/013_create_queries.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateQueries < ActiveRecord::Migration[4.2]
def self.up
create_table :queries, :force => true do |t|
diff --git a/db/migrate/014_add_queries_permissions.rb b/db/migrate/014_add_queries_permissions.rb
index 07f974900..c93a308e4 100644
--- a/db/migrate/014_add_queries_permissions.rb
+++ b/db/migrate/014_add_queries_permissions.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddQueriesPermissions < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
diff --git a/db/migrate/015_create_repositories.rb b/db/migrate/015_create_repositories.rb
index e8e92bdb9..7bd1cdb81 100644
--- a/db/migrate/015_create_repositories.rb
+++ b/db/migrate/015_create_repositories.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateRepositories < ActiveRecord::Migration[4.2]
def self.up
create_table :repositories, :force => true do |t|
diff --git a/db/migrate/016_add_repositories_permissions.rb b/db/migrate/016_add_repositories_permissions.rb
index 217df3cae..31367405c 100644
--- a/db/migrate/016_add_repositories_permissions.rb
+++ b/db/migrate/016_add_repositories_permissions.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddRepositoriesPermissions < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
diff --git a/db/migrate/017_create_settings.rb b/db/migrate/017_create_settings.rb
index 777e36ed6..8ba233f0f 100644
--- a/db/migrate/017_create_settings.rb
+++ b/db/migrate/017_create_settings.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateSettings < ActiveRecord::Migration[4.2]
def self.up
create_table :settings, :force => true do |t|
diff --git a/db/migrate/018_set_doc_and_files_notifications.rb b/db/migrate/018_set_doc_and_files_notifications.rb
index aca687385..9e7f007b9 100644
--- a/db/migrate/018_set_doc_and_files_notifications.rb
+++ b/db/migrate/018_set_doc_and_files_notifications.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class SetDocAndFilesNotifications < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
diff --git a/db/migrate/019_add_issue_status_position.rb b/db/migrate/019_add_issue_status_position.rb
index 1536bdd0a..e4a067cb7 100644
--- a/db/migrate/019_add_issue_status_position.rb
+++ b/db/migrate/019_add_issue_status_position.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddIssueStatusPosition < ActiveRecord::Migration[4.2]
def self.up
add_column :issue_statuses, :position, :integer, :default => 1
diff --git a/db/migrate/020_add_role_position.rb b/db/migrate/020_add_role_position.rb
index 39a678e1a..7781b12d4 100644
--- a/db/migrate/020_add_role_position.rb
+++ b/db/migrate/020_add_role_position.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddRolePosition < ActiveRecord::Migration[4.2]
def self.up
add_column :roles, :position, :integer, :default => 1
diff --git a/db/migrate/021_add_tracker_position.rb b/db/migrate/021_add_tracker_position.rb
index dca65d109..133e8d1e7 100644
--- a/db/migrate/021_add_tracker_position.rb
+++ b/db/migrate/021_add_tracker_position.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddTrackerPosition < ActiveRecord::Migration[4.2]
def self.up
add_column :trackers, :position, :integer, :default => 1
diff --git a/db/migrate/022_serialize_possibles_values.rb b/db/migrate/022_serialize_possibles_values.rb
index 66905c9c6..b82a4d2d1 100644
--- a/db/migrate/022_serialize_possibles_values.rb
+++ b/db/migrate/022_serialize_possibles_values.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class SerializePossiblesValues < ActiveRecord::Migration[4.2]
def self.up
CustomField.all.each do |field|
diff --git a/db/migrate/023_add_tracker_is_in_roadmap.rb b/db/migrate/023_add_tracker_is_in_roadmap.rb
index 727b1a803..4093b7e4f 100644
--- a/db/migrate/023_add_tracker_is_in_roadmap.rb
+++ b/db/migrate/023_add_tracker_is_in_roadmap.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddTrackerIsInRoadmap < ActiveRecord::Migration[4.2]
def self.up
add_column :trackers, :is_in_roadmap, :boolean, :default => true, :null => false
diff --git a/db/migrate/024_add_roadmap_permission.rb b/db/migrate/024_add_roadmap_permission.rb
index 72aeaeded..dedf72146 100644
--- a/db/migrate/024_add_roadmap_permission.rb
+++ b/db/migrate/024_add_roadmap_permission.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddRoadmapPermission < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
diff --git a/db/migrate/025_add_search_permission.rb b/db/migrate/025_add_search_permission.rb
index 782eeb286..40f2b982a 100644
--- a/db/migrate/025_add_search_permission.rb
+++ b/db/migrate/025_add_search_permission.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddSearchPermission < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
diff --git a/db/migrate/026_add_repository_login_and_password.rb b/db/migrate/026_add_repository_login_and_password.rb
index e26c2333c..06bab50c1 100644
--- a/db/migrate/026_add_repository_login_and_password.rb
+++ b/db/migrate/026_add_repository_login_and_password.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddRepositoryLoginAndPassword < ActiveRecord::Migration[4.2]
def self.up
add_column :repositories, :login, :string, :limit => 60, :default => ""
diff --git a/db/migrate/027_create_wikis.rb b/db/migrate/027_create_wikis.rb
index c40481488..47642427d 100644
--- a/db/migrate/027_create_wikis.rb
+++ b/db/migrate/027_create_wikis.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateWikis < ActiveRecord::Migration[4.2]
def self.up
create_table :wikis do |t|
diff --git a/db/migrate/028_create_wiki_pages.rb b/db/migrate/028_create_wiki_pages.rb
index 95fd6b59b..e72947203 100644
--- a/db/migrate/028_create_wiki_pages.rb
+++ b/db/migrate/028_create_wiki_pages.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateWikiPages < ActiveRecord::Migration[4.2]
def self.up
create_table :wiki_pages do |t|
diff --git a/db/migrate/029_create_wiki_contents.rb b/db/migrate/029_create_wiki_contents.rb
index 662488405..600b70109 100644
--- a/db/migrate/029_create_wiki_contents.rb
+++ b/db/migrate/029_create_wiki_contents.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateWikiContents < ActiveRecord::Migration[4.2]
def self.up
create_table :wiki_contents do |t|
diff --git a/db/migrate/030_add_projects_feeds_permissions.rb b/db/migrate/030_add_projects_feeds_permissions.rb
index 29e31ab14..a2b5cd20a 100644
--- a/db/migrate/030_add_projects_feeds_permissions.rb
+++ b/db/migrate/030_add_projects_feeds_permissions.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddProjectsFeedsPermissions < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
diff --git a/db/migrate/031_add_repository_root_url.rb b/db/migrate/031_add_repository_root_url.rb
index 96ac761e4..2269b09f7 100644
--- a/db/migrate/031_add_repository_root_url.rb
+++ b/db/migrate/031_add_repository_root_url.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddRepositoryRootUrl < ActiveRecord::Migration[4.2]
def self.up
add_column :repositories, :root_url, :string, :limit => 255, :default => ""
diff --git a/db/migrate/032_create_time_entries.rb b/db/migrate/032_create_time_entries.rb
index 0e93dca23..7b0f5974e 100644
--- a/db/migrate/032_create_time_entries.rb
+++ b/db/migrate/032_create_time_entries.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateTimeEntries < ActiveRecord::Migration[4.2]
def self.up
create_table :time_entries do |t|
diff --git a/db/migrate/033_add_timelog_permissions.rb b/db/migrate/033_add_timelog_permissions.rb
index 42889f1e7..f86e4fbb0 100644
--- a/db/migrate/033_add_timelog_permissions.rb
+++ b/db/migrate/033_add_timelog_permissions.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddTimelogPermissions < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
diff --git a/db/migrate/034_create_changesets.rb b/db/migrate/034_create_changesets.rb
index e0180a041..8e87bb8bc 100644
--- a/db/migrate/034_create_changesets.rb
+++ b/db/migrate/034_create_changesets.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateChangesets < ActiveRecord::Migration[4.2]
def self.up
create_table :changesets do |t|
diff --git a/db/migrate/035_create_changes.rb b/db/migrate/035_create_changes.rb
index ed62e4c31..6ec26beb5 100644
--- a/db/migrate/035_create_changes.rb
+++ b/db/migrate/035_create_changes.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateChanges < ActiveRecord::Migration[4.2]
def self.up
create_table :changes do |t|
diff --git a/db/migrate/036_add_changeset_commit_date.rb b/db/migrate/036_add_changeset_commit_date.rb
index 90ce52466..b0918483d 100644
--- a/db/migrate/036_add_changeset_commit_date.rb
+++ b/db/migrate/036_add_changeset_commit_date.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddChangesetCommitDate < ActiveRecord::Migration[4.2]
def self.up
add_column :changesets, :commit_date, :date
diff --git a/db/migrate/037_add_project_identifier.rb b/db/migrate/037_add_project_identifier.rb
index de796d6d1..e8485ccbf 100644
--- a/db/migrate/037_add_project_identifier.rb
+++ b/db/migrate/037_add_project_identifier.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddProjectIdentifier < ActiveRecord::Migration[4.2]
def self.up
add_column :projects, :identifier, :string, :limit => 20
diff --git a/db/migrate/038_add_custom_field_is_filter.rb b/db/migrate/038_add_custom_field_is_filter.rb
index a57c1b036..2f2965600 100644
--- a/db/migrate/038_add_custom_field_is_filter.rb
+++ b/db/migrate/038_add_custom_field_is_filter.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddCustomFieldIsFilter < ActiveRecord::Migration[4.2]
def self.up
add_column :custom_fields, :is_filter, :boolean, :null => false, :default => false
diff --git a/db/migrate/039_create_watchers.rb b/db/migrate/039_create_watchers.rb
index d14cea464..d37310e51 100644
--- a/db/migrate/039_create_watchers.rb
+++ b/db/migrate/039_create_watchers.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateWatchers < ActiveRecord::Migration[4.2]
def self.up
create_table :watchers do |t|
diff --git a/db/migrate/040_create_changesets_issues.rb b/db/migrate/040_create_changesets_issues.rb
index d4aad0f01..204e056aa 100644
--- a/db/migrate/040_create_changesets_issues.rb
+++ b/db/migrate/040_create_changesets_issues.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateChangesetsIssues < ActiveRecord::Migration[4.2]
def self.up
create_table :changesets_issues, :id => false do |t|
diff --git a/db/migrate/041_rename_comment_to_comments.rb b/db/migrate/041_rename_comment_to_comments.rb
index 02391091a..8e2757304 100644
--- a/db/migrate/041_rename_comment_to_comments.rb
+++ b/db/migrate/041_rename_comment_to_comments.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class RenameCommentToComments < ActiveRecord::Migration[4.2]
def self.up
rename_column(:comments, :comment, :comments) if ActiveRecord::Base.connection.columns(Comment.table_name).detect{|c| c.name == "comment"}
diff --git a/db/migrate/042_create_issue_relations.rb b/db/migrate/042_create_issue_relations.rb
index 98ad24fb0..29cb19efb 100644
--- a/db/migrate/042_create_issue_relations.rb
+++ b/db/migrate/042_create_issue_relations.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateIssueRelations < ActiveRecord::Migration[4.2]
def self.up
create_table :issue_relations do |t|
diff --git a/db/migrate/043_add_relations_permissions.rb b/db/migrate/043_add_relations_permissions.rb
index 7250606ed..1426501e1 100644
--- a/db/migrate/043_add_relations_permissions.rb
+++ b/db/migrate/043_add_relations_permissions.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddRelationsPermissions < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
diff --git a/db/migrate/044_set_language_length_to_five.rb b/db/migrate/044_set_language_length_to_five.rb
index 1e600690f..775c19f3b 100644
--- a/db/migrate/044_set_language_length_to_five.rb
+++ b/db/migrate/044_set_language_length_to_five.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class SetLanguageLengthToFive < ActiveRecord::Migration[4.2]
def self.up
change_column :users, :language, :string, :limit => 5, :default => ""
diff --git a/db/migrate/045_create_boards.rb b/db/migrate/045_create_boards.rb
index 49b15edcc..694b3ebfa 100644
--- a/db/migrate/045_create_boards.rb
+++ b/db/migrate/045_create_boards.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateBoards < ActiveRecord::Migration[4.2]
def self.up
create_table :boards do |t|
diff --git a/db/migrate/046_create_messages.rb b/db/migrate/046_create_messages.rb
index 99d39c8d3..895a5e879 100644
--- a/db/migrate/046_create_messages.rb
+++ b/db/migrate/046_create_messages.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateMessages < ActiveRecord::Migration[4.2]
def self.up
create_table :messages do |t|
diff --git a/db/migrate/047_add_boards_permissions.rb b/db/migrate/047_add_boards_permissions.rb
index cf7938e9f..15d91367e 100644
--- a/db/migrate/047_add_boards_permissions.rb
+++ b/db/migrate/047_add_boards_permissions.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddBoardsPermissions < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
diff --git a/db/migrate/048_allow_null_version_effective_date.rb b/db/migrate/048_allow_null_version_effective_date.rb
index 9cce1e3f6..66d23d14f 100644
--- a/db/migrate/048_allow_null_version_effective_date.rb
+++ b/db/migrate/048_allow_null_version_effective_date.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AllowNullVersionEffectiveDate < ActiveRecord::Migration[4.2]
def self.up
change_column :versions, :effective_date, :date, :default => nil, :null => true
diff --git a/db/migrate/049_add_wiki_destroy_page_permission.rb b/db/migrate/049_add_wiki_destroy_page_permission.rb
index bbeb26d8d..8d8ea49c1 100644
--- a/db/migrate/049_add_wiki_destroy_page_permission.rb
+++ b/db/migrate/049_add_wiki_destroy_page_permission.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddWikiDestroyPagePermission < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
diff --git a/db/migrate/050_add_wiki_attachments_permissions.rb b/db/migrate/050_add_wiki_attachments_permissions.rb
index fd5f35891..a0d339b24 100644
--- a/db/migrate/050_add_wiki_attachments_permissions.rb
+++ b/db/migrate/050_add_wiki_attachments_permissions.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddWikiAttachmentsPermissions < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
diff --git a/db/migrate/051_add_project_status.rb b/db/migrate/051_add_project_status.rb
index e7ceade0b..1062f855c 100644
--- a/db/migrate/051_add_project_status.rb
+++ b/db/migrate/051_add_project_status.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddProjectStatus < ActiveRecord::Migration[4.2]
def self.up
add_column :projects, :status, :integer, :default => 1, :null => false
diff --git a/db/migrate/052_add_changes_revision.rb b/db/migrate/052_add_changes_revision.rb
index e9b178480..54e8ab740 100644
--- a/db/migrate/052_add_changes_revision.rb
+++ b/db/migrate/052_add_changes_revision.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddChangesRevision < ActiveRecord::Migration[4.2]
def self.up
add_column :changes, :revision, :string
diff --git a/db/migrate/053_add_changes_branch.rb b/db/migrate/053_add_changes_branch.rb
index d8dbcfd05..6b8e689cf 100644
--- a/db/migrate/053_add_changes_branch.rb
+++ b/db/migrate/053_add_changes_branch.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddChangesBranch < ActiveRecord::Migration[4.2]
def self.up
add_column :changes, :branch, :string
diff --git a/db/migrate/054_add_changesets_scmid.rb b/db/migrate/054_add_changesets_scmid.rb
index 034facb4b..75e1e6df4 100644
--- a/db/migrate/054_add_changesets_scmid.rb
+++ b/db/migrate/054_add_changesets_scmid.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddChangesetsScmid < ActiveRecord::Migration[4.2]
def self.up
add_column :changesets, :scmid, :string
diff --git a/db/migrate/055_add_repositories_type.rb b/db/migrate/055_add_repositories_type.rb
index 5ee43cb36..a9364be2c 100644
--- a/db/migrate/055_add_repositories_type.rb
+++ b/db/migrate/055_add_repositories_type.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddRepositoriesType < ActiveRecord::Migration[4.2]
def self.up
add_column :repositories, :type, :string
diff --git a/db/migrate/056_add_repositories_changes_permission.rb b/db/migrate/056_add_repositories_changes_permission.rb
index 71e23be29..42b7af7d0 100644
--- a/db/migrate/056_add_repositories_changes_permission.rb
+++ b/db/migrate/056_add_repositories_changes_permission.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddRepositoriesChangesPermission < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
diff --git a/db/migrate/057_add_versions_wiki_page_title.rb b/db/migrate/057_add_versions_wiki_page_title.rb
index cb2273598..816b8fd1c 100644
--- a/db/migrate/057_add_versions_wiki_page_title.rb
+++ b/db/migrate/057_add_versions_wiki_page_title.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddVersionsWikiPageTitle < ActiveRecord::Migration[4.2]
def self.up
add_column :versions, :wiki_page_title, :string
diff --git a/db/migrate/058_add_issue_categories_assigned_to_id.rb b/db/migrate/058_add_issue_categories_assigned_to_id.rb
index d17afdc9d..b4f36c0c9 100644
--- a/db/migrate/058_add_issue_categories_assigned_to_id.rb
+++ b/db/migrate/058_add_issue_categories_assigned_to_id.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddIssueCategoriesAssignedToId < ActiveRecord::Migration[4.2]
def self.up
add_column :issue_categories, :assigned_to_id, :integer
diff --git a/db/migrate/059_add_roles_assignable.rb b/db/migrate/059_add_roles_assignable.rb
index 6b4b3f9ca..e2704fb19 100644
--- a/db/migrate/059_add_roles_assignable.rb
+++ b/db/migrate/059_add_roles_assignable.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddRolesAssignable < ActiveRecord::Migration[4.2]
def self.up
add_column :roles, :assignable, :boolean, :default => true
diff --git a/db/migrate/060_change_changesets_committer_limit.rb b/db/migrate/060_change_changesets_committer_limit.rb
index d8a03b8c8..151207433 100644
--- a/db/migrate/060_change_changesets_committer_limit.rb
+++ b/db/migrate/060_change_changesets_committer_limit.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeChangesetsCommitterLimit < ActiveRecord::Migration[4.2]
def self.up
change_column :changesets, :committer, :string, :limit => nil
diff --git a/db/migrate/061_add_roles_builtin.rb b/db/migrate/061_add_roles_builtin.rb
index 65124b02d..e0fc7cba6 100644
--- a/db/migrate/061_add_roles_builtin.rb
+++ b/db/migrate/061_add_roles_builtin.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddRolesBuiltin < ActiveRecord::Migration[4.2]
def self.up
add_column :roles, :builtin, :integer, :default => 0, :null => false
diff --git a/db/migrate/062_insert_builtin_roles.rb b/db/migrate/062_insert_builtin_roles.rb
index 07f902f04..19b940078 100644
--- a/db/migrate/062_insert_builtin_roles.rb
+++ b/db/migrate/062_insert_builtin_roles.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class InsertBuiltinRoles < ActiveRecord::Migration[4.2]
def self.up
Role.reset_column_information
diff --git a/db/migrate/063_add_roles_permissions.rb b/db/migrate/063_add_roles_permissions.rb
index a2626f82c..f0a5bc7c1 100644
--- a/db/migrate/063_add_roles_permissions.rb
+++ b/db/migrate/063_add_roles_permissions.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddRolesPermissions < ActiveRecord::Migration[4.2]
def self.up
add_column :roles, :permissions, :text
diff --git a/db/migrate/064_drop_permissions.rb b/db/migrate/064_drop_permissions.rb
index 6d39519fe..5388d5993 100644
--- a/db/migrate/064_drop_permissions.rb
+++ b/db/migrate/064_drop_permissions.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class DropPermissions < ActiveRecord::Migration[4.2]
def self.up
drop_table :permissions
diff --git a/db/migrate/065_add_settings_updated_on.rb b/db/migrate/065_add_settings_updated_on.rb
index ab0b03a15..51956071c 100644
--- a/db/migrate/065_add_settings_updated_on.rb
+++ b/db/migrate/065_add_settings_updated_on.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddSettingsUpdatedOn < ActiveRecord::Migration[4.2]
def self.up
add_column :settings, :updated_on, :timestamp
diff --git a/db/migrate/066_add_custom_value_customized_index.rb b/db/migrate/066_add_custom_value_customized_index.rb
index da4c72570..69919963a 100644
--- a/db/migrate/066_add_custom_value_customized_index.rb
+++ b/db/migrate/066_add_custom_value_customized_index.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddCustomValueCustomizedIndex < ActiveRecord::Migration[4.2]
def self.up
add_index :custom_values, [:customized_type, :customized_id], :name => :custom_values_customized
diff --git a/db/migrate/067_create_wiki_redirects.rb b/db/migrate/067_create_wiki_redirects.rb
index 54b1d5dbd..651536d18 100644
--- a/db/migrate/067_create_wiki_redirects.rb
+++ b/db/migrate/067_create_wiki_redirects.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateWikiRedirects < ActiveRecord::Migration[4.2]
def self.up
create_table :wiki_redirects do |t|
diff --git a/db/migrate/068_create_enabled_modules.rb b/db/migrate/068_create_enabled_modules.rb
index c836be76b..38be04572 100644
--- a/db/migrate/068_create_enabled_modules.rb
+++ b/db/migrate/068_create_enabled_modules.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateEnabledModules < ActiveRecord::Migration[4.2]
def self.up
create_table :enabled_modules do |t|
diff --git a/db/migrate/069_add_issues_estimated_hours.rb b/db/migrate/069_add_issues_estimated_hours.rb
index d651993e3..a2c7a5be0 100644
--- a/db/migrate/069_add_issues_estimated_hours.rb
+++ b/db/migrate/069_add_issues_estimated_hours.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddIssuesEstimatedHours < ActiveRecord::Migration[4.2]
def self.up
add_column :issues, :estimated_hours, :float
diff --git a/db/migrate/070_change_attachments_content_type_limit.rb b/db/migrate/070_change_attachments_content_type_limit.rb
index ae9f7363a..13241a2dc 100644
--- a/db/migrate/070_change_attachments_content_type_limit.rb
+++ b/db/migrate/070_change_attachments_content_type_limit.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeAttachmentsContentTypeLimit < ActiveRecord::Migration[4.2]
def self.up
change_column :attachments, :content_type, :string, :limit => nil
diff --git a/db/migrate/071_add_queries_column_names.rb b/db/migrate/071_add_queries_column_names.rb
index 5f6873afb..6a25a4e51 100644
--- a/db/migrate/071_add_queries_column_names.rb
+++ b/db/migrate/071_add_queries_column_names.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddQueriesColumnNames < ActiveRecord::Migration[4.2]
def self.up
add_column :queries, :column_names, :text
diff --git a/db/migrate/072_add_enumerations_position.rb b/db/migrate/072_add_enumerations_position.rb
index 804ce0096..95ed89afd 100644
--- a/db/migrate/072_add_enumerations_position.rb
+++ b/db/migrate/072_add_enumerations_position.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddEnumerationsPosition < ActiveRecord::Migration[4.2]
def self.up
add_column(:enumerations, :position, :integer, :default => 1) unless Enumeration.column_names.include?('position')
diff --git a/db/migrate/073_add_enumerations_is_default.rb b/db/migrate/073_add_enumerations_is_default.rb
index 269cbf35a..ff010ec83 100644
--- a/db/migrate/073_add_enumerations_is_default.rb
+++ b/db/migrate/073_add_enumerations_is_default.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddEnumerationsIsDefault < ActiveRecord::Migration[4.2]
def self.up
add_column :enumerations, :is_default, :boolean, :default => false, :null => false
diff --git a/db/migrate/074_add_auth_sources_tls.rb b/db/migrate/074_add_auth_sources_tls.rb
index 298e39e6e..aa02e6cec 100644
--- a/db/migrate/074_add_auth_sources_tls.rb
+++ b/db/migrate/074_add_auth_sources_tls.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddAuthSourcesTls < ActiveRecord::Migration[4.2]
def self.up
add_column :auth_sources, :tls, :boolean, :default => false, :null => false
diff --git a/db/migrate/075_add_members_mail_notification.rb b/db/migrate/075_add_members_mail_notification.rb
index 8722e95fd..ffcc31741 100644
--- a/db/migrate/075_add_members_mail_notification.rb
+++ b/db/migrate/075_add_members_mail_notification.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMembersMailNotification < ActiveRecord::Migration[4.2]
def self.up
add_column :members, :mail_notification, :boolean, :default => false, :null => false
diff --git a/db/migrate/076_allow_null_position.rb b/db/migrate/076_allow_null_position.rb
index a5f396fcd..345601c21 100644
--- a/db/migrate/076_allow_null_position.rb
+++ b/db/migrate/076_allow_null_position.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AllowNullPosition < ActiveRecord::Migration[4.2]
def self.up
Enumeration.reset_column_information
diff --git a/db/migrate/077_remove_issue_statuses_html_color.rb b/db/migrate/077_remove_issue_statuses_html_color.rb
index fdf64ce29..e7f3b3791 100644
--- a/db/migrate/077_remove_issue_statuses_html_color.rb
+++ b/db/migrate/077_remove_issue_statuses_html_color.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class RemoveIssueStatusesHtmlColor < ActiveRecord::Migration[4.2]
def self.up
remove_column :issue_statuses, :html_color
diff --git a/db/migrate/078_add_custom_fields_position.rb b/db/migrate/078_add_custom_fields_position.rb
index ebe84416b..c099559c4 100644
--- a/db/migrate/078_add_custom_fields_position.rb
+++ b/db/migrate/078_add_custom_fields_position.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddCustomFieldsPosition < ActiveRecord::Migration[4.2]
def self.up
add_column(:custom_fields, :position, :integer, :default => 1)
diff --git a/db/migrate/079_add_user_preferences_time_zone.rb b/db/migrate/079_add_user_preferences_time_zone.rb
index fd3ac2c6f..fd118f555 100644
--- a/db/migrate/079_add_user_preferences_time_zone.rb
+++ b/db/migrate/079_add_user_preferences_time_zone.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddUserPreferencesTimeZone < ActiveRecord::Migration[4.2]
def self.up
add_column :user_preferences, :time_zone, :string
diff --git a/db/migrate/080_add_users_type.rb b/db/migrate/080_add_users_type.rb
index 342a99583..5ed74c6b2 100644
--- a/db/migrate/080_add_users_type.rb
+++ b/db/migrate/080_add_users_type.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddUsersType < ActiveRecord::Migration[4.2]
def self.up
add_column :users, :type, :string
diff --git a/db/migrate/081_create_projects_trackers.rb b/db/migrate/081_create_projects_trackers.rb
index 8156e39a8..7075f13f1 100644
--- a/db/migrate/081_create_projects_trackers.rb
+++ b/db/migrate/081_create_projects_trackers.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateProjectsTrackers < ActiveRecord::Migration[4.2]
def self.up
create_table :projects_trackers, :id => false do |t|
diff --git a/db/migrate/082_add_messages_locked.rb b/db/migrate/082_add_messages_locked.rb
index c88533e9f..1f3db2018 100644
--- a/db/migrate/082_add_messages_locked.rb
+++ b/db/migrate/082_add_messages_locked.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMessagesLocked < ActiveRecord::Migration[4.2]
def self.up
add_column :messages, :locked, :boolean, :default => false
diff --git a/db/migrate/083_add_messages_sticky.rb b/db/migrate/083_add_messages_sticky.rb
index aa6dde285..050999e32 100644
--- a/db/migrate/083_add_messages_sticky.rb
+++ b/db/migrate/083_add_messages_sticky.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMessagesSticky < ActiveRecord::Migration[4.2]
def self.up
add_column :messages, :sticky, :integer, :default => 0
diff --git a/db/migrate/084_change_auth_sources_account_limit.rb b/db/migrate/084_change_auth_sources_account_limit.rb
index 4e2870aa0..1bc027297 100644
--- a/db/migrate/084_change_auth_sources_account_limit.rb
+++ b/db/migrate/084_change_auth_sources_account_limit.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeAuthSourcesAccountLimit < ActiveRecord::Migration[4.2]
def self.up
change_column :auth_sources, :account, :string, :limit => nil
diff --git a/db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb b/db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb
index 12c150440..b27d3677b 100644
--- a/db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb
+++ b/db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddRoleTrackerOldStatusIndexToWorkflows < ActiveRecord::Migration[4.2]
def self.up
add_index :workflows, [:role_id, :tracker_id, :old_status_id], :name => :wkfs_role_tracker_old_status
diff --git a/db/migrate/086_add_custom_fields_searchable.rb b/db/migrate/086_add_custom_fields_searchable.rb
index 5ee187577..9b5323621 100644
--- a/db/migrate/086_add_custom_fields_searchable.rb
+++ b/db/migrate/086_add_custom_fields_searchable.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddCustomFieldsSearchable < ActiveRecord::Migration[4.2]
def self.up
add_column :custom_fields, :searchable, :boolean, :default => false
diff --git a/db/migrate/087_change_projects_description_to_text.rb b/db/migrate/087_change_projects_description_to_text.rb
index 0f1d8fe92..961e78a28 100644
--- a/db/migrate/087_change_projects_description_to_text.rb
+++ b/db/migrate/087_change_projects_description_to_text.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeProjectsDescriptionToText < ActiveRecord::Migration[4.2]
def self.up
change_column :projects, :description, :text, :null => true, :default => nil
diff --git a/db/migrate/088_add_custom_fields_default_value.rb b/db/migrate/088_add_custom_fields_default_value.rb
index 1148c0726..1db497328 100644
--- a/db/migrate/088_add_custom_fields_default_value.rb
+++ b/db/migrate/088_add_custom_fields_default_value.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddCustomFieldsDefaultValue < ActiveRecord::Migration[4.2]
def self.up
add_column :custom_fields, :default_value, :text
diff --git a/db/migrate/089_add_attachments_description.rb b/db/migrate/089_add_attachments_description.rb
index f2a9666b6..fed25fe7b 100644
--- a/db/migrate/089_add_attachments_description.rb
+++ b/db/migrate/089_add_attachments_description.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddAttachmentsDescription < ActiveRecord::Migration[4.2]
def self.up
add_column :attachments, :description, :string
diff --git a/db/migrate/090_change_versions_name_limit.rb b/db/migrate/090_change_versions_name_limit.rb
index 5f34cd501..b7f4318a2 100644
--- a/db/migrate/090_change_versions_name_limit.rb
+++ b/db/migrate/090_change_versions_name_limit.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeVersionsNameLimit < ActiveRecord::Migration[4.2]
def self.up
change_column :versions, :name, :string, :limit => nil
diff --git a/db/migrate/091_change_changesets_revision_to_string.rb b/db/migrate/091_change_changesets_revision_to_string.rb
index f92f8f79e..50ad1a770 100644
--- a/db/migrate/091_change_changesets_revision_to_string.rb
+++ b/db/migrate/091_change_changesets_revision_to_string.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeChangesetsRevisionToString < ActiveRecord::Migration[4.2]
def self.up
# Some backends (eg. SQLServer 2012) do not support changing the type
diff --git a/db/migrate/092_change_changes_from_revision_to_string.rb b/db/migrate/092_change_changes_from_revision_to_string.rb
index c91919cc0..3f3c983ea 100644
--- a/db/migrate/092_change_changes_from_revision_to_string.rb
+++ b/db/migrate/092_change_changes_from_revision_to_string.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeChangesFromRevisionToString < ActiveRecord::Migration[4.2]
def self.up
change_column :changes, :from_revision, :string
diff --git a/db/migrate/093_add_wiki_pages_protected.rb b/db/migrate/093_add_wiki_pages_protected.rb
index 6ff72d8c5..a1e47e08d 100644
--- a/db/migrate/093_add_wiki_pages_protected.rb
+++ b/db/migrate/093_add_wiki_pages_protected.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddWikiPagesProtected < ActiveRecord::Migration[4.2]
def self.up
add_column :wiki_pages, :protected, :boolean, :default => false, :null => false
diff --git a/db/migrate/094_change_projects_homepage_limit.rb b/db/migrate/094_change_projects_homepage_limit.rb
index 950c53ede..dfaad1b5a 100644
--- a/db/migrate/094_change_projects_homepage_limit.rb
+++ b/db/migrate/094_change_projects_homepage_limit.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeProjectsHomepageLimit < ActiveRecord::Migration[4.2]
def self.up
change_column :projects, :homepage, :string, :limit => nil, :default => ''
diff --git a/db/migrate/095_add_wiki_pages_parent_id.rb b/db/migrate/095_add_wiki_pages_parent_id.rb
index 6aff1fb4e..1c71ed768 100644
--- a/db/migrate/095_add_wiki_pages_parent_id.rb
+++ b/db/migrate/095_add_wiki_pages_parent_id.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddWikiPagesParentId < ActiveRecord::Migration[4.2]
def self.up
add_column :wiki_pages, :parent_id, :integer, :default => nil
diff --git a/db/migrate/096_add_commit_access_permission.rb b/db/migrate/096_add_commit_access_permission.rb
index 9b5fc66e6..28a3499cf 100644
--- a/db/migrate/096_add_commit_access_permission.rb
+++ b/db/migrate/096_add_commit_access_permission.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddCommitAccessPermission < ActiveRecord::Migration[4.2]
def self.up
Role.all.select { |r| not r.builtin? }.each do |r|
diff --git a/db/migrate/097_add_view_wiki_edits_permission.rb b/db/migrate/097_add_view_wiki_edits_permission.rb
index 1808f72ef..e26644fba 100644
--- a/db/migrate/097_add_view_wiki_edits_permission.rb
+++ b/db/migrate/097_add_view_wiki_edits_permission.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddViewWikiEditsPermission < ActiveRecord::Migration[4.2]
def self.up
Role.all.each do |r|
diff --git a/db/migrate/098_set_topic_authors_as_watchers.rb b/db/migrate/098_set_topic_authors_as_watchers.rb
index 979ae8edc..0474a4461 100644
--- a/db/migrate/098_set_topic_authors_as_watchers.rb
+++ b/db/migrate/098_set_topic_authors_as_watchers.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class SetTopicAuthorsAsWatchers < ActiveRecord::Migration[4.2]
def self.up
# Sets active users who created/replied a topic as watchers of the topic
diff --git a/db/migrate/099_add_delete_wiki_pages_attachments_permission.rb b/db/migrate/099_add_delete_wiki_pages_attachments_permission.rb
index b016bfcb6..5246a2345 100644
--- a/db/migrate/099_add_delete_wiki_pages_attachments_permission.rb
+++ b/db/migrate/099_add_delete_wiki_pages_attachments_permission.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddDeleteWikiPagesAttachmentsPermission < ActiveRecord::Migration[4.2]
def self.up
Role.all.each do |r|
diff --git a/db/migrate/100_add_changesets_user_id.rb b/db/migrate/100_add_changesets_user_id.rb
index 8b722aec6..166605449 100644
--- a/db/migrate/100_add_changesets_user_id.rb
+++ b/db/migrate/100_add_changesets_user_id.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddChangesetsUserId < ActiveRecord::Migration[4.2]
def self.up
add_column :changesets, :user_id, :integer, :default => nil
diff --git a/db/migrate/101_populate_changesets_user_id.rb b/db/migrate/101_populate_changesets_user_id.rb
index 7e7d81d4f..cf7fbae85 100644
--- a/db/migrate/101_populate_changesets_user_id.rb
+++ b/db/migrate/101_populate_changesets_user_id.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class PopulateChangesetsUserId < ActiveRecord::Migration[4.2]
def self.up
committers = Changeset.connection.select_values("SELECT DISTINCT committer FROM #{Changeset.table_name}")
diff --git a/db/migrate/102_add_custom_fields_editable.rb b/db/migrate/102_add_custom_fields_editable.rb
index 28b73cc71..6ac3f1dec 100644
--- a/db/migrate/102_add_custom_fields_editable.rb
+++ b/db/migrate/102_add_custom_fields_editable.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddCustomFieldsEditable < ActiveRecord::Migration[4.2]
def self.up
add_column :custom_fields, :editable, :boolean, :default => true
diff --git a/db/migrate/103_set_custom_fields_editable.rb b/db/migrate/103_set_custom_fields_editable.rb
index c43846c3a..d8a38d168 100644
--- a/db/migrate/103_set_custom_fields_editable.rb
+++ b/db/migrate/103_set_custom_fields_editable.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class SetCustomFieldsEditable < ActiveRecord::Migration[4.2]
def self.up
UserCustomField.update_all("editable = #{CustomField.connection.quoted_false}")
diff --git a/db/migrate/104_add_projects_lft_and_rgt.rb b/db/migrate/104_add_projects_lft_and_rgt.rb
index 77569fc45..c3c90beff 100644
--- a/db/migrate/104_add_projects_lft_and_rgt.rb
+++ b/db/migrate/104_add_projects_lft_and_rgt.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddProjectsLftAndRgt < ActiveRecord::Migration[4.2]
def self.up
add_column :projects, :lft, :integer
diff --git a/db/migrate/105_build_projects_tree.rb b/db/migrate/105_build_projects_tree.rb
index 27ca3dfba..5238ab094 100644
--- a/db/migrate/105_build_projects_tree.rb
+++ b/db/migrate/105_build_projects_tree.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class BuildProjectsTree < ActiveRecord::Migration[4.2]
def self.up
Project.rebuild_tree!
diff --git a/db/migrate/106_remove_projects_projects_count.rb b/db/migrate/106_remove_projects_projects_count.rb
index 4f14974da..d955bb80b 100644
--- a/db/migrate/106_remove_projects_projects_count.rb
+++ b/db/migrate/106_remove_projects_projects_count.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class RemoveProjectsProjectsCount < ActiveRecord::Migration[4.2]
def self.up
remove_column :projects, :projects_count
diff --git a/db/migrate/107_add_open_id_authentication_tables.rb b/db/migrate/107_add_open_id_authentication_tables.rb
index 3d6d6e9b5..f513b6ed9 100644
--- a/db/migrate/107_add_open_id_authentication_tables.rb
+++ b/db/migrate/107_add_open_id_authentication_tables.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddOpenIdAuthenticationTables < ActiveRecord::Migration[4.2]
def self.up
create_table :open_id_authentication_associations, :force => true do |t|
diff --git a/db/migrate/108_add_identity_url_to_users.rb b/db/migrate/108_add_identity_url_to_users.rb
index 009743c0b..3ad85693c 100644
--- a/db/migrate/108_add_identity_url_to_users.rb
+++ b/db/migrate/108_add_identity_url_to_users.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddIdentityUrlToUsers < ActiveRecord::Migration[4.2]
def self.up
add_column :users, :identity_url, :string
diff --git a/db/migrate/20090214190337_add_watchers_user_id_type_index.rb b/db/migrate/20090214190337_add_watchers_user_id_type_index.rb
index c60a3b2ee..a437905b3 100644
--- a/db/migrate/20090214190337_add_watchers_user_id_type_index.rb
+++ b/db/migrate/20090214190337_add_watchers_user_id_type_index.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddWatchersUserIdTypeIndex < ActiveRecord::Migration[4.2]
def self.up
add_index :watchers, [:user_id, :watchable_type], :name => :watchers_user_id_type
diff --git a/db/migrate/20090312172426_add_queries_sort_criteria.rb b/db/migrate/20090312172426_add_queries_sort_criteria.rb
index c5bc030fb..06d1a82e4 100644
--- a/db/migrate/20090312172426_add_queries_sort_criteria.rb
+++ b/db/migrate/20090312172426_add_queries_sort_criteria.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddQueriesSortCriteria < ActiveRecord::Migration[4.2]
def self.up
add_column :queries, :sort_criteria, :text
diff --git a/db/migrate/20090312194159_add_projects_trackers_unique_index.rb b/db/migrate/20090312194159_add_projects_trackers_unique_index.rb
index 24fb6c293..0957f736e 100644
--- a/db/migrate/20090312194159_add_projects_trackers_unique_index.rb
+++ b/db/migrate/20090312194159_add_projects_trackers_unique_index.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddProjectsTrackersUniqueIndex < ActiveRecord::Migration[4.2]
def self.up
remove_duplicates
diff --git a/db/migrate/20090318181151_extend_settings_name.rb b/db/migrate/20090318181151_extend_settings_name.rb
index 1091dac7e..228f4875c 100644
--- a/db/migrate/20090318181151_extend_settings_name.rb
+++ b/db/migrate/20090318181151_extend_settings_name.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ExtendSettingsName < ActiveRecord::Migration[4.2]
def self.up
change_column :settings, :name, :string, :limit => 255, :default => '', :null => false
diff --git a/db/migrate/20090323224724_add_type_to_enumerations.rb b/db/migrate/20090323224724_add_type_to_enumerations.rb
index 100468d4b..8832d1321 100644
--- a/db/migrate/20090323224724_add_type_to_enumerations.rb
+++ b/db/migrate/20090323224724_add_type_to_enumerations.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddTypeToEnumerations < ActiveRecord::Migration[4.2]
def self.up
add_column :enumerations, :type, :string
diff --git a/db/migrate/20090401221305_update_enumerations_to_sti.rb b/db/migrate/20090401221305_update_enumerations_to_sti.rb
index 1ba41076e..86610ae62 100644
--- a/db/migrate/20090401221305_update_enumerations_to_sti.rb
+++ b/db/migrate/20090401221305_update_enumerations_to_sti.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class UpdateEnumerationsToSti < ActiveRecord::Migration[4.2]
def self.up
Enumeration.where("opt = 'IPRI'").update_all("type = 'IssuePriority'")
diff --git a/db/migrate/20090401231134_add_active_field_to_enumerations.rb b/db/migrate/20090401231134_add_active_field_to_enumerations.rb
index 5b9e432b5..b867427cc 100644
--- a/db/migrate/20090401231134_add_active_field_to_enumerations.rb
+++ b/db/migrate/20090401231134_add_active_field_to_enumerations.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddActiveFieldToEnumerations < ActiveRecord::Migration[4.2]
def self.up
add_column :enumerations, :active, :boolean, :default => true, :null => false
diff --git a/db/migrate/20090403001910_add_project_to_enumerations.rb b/db/migrate/20090403001910_add_project_to_enumerations.rb
index a90928949..756328263 100644
--- a/db/migrate/20090403001910_add_project_to_enumerations.rb
+++ b/db/migrate/20090403001910_add_project_to_enumerations.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddProjectToEnumerations < ActiveRecord::Migration[4.2]
def self.up
add_column :enumerations, :project_id, :integer, :null => true, :default => nil
diff --git a/db/migrate/20090406161854_add_parent_id_to_enumerations.rb b/db/migrate/20090406161854_add_parent_id_to_enumerations.rb
index 546c0b704..6081be482 100644
--- a/db/migrate/20090406161854_add_parent_id_to_enumerations.rb
+++ b/db/migrate/20090406161854_add_parent_id_to_enumerations.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddParentIdToEnumerations < ActiveRecord::Migration[4.2]
def self.up
add_column :enumerations, :parent_id, :integer, :null => true, :default => nil
diff --git a/db/migrate/20090425161243_add_queries_group_by.rb b/db/migrate/20090425161243_add_queries_group_by.rb
index 07e1c5938..83d9a21d8 100644
--- a/db/migrate/20090425161243_add_queries_group_by.rb
+++ b/db/migrate/20090425161243_add_queries_group_by.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddQueriesGroupBy < ActiveRecord::Migration[4.2]
def self.up
add_column :queries, :group_by, :string
diff --git a/db/migrate/20090503121501_create_member_roles.rb b/db/migrate/20090503121501_create_member_roles.rb
index 69ce2e81f..9df6c7c60 100644
--- a/db/migrate/20090503121501_create_member_roles.rb
+++ b/db/migrate/20090503121501_create_member_roles.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateMemberRoles < ActiveRecord::Migration[4.2]
def self.up
create_table :member_roles do |t|
diff --git a/db/migrate/20090503121505_populate_member_roles.rb b/db/migrate/20090503121505_populate_member_roles.rb
index e5f246afa..194a70c71 100644
--- a/db/migrate/20090503121505_populate_member_roles.rb
+++ b/db/migrate/20090503121505_populate_member_roles.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class PopulateMemberRoles < ActiveRecord::Migration[4.2]
def self.up
MemberRole.delete_all
diff --git a/db/migrate/20090503121510_drop_members_role_id.rb b/db/migrate/20090503121510_drop_members_role_id.rb
index 7b8e3cf9a..c740a5def 100644
--- a/db/migrate/20090503121510_drop_members_role_id.rb
+++ b/db/migrate/20090503121510_drop_members_role_id.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class DropMembersRoleId < ActiveRecord::Migration[4.2]
def self.up
remove_column :members, :role_id
diff --git a/db/migrate/20090614091200_fix_messages_sticky_null.rb b/db/migrate/20090614091200_fix_messages_sticky_null.rb
index 66ea4bf2c..5681b36d0 100644
--- a/db/migrate/20090614091200_fix_messages_sticky_null.rb
+++ b/db/migrate/20090614091200_fix_messages_sticky_null.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class FixMessagesStickyNull < ActiveRecord::Migration[4.2]
def self.up
Message.where('sticky IS NULL').update_all('sticky = 0')
diff --git a/db/migrate/20090704172350_populate_users_type.rb b/db/migrate/20090704172350_populate_users_type.rb
index 8342f9774..e82cef41c 100644
--- a/db/migrate/20090704172350_populate_users_type.rb
+++ b/db/migrate/20090704172350_populate_users_type.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class PopulateUsersType < ActiveRecord::Migration[4.2]
def self.up
Principal.where("type IS NULL").update_all("type = 'User'")
diff --git a/db/migrate/20090704172355_create_groups_users.rb b/db/migrate/20090704172355_create_groups_users.rb
index 6d676304f..6fa2ae633 100644
--- a/db/migrate/20090704172355_create_groups_users.rb
+++ b/db/migrate/20090704172355_create_groups_users.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateGroupsUsers < ActiveRecord::Migration[4.2]
def self.up
create_table :groups_users, :id => false do |t|
diff --git a/db/migrate/20090704172358_add_member_roles_inherited_from.rb b/db/migrate/20090704172358_add_member_roles_inherited_from.rb
index 45f0e45a4..f4573455a 100644
--- a/db/migrate/20090704172358_add_member_roles_inherited_from.rb
+++ b/db/migrate/20090704172358_add_member_roles_inherited_from.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMemberRolesInheritedFrom < ActiveRecord::Migration[4.2]
def self.up
add_column :member_roles, :inherited_from, :integer
diff --git a/db/migrate/20091010093521_fix_users_custom_values.rb b/db/migrate/20091010093521_fix_users_custom_values.rb
index 38cabac86..d2d6026f0 100644
--- a/db/migrate/20091010093521_fix_users_custom_values.rb
+++ b/db/migrate/20091010093521_fix_users_custom_values.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class FixUsersCustomValues < ActiveRecord::Migration[4.2]
def self.up
CustomValue.where("customized_type = 'User'").
diff --git a/db/migrate/20091017212227_add_missing_indexes_to_workflows.rb b/db/migrate/20091017212227_add_missing_indexes_to_workflows.rb
index bf84c4f03..08717aafd 100644
--- a/db/migrate/20091017212227_add_missing_indexes_to_workflows.rb
+++ b/db/migrate/20091017212227_add_missing_indexes_to_workflows.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToWorkflows < ActiveRecord::Migration[4.2]
def self.up
add_index :workflows, :old_status_id
diff --git a/db/migrate/20091017212457_add_missing_indexes_to_custom_fields_projects.rb b/db/migrate/20091017212457_add_missing_indexes_to_custom_fields_projects.rb
index 235f1e6ed..1c78c227e 100644
--- a/db/migrate/20091017212457_add_missing_indexes_to_custom_fields_projects.rb
+++ b/db/migrate/20091017212457_add_missing_indexes_to_custom_fields_projects.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToCustomFieldsProjects < ActiveRecord::Migration[4.2]
def self.up
add_index :custom_fields_projects, [:custom_field_id, :project_id]
diff --git a/db/migrate/20091017212644_add_missing_indexes_to_messages.rb b/db/migrate/20091017212644_add_missing_indexes_to_messages.rb
index 06897e1c0..8fafa3fe0 100644
--- a/db/migrate/20091017212644_add_missing_indexes_to_messages.rb
+++ b/db/migrate/20091017212644_add_missing_indexes_to_messages.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToMessages < ActiveRecord::Migration[4.2]
def self.up
add_index :messages, :last_reply_id
diff --git a/db/migrate/20091017212938_add_missing_indexes_to_repositories.rb b/db/migrate/20091017212938_add_missing_indexes_to_repositories.rb
index c9ac3f120..8c6540d5d 100644
--- a/db/migrate/20091017212938_add_missing_indexes_to_repositories.rb
+++ b/db/migrate/20091017212938_add_missing_indexes_to_repositories.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToRepositories < ActiveRecord::Migration[4.2]
def self.up
add_index :repositories, :project_id
diff --git a/db/migrate/20091017213027_add_missing_indexes_to_comments.rb b/db/migrate/20091017213027_add_missing_indexes_to_comments.rb
index 4bb8c0010..607ed49fa 100644
--- a/db/migrate/20091017213027_add_missing_indexes_to_comments.rb
+++ b/db/migrate/20091017213027_add_missing_indexes_to_comments.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToComments < ActiveRecord::Migration[4.2]
def self.up
add_index :comments, [:commented_id, :commented_type]
diff --git a/db/migrate/20091017213113_add_missing_indexes_to_enumerations.rb b/db/migrate/20091017213113_add_missing_indexes_to_enumerations.rb
index e97b993da..6ecd71acd 100644
--- a/db/migrate/20091017213113_add_missing_indexes_to_enumerations.rb
+++ b/db/migrate/20091017213113_add_missing_indexes_to_enumerations.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToEnumerations < ActiveRecord::Migration[4.2]
def self.up
add_index :enumerations, [:id, :type]
diff --git a/db/migrate/20091017213151_add_missing_indexes_to_wiki_pages.rb b/db/migrate/20091017213151_add_missing_indexes_to_wiki_pages.rb
index edeca8da7..6220710ed 100644
--- a/db/migrate/20091017213151_add_missing_indexes_to_wiki_pages.rb
+++ b/db/migrate/20091017213151_add_missing_indexes_to_wiki_pages.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToWikiPages < ActiveRecord::Migration[4.2]
def self.up
add_index :wiki_pages, :wiki_id
diff --git a/db/migrate/20091017213228_add_missing_indexes_to_watchers.rb b/db/migrate/20091017213228_add_missing_indexes_to_watchers.rb
index 18e948ec6..226af06c2 100644
--- a/db/migrate/20091017213228_add_missing_indexes_to_watchers.rb
+++ b/db/migrate/20091017213228_add_missing_indexes_to_watchers.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToWatchers < ActiveRecord::Migration[4.2]
def self.up
add_index :watchers, :user_id
diff --git a/db/migrate/20091017213257_add_missing_indexes_to_auth_sources.rb b/db/migrate/20091017213257_add_missing_indexes_to_auth_sources.rb
index eca45226d..148db14f1 100644
--- a/db/migrate/20091017213257_add_missing_indexes_to_auth_sources.rb
+++ b/db/migrate/20091017213257_add_missing_indexes_to_auth_sources.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToAuthSources < ActiveRecord::Migration[4.2]
def self.up
add_index :auth_sources, [:id, :type]
diff --git a/db/migrate/20091017213332_add_missing_indexes_to_documents.rb b/db/migrate/20091017213332_add_missing_indexes_to_documents.rb
index a4e7e95dc..8846b7d8b 100644
--- a/db/migrate/20091017213332_add_missing_indexes_to_documents.rb
+++ b/db/migrate/20091017213332_add_missing_indexes_to_documents.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToDocuments < ActiveRecord::Migration[4.2]
def self.up
add_index :documents, :category_id
diff --git a/db/migrate/20091017213444_add_missing_indexes_to_tokens.rb b/db/migrate/20091017213444_add_missing_indexes_to_tokens.rb
index 27ce82a93..dad7007e4 100644
--- a/db/migrate/20091017213444_add_missing_indexes_to_tokens.rb
+++ b/db/migrate/20091017213444_add_missing_indexes_to_tokens.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToTokens < ActiveRecord::Migration[4.2]
def self.up
add_index :tokens, :user_id
diff --git a/db/migrate/20091017213536_add_missing_indexes_to_changesets.rb b/db/migrate/20091017213536_add_missing_indexes_to_changesets.rb
index a71910841..8cdeef433 100644
--- a/db/migrate/20091017213536_add_missing_indexes_to_changesets.rb
+++ b/db/migrate/20091017213536_add_missing_indexes_to_changesets.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToChangesets < ActiveRecord::Migration[4.2]
def self.up
add_index :changesets, :user_id
diff --git a/db/migrate/20091017213642_add_missing_indexes_to_issue_categories.rb b/db/migrate/20091017213642_add_missing_indexes_to_issue_categories.rb
index 0a6282aa7..63becab40 100644
--- a/db/migrate/20091017213642_add_missing_indexes_to_issue_categories.rb
+++ b/db/migrate/20091017213642_add_missing_indexes_to_issue_categories.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToIssueCategories < ActiveRecord::Migration[4.2]
def self.up
add_index :issue_categories, :assigned_to_id
diff --git a/db/migrate/20091017213716_add_missing_indexes_to_member_roles.rb b/db/migrate/20091017213716_add_missing_indexes_to_member_roles.rb
index fed50d62e..421c91f32 100644
--- a/db/migrate/20091017213716_add_missing_indexes_to_member_roles.rb
+++ b/db/migrate/20091017213716_add_missing_indexes_to_member_roles.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToMemberRoles < ActiveRecord::Migration[4.2]
def self.up
add_index :member_roles, :member_id
diff --git a/db/migrate/20091017213757_add_missing_indexes_to_boards.rb b/db/migrate/20091017213757_add_missing_indexes_to_boards.rb
index 5e5a97af5..2d11e15ba 100644
--- a/db/migrate/20091017213757_add_missing_indexes_to_boards.rb
+++ b/db/migrate/20091017213757_add_missing_indexes_to_boards.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToBoards < ActiveRecord::Migration[4.2]
def self.up
add_index :boards, :last_message_id
diff --git a/db/migrate/20091017213835_add_missing_indexes_to_user_preferences.rb b/db/migrate/20091017213835_add_missing_indexes_to_user_preferences.rb
index 83a259e59..4012ed682 100644
--- a/db/migrate/20091017213835_add_missing_indexes_to_user_preferences.rb
+++ b/db/migrate/20091017213835_add_missing_indexes_to_user_preferences.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToUserPreferences < ActiveRecord::Migration[4.2]
def self.up
add_index :user_preferences, :user_id
diff --git a/db/migrate/20091017213910_add_missing_indexes_to_issues.rb b/db/migrate/20091017213910_add_missing_indexes_to_issues.rb
index a337ebca8..122898113 100644
--- a/db/migrate/20091017213910_add_missing_indexes_to_issues.rb
+++ b/db/migrate/20091017213910_add_missing_indexes_to_issues.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToIssues < ActiveRecord::Migration[4.2]
def self.up
add_index :issues, :status_id
diff --git a/db/migrate/20091017214015_add_missing_indexes_to_members.rb b/db/migrate/20091017214015_add_missing_indexes_to_members.rb
index 693258080..97d3a6a26 100644
--- a/db/migrate/20091017214015_add_missing_indexes_to_members.rb
+++ b/db/migrate/20091017214015_add_missing_indexes_to_members.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToMembers < ActiveRecord::Migration[4.2]
def self.up
add_index :members, :user_id
diff --git a/db/migrate/20091017214107_add_missing_indexes_to_custom_fields.rb b/db/migrate/20091017214107_add_missing_indexes_to_custom_fields.rb
index 7dbb0e781..c09214878 100644
--- a/db/migrate/20091017214107_add_missing_indexes_to_custom_fields.rb
+++ b/db/migrate/20091017214107_add_missing_indexes_to_custom_fields.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToCustomFields < ActiveRecord::Migration[4.2]
def self.up
add_index :custom_fields, [:id, :type]
diff --git a/db/migrate/20091017214136_add_missing_indexes_to_queries.rb b/db/migrate/20091017214136_add_missing_indexes_to_queries.rb
index 9a8d6ad96..d263e9e30 100644
--- a/db/migrate/20091017214136_add_missing_indexes_to_queries.rb
+++ b/db/migrate/20091017214136_add_missing_indexes_to_queries.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToQueries < ActiveRecord::Migration[4.2]
def self.up
add_index :queries, :project_id
diff --git a/db/migrate/20091017214236_add_missing_indexes_to_time_entries.rb b/db/migrate/20091017214236_add_missing_indexes_to_time_entries.rb
index cbe4166d5..0d20abd70 100644
--- a/db/migrate/20091017214236_add_missing_indexes_to_time_entries.rb
+++ b/db/migrate/20091017214236_add_missing_indexes_to_time_entries.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToTimeEntries < ActiveRecord::Migration[4.2]
def self.up
add_index :time_entries, :activity_id
diff --git a/db/migrate/20091017214308_add_missing_indexes_to_news.rb b/db/migrate/20091017214308_add_missing_indexes_to_news.rb
index e6194f4e6..b01945238 100644
--- a/db/migrate/20091017214308_add_missing_indexes_to_news.rb
+++ b/db/migrate/20091017214308_add_missing_indexes_to_news.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToNews < ActiveRecord::Migration[4.2]
def self.up
add_index :news, :author_id
diff --git a/db/migrate/20091017214336_add_missing_indexes_to_users.rb b/db/migrate/20091017214336_add_missing_indexes_to_users.rb
index 7eedd10fa..7e69e4e98 100644
--- a/db/migrate/20091017214336_add_missing_indexes_to_users.rb
+++ b/db/migrate/20091017214336_add_missing_indexes_to_users.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToUsers < ActiveRecord::Migration[4.2]
def self.up
add_index :users, [:id, :type]
diff --git a/db/migrate/20091017214406_add_missing_indexes_to_attachments.rb b/db/migrate/20091017214406_add_missing_indexes_to_attachments.rb
index 7fee1ea2e..45a21daf9 100644
--- a/db/migrate/20091017214406_add_missing_indexes_to_attachments.rb
+++ b/db/migrate/20091017214406_add_missing_indexes_to_attachments.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToAttachments < ActiveRecord::Migration[4.2]
def self.up
add_index :attachments, [:container_id, :container_type]
diff --git a/db/migrate/20091017214440_add_missing_indexes_to_wiki_contents.rb b/db/migrate/20091017214440_add_missing_indexes_to_wiki_contents.rb
index 47888d4ad..dae71c7e9 100644
--- a/db/migrate/20091017214440_add_missing_indexes_to_wiki_contents.rb
+++ b/db/migrate/20091017214440_add_missing_indexes_to_wiki_contents.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToWikiContents < ActiveRecord::Migration[4.2]
def self.up
add_index :wiki_contents, :author_id
diff --git a/db/migrate/20091017214519_add_missing_indexes_to_custom_values.rb b/db/migrate/20091017214519_add_missing_indexes_to_custom_values.rb
index 8b83c640d..f73465c32 100644
--- a/db/migrate/20091017214519_add_missing_indexes_to_custom_values.rb
+++ b/db/migrate/20091017214519_add_missing_indexes_to_custom_values.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToCustomValues < ActiveRecord::Migration[4.2]
def self.up
add_index :custom_values, :custom_field_id
diff --git a/db/migrate/20091017214611_add_missing_indexes_to_journals.rb b/db/migrate/20091017214611_add_missing_indexes_to_journals.rb
index 26e37bf03..4deed673c 100644
--- a/db/migrate/20091017214611_add_missing_indexes_to_journals.rb
+++ b/db/migrate/20091017214611_add_missing_indexes_to_journals.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToJournals < ActiveRecord::Migration[4.2]
def self.up
add_index :journals, :user_id
diff --git a/db/migrate/20091017214644_add_missing_indexes_to_issue_relations.rb b/db/migrate/20091017214644_add_missing_indexes_to_issue_relations.rb
index 29de45f62..8392b800f 100644
--- a/db/migrate/20091017214644_add_missing_indexes_to_issue_relations.rb
+++ b/db/migrate/20091017214644_add_missing_indexes_to_issue_relations.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToIssueRelations < ActiveRecord::Migration[4.2]
def self.up
add_index :issue_relations, :issue_from_id
diff --git a/db/migrate/20091017214720_add_missing_indexes_to_wiki_redirects.rb b/db/migrate/20091017214720_add_missing_indexes_to_wiki_redirects.rb
index a0ce07f8b..f47d6b3b2 100644
--- a/db/migrate/20091017214720_add_missing_indexes_to_wiki_redirects.rb
+++ b/db/migrate/20091017214720_add_missing_indexes_to_wiki_redirects.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToWikiRedirects < ActiveRecord::Migration[4.2]
def self.up
add_index :wiki_redirects, :wiki_id
diff --git a/db/migrate/20091017214750_add_missing_indexes_to_custom_fields_trackers.rb b/db/migrate/20091017214750_add_missing_indexes_to_custom_fields_trackers.rb
index 23b6e5e4f..9c0159c7f 100644
--- a/db/migrate/20091017214750_add_missing_indexes_to_custom_fields_trackers.rb
+++ b/db/migrate/20091017214750_add_missing_indexes_to_custom_fields_trackers.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddMissingIndexesToCustomFieldsTrackers < ActiveRecord::Migration[4.2]
def self.up
add_index :custom_fields_trackers, [:custom_field_id, :tracker_id]
diff --git a/db/migrate/20091025163651_add_activity_indexes.rb b/db/migrate/20091025163651_add_activity_indexes.rb
index 0bbf91bfd..4915bf04e 100644
--- a/db/migrate/20091025163651_add_activity_indexes.rb
+++ b/db/migrate/20091025163651_add_activity_indexes.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddActivityIndexes < ActiveRecord::Migration[4.2]
def self.up
add_index :journals, :created_on
diff --git a/db/migrate/20091108092559_add_versions_status.rb b/db/migrate/20091108092559_add_versions_status.rb
index 36db4d823..f67d6e235 100644
--- a/db/migrate/20091108092559_add_versions_status.rb
+++ b/db/migrate/20091108092559_add_versions_status.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddVersionsStatus < ActiveRecord::Migration[4.2]
def self.up
add_column :versions, :status, :string, :default => 'open'
diff --git a/db/migrate/20091114105931_add_view_issues_permission.rb b/db/migrate/20091114105931_add_view_issues_permission.rb
index a0a9bcbf4..a7cf16d75 100644
--- a/db/migrate/20091114105931_add_view_issues_permission.rb
+++ b/db/migrate/20091114105931_add_view_issues_permission.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddViewIssuesPermission < ActiveRecord::Migration[4.2]
def self.up
Role.reset_column_information
diff --git a/db/migrate/20091123212029_add_default_done_ratio_to_issue_status.rb b/db/migrate/20091123212029_add_default_done_ratio_to_issue_status.rb
index 2b9df4f17..47850e0ce 100644
--- a/db/migrate/20091123212029_add_default_done_ratio_to_issue_status.rb
+++ b/db/migrate/20091123212029_add_default_done_ratio_to_issue_status.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddDefaultDoneRatioToIssueStatus < ActiveRecord::Migration[4.2]
def self.up
add_column :issue_statuses, :default_done_ratio, :integer
diff --git a/db/migrate/20091205124427_add_versions_sharing.rb b/db/migrate/20091205124427_add_versions_sharing.rb
index 815f9fcda..30fb317b9 100644
--- a/db/migrate/20091205124427_add_versions_sharing.rb
+++ b/db/migrate/20091205124427_add_versions_sharing.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddVersionsSharing < ActiveRecord::Migration[4.2]
def self.up
add_column :versions, :sharing, :string, :default => 'none', :null => false
diff --git a/db/migrate/20091220183509_add_lft_and_rgt_indexes_to_projects.rb b/db/migrate/20091220183509_add_lft_and_rgt_indexes_to_projects.rb
index 8ec510851..536c1d116 100644
--- a/db/migrate/20091220183509_add_lft_and_rgt_indexes_to_projects.rb
+++ b/db/migrate/20091220183509_add_lft_and_rgt_indexes_to_projects.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddLftAndRgtIndexesToProjects < ActiveRecord::Migration[4.2]
def self.up
add_index :projects, :lft
diff --git a/db/migrate/20091220183727_add_index_to_settings_name.rb b/db/migrate/20091220183727_add_index_to_settings_name.rb
index 51a33b179..c5284ea0b 100644
--- a/db/migrate/20091220183727_add_index_to_settings_name.rb
+++ b/db/migrate/20091220183727_add_index_to_settings_name.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddIndexToSettingsName < ActiveRecord::Migration[4.2]
def self.up
add_index :settings, :name
diff --git a/db/migrate/20091220184736_add_indexes_to_issue_status.rb b/db/migrate/20091220184736_add_indexes_to_issue_status.rb
index 9b943518b..fa007a49e 100644
--- a/db/migrate/20091220184736_add_indexes_to_issue_status.rb
+++ b/db/migrate/20091220184736_add_indexes_to_issue_status.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddIndexesToIssueStatus < ActiveRecord::Migration[4.2]
def self.up
add_index :issue_statuses, :position
diff --git a/db/migrate/20091225164732_remove_enumerations_opt.rb b/db/migrate/20091225164732_remove_enumerations_opt.rb
index ee39d5b50..750947f70 100644
--- a/db/migrate/20091225164732_remove_enumerations_opt.rb
+++ b/db/migrate/20091225164732_remove_enumerations_opt.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class RemoveEnumerationsOpt < ActiveRecord::Migration[4.2]
def self.up
remove_column :enumerations, :opt
diff --git a/db/migrate/20091227112908_change_wiki_contents_text_limit.rb b/db/migrate/20091227112908_change_wiki_contents_text_limit.rb
index d60a9a846..ced7980fd 100644
--- a/db/migrate/20091227112908_change_wiki_contents_text_limit.rb
+++ b/db/migrate/20091227112908_change_wiki_contents_text_limit.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeWikiContentsTextLimit < ActiveRecord::Migration[4.2]
def self.up
# Migrates MySQL databases only
diff --git a/db/migrate/20100129193402_change_users_mail_notification_to_string.rb b/db/migrate/20100129193402_change_users_mail_notification_to_string.rb
index a31666e39..6498f0f66 100644
--- a/db/migrate/20100129193402_change_users_mail_notification_to_string.rb
+++ b/db/migrate/20100129193402_change_users_mail_notification_to_string.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeUsersMailNotificationToString < ActiveRecord::Migration[4.2]
def self.up
rename_column :users, :mail_notification, :mail_notification_bool
diff --git a/db/migrate/20100129193813_update_mail_notification_values.rb b/db/migrate/20100129193813_update_mail_notification_values.rb
index 00d3a0478..3d1d27c5d 100644
--- a/db/migrate/20100129193813_update_mail_notification_values.rb
+++ b/db/migrate/20100129193813_update_mail_notification_values.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Patch the data from a boolean change.
class UpdateMailNotificationValues < ActiveRecord::Migration[4.2]
def self.up
diff --git a/db/migrate/20100221100219_add_index_on_changesets_scmid.rb b/db/migrate/20100221100219_add_index_on_changesets_scmid.rb
index cef4be583..8629af442 100644
--- a/db/migrate/20100221100219_add_index_on_changesets_scmid.rb
+++ b/db/migrate/20100221100219_add_index_on_changesets_scmid.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddIndexOnChangesetsScmid < ActiveRecord::Migration[4.2]
def self.up
add_index :changesets, [:repository_id, :scmid], :name => :changesets_repos_scmid
diff --git a/db/migrate/20100313132032_add_issues_nested_sets_columns.rb b/db/migrate/20100313132032_add_issues_nested_sets_columns.rb
index a7e5ceeb1..64960f992 100644
--- a/db/migrate/20100313132032_add_issues_nested_sets_columns.rb
+++ b/db/migrate/20100313132032_add_issues_nested_sets_columns.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddIssuesNestedSetsColumns < ActiveRecord::Migration[4.2]
def self.up
add_column :issues, :parent_id, :integer, :default => nil
diff --git a/db/migrate/20100313171051_add_index_on_issues_nested_set.rb b/db/migrate/20100313171051_add_index_on_issues_nested_set.rb
index b624c2249..1bc0d208c 100644
--- a/db/migrate/20100313171051_add_index_on_issues_nested_set.rb
+++ b/db/migrate/20100313171051_add_index_on_issues_nested_set.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddIndexOnIssuesNestedSet < ActiveRecord::Migration[4.2]
def self.up
add_index :issues, [:root_id, :lft, :rgt]
diff --git a/db/migrate/20100705164950_change_changes_path_length_limit.rb b/db/migrate/20100705164950_change_changes_path_length_limit.rb
index f40ca0852..f88f15cdf 100644
--- a/db/migrate/20100705164950_change_changes_path_length_limit.rb
+++ b/db/migrate/20100705164950_change_changes_path_length_limit.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeChangesPathLengthLimit < ActiveRecord::Migration[4.2]
def self.up
# these are two steps to please MySQL 5 on Win32
diff --git a/db/migrate/20100819172912_enable_calendar_and_gantt_modules_where_appropriate.rb b/db/migrate/20100819172912_enable_calendar_and_gantt_modules_where_appropriate.rb
index 2e178e549..c68fb4864 100644
--- a/db/migrate/20100819172912_enable_calendar_and_gantt_modules_where_appropriate.rb
+++ b/db/migrate/20100819172912_enable_calendar_and_gantt_modules_where_appropriate.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class EnableCalendarAndGanttModulesWhereAppropriate < ActiveRecord::Migration[4.2]
def self.up
EnabledModule.where(:name => 'issue_tracking').each do |e|
diff --git a/db/migrate/20101104182107_add_unique_index_on_members.rb b/db/migrate/20101104182107_add_unique_index_on_members.rb
index a29fc75b8..0a0800086 100644
--- a/db/migrate/20101104182107_add_unique_index_on_members.rb
+++ b/db/migrate/20101104182107_add_unique_index_on_members.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddUniqueIndexOnMembers < ActiveRecord::Migration[4.2]
def self.up
# Clean and reassign MemberRole rows if needed
diff --git a/db/migrate/20101107130441_add_custom_fields_visible.rb b/db/migrate/20101107130441_add_custom_fields_visible.rb
index d3edb145f..a8e27dbb6 100644
--- a/db/migrate/20101107130441_add_custom_fields_visible.rb
+++ b/db/migrate/20101107130441_add_custom_fields_visible.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddCustomFieldsVisible < ActiveRecord::Migration[4.2]
def self.up
add_column :custom_fields, :visible, :boolean, :null => false, :default => true
diff --git a/db/migrate/20101114115114_change_projects_name_limit.rb b/db/migrate/20101114115114_change_projects_name_limit.rb
index e731a005d..aace7b5ad 100644
--- a/db/migrate/20101114115114_change_projects_name_limit.rb
+++ b/db/migrate/20101114115114_change_projects_name_limit.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeProjectsNameLimit < ActiveRecord::Migration[4.2]
def self.up
change_column :projects, :name, :string, :limit => nil, :default => '', :null => false
diff --git a/db/migrate/20101114115359_change_projects_identifier_limit.rb b/db/migrate/20101114115359_change_projects_identifier_limit.rb
index 1e2bb6e1c..6e900cf7d 100644
--- a/db/migrate/20101114115359_change_projects_identifier_limit.rb
+++ b/db/migrate/20101114115359_change_projects_identifier_limit.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeProjectsIdentifierLimit < ActiveRecord::Migration[4.2]
def self.up
change_column :projects, :identifier, :string, :limit => nil
diff --git a/db/migrate/20110220160626_add_workflows_assignee_and_author.rb b/db/migrate/20110220160626_add_workflows_assignee_and_author.rb
index 5b04bd950..6d902578f 100644
--- a/db/migrate/20110220160626_add_workflows_assignee_and_author.rb
+++ b/db/migrate/20110220160626_add_workflows_assignee_and_author.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddWorkflowsAssigneeAndAuthor < ActiveRecord::Migration[4.2]
def self.up
add_column :workflows, :assignee, :boolean, :null => false, :default => false
diff --git a/db/migrate/20110223180944_add_users_salt.rb b/db/migrate/20110223180944_add_users_salt.rb
index 5fda33479..f8f9f465e 100644
--- a/db/migrate/20110223180944_add_users_salt.rb
+++ b/db/migrate/20110223180944_add_users_salt.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddUsersSalt < ActiveRecord::Migration[4.2]
def self.up
add_column :users, :salt, :string, :limit => 64
diff --git a/db/migrate/20110223180953_salt_user_passwords.rb b/db/migrate/20110223180953_salt_user_passwords.rb
index 007691b90..f323f96f6 100644
--- a/db/migrate/20110223180953_salt_user_passwords.rb
+++ b/db/migrate/20110223180953_salt_user_passwords.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class SaltUserPasswords < ActiveRecord::Migration[4.2]
def self.up
diff --git a/db/migrate/20110224000000_add_repositories_path_encoding.rb b/db/migrate/20110224000000_add_repositories_path_encoding.rb
index 23c16d26d..47fd347fc 100644
--- a/db/migrate/20110224000000_add_repositories_path_encoding.rb
+++ b/db/migrate/20110224000000_add_repositories_path_encoding.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddRepositoriesPathEncoding < ActiveRecord::Migration[4.2]
def self.up
add_column :repositories, :path_encoding, :string, :limit => 64, :default => nil
diff --git a/db/migrate/20110226120112_change_repositories_password_limit.rb b/db/migrate/20110226120112_change_repositories_password_limit.rb
index 5eb41f588..4969f2552 100644
--- a/db/migrate/20110226120112_change_repositories_password_limit.rb
+++ b/db/migrate/20110226120112_change_repositories_password_limit.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeRepositoriesPasswordLimit < ActiveRecord::Migration[4.2]
def self.up
change_column :repositories, :password, :string, :limit => nil, :default => ''
diff --git a/db/migrate/20110226120132_change_auth_sources_account_password_limit.rb b/db/migrate/20110226120132_change_auth_sources_account_password_limit.rb
index fac820b17..6498f36b1 100644
--- a/db/migrate/20110226120132_change_auth_sources_account_password_limit.rb
+++ b/db/migrate/20110226120132_change_auth_sources_account_password_limit.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeAuthSourcesAccountPasswordLimit < ActiveRecord::Migration[4.2]
def self.up
change_column :auth_sources, :account_password, :string, :limit => nil, :default => ''
diff --git a/db/migrate/20110227125750_change_journal_details_values_to_text.rb b/db/migrate/20110227125750_change_journal_details_values_to_text.rb
index 36dd7b5d1..59c31845f 100644
--- a/db/migrate/20110227125750_change_journal_details_values_to_text.rb
+++ b/db/migrate/20110227125750_change_journal_details_values_to_text.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeJournalDetailsValuesToText < ActiveRecord::Migration[4.2]
def self.up
change_column :journal_details, :old_value, :text
diff --git a/db/migrate/20110228000000_add_repositories_log_encoding.rb b/db/migrate/20110228000000_add_repositories_log_encoding.rb
index 7201f74bf..4e9b6ff78 100644
--- a/db/migrate/20110228000000_add_repositories_log_encoding.rb
+++ b/db/migrate/20110228000000_add_repositories_log_encoding.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddRepositoriesLogEncoding < ActiveRecord::Migration[4.2]
def self.up
add_column :repositories, :log_encoding, :string, :limit => 64, :default => nil
diff --git a/db/migrate/20110228000100_copy_repositories_log_encoding.rb b/db/migrate/20110228000100_copy_repositories_log_encoding.rb
index df9c3dca5..8de0c77db 100644
--- a/db/migrate/20110228000100_copy_repositories_log_encoding.rb
+++ b/db/migrate/20110228000100_copy_repositories_log_encoding.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CopyRepositoriesLogEncoding < ActiveRecord::Migration[4.2]
def self.up
encoding = Setting.commit_logs_encoding.to_s.strip
diff --git a/db/migrate/20110401192910_add_index_to_users_type.rb b/db/migrate/20110401192910_add_index_to_users_type.rb
index 63fc49652..7137a1229 100644
--- a/db/migrate/20110401192910_add_index_to_users_type.rb
+++ b/db/migrate/20110401192910_add_index_to_users_type.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddIndexToUsersType < ActiveRecord::Migration[4.2]
def self.up
add_index :users, :type
diff --git a/db/migrate/20110408103312_add_roles_issues_visibility.rb b/db/migrate/20110408103312_add_roles_issues_visibility.rb
index 4f07e25ed..64dc6307f 100644
--- a/db/migrate/20110408103312_add_roles_issues_visibility.rb
+++ b/db/migrate/20110408103312_add_roles_issues_visibility.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddRolesIssuesVisibility < ActiveRecord::Migration[4.2]
def self.up
add_column :roles, :issues_visibility, :string, :limit => 30, :default => 'default', :null => false
diff --git a/db/migrate/20110412065600_add_issues_is_private.rb b/db/migrate/20110412065600_add_issues_is_private.rb
index 0066225b0..4ab16eb7e 100644
--- a/db/migrate/20110412065600_add_issues_is_private.rb
+++ b/db/migrate/20110412065600_add_issues_is_private.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddIssuesIsPrivate < ActiveRecord::Migration[4.2]
def self.up
add_column :issues, :is_private, :boolean, :default => false, :null => false
diff --git a/db/migrate/20110511000000_add_repositories_extra_info.rb b/db/migrate/20110511000000_add_repositories_extra_info.rb
index 60ab175bf..10059e68e 100644
--- a/db/migrate/20110511000000_add_repositories_extra_info.rb
+++ b/db/migrate/20110511000000_add_repositories_extra_info.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddRepositoriesExtraInfo < ActiveRecord::Migration[4.2]
def self.up
add_column :repositories, :extra_info, :text
diff --git a/db/migrate/20110902000000_create_changeset_parents.rb b/db/migrate/20110902000000_create_changeset_parents.rb
index 1f367e606..929d8a113 100644
--- a/db/migrate/20110902000000_create_changeset_parents.rb
+++ b/db/migrate/20110902000000_create_changeset_parents.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateChangesetParents < ActiveRecord::Migration[4.2]
def self.up
create_table :changeset_parents, :id => false do |t|
diff --git a/db/migrate/20111201201315_add_unique_index_to_issue_relations.rb b/db/migrate/20111201201315_add_unique_index_to_issue_relations.rb
index 63e6af87b..56b0be36d 100644
--- a/db/migrate/20111201201315_add_unique_index_to_issue_relations.rb
+++ b/db/migrate/20111201201315_add_unique_index_to_issue_relations.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddUniqueIndexToIssueRelations < ActiveRecord::Migration[4.2]
def self.up
diff --git a/db/migrate/20120115143024_add_repositories_identifier.rb b/db/migrate/20120115143024_add_repositories_identifier.rb
index 28af22120..263efbb6a 100644
--- a/db/migrate/20120115143024_add_repositories_identifier.rb
+++ b/db/migrate/20120115143024_add_repositories_identifier.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddRepositoriesIdentifier < ActiveRecord::Migration[4.2]
def self.up
add_column :repositories, :identifier, :string
diff --git a/db/migrate/20120115143100_add_repositories_is_default.rb b/db/migrate/20120115143100_add_repositories_is_default.rb
index 81c242b5e..7aad9b91d 100644
--- a/db/migrate/20120115143100_add_repositories_is_default.rb
+++ b/db/migrate/20120115143100_add_repositories_is_default.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddRepositoriesIsDefault < ActiveRecord::Migration[4.2]
def self.up
add_column :repositories, :is_default, :boolean, :default => false
diff --git a/db/migrate/20120115143126_set_default_repositories.rb b/db/migrate/20120115143126_set_default_repositories.rb
index e99b30725..425ab8ed3 100644
--- a/db/migrate/20120115143126_set_default_repositories.rb
+++ b/db/migrate/20120115143126_set_default_repositories.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class SetDefaultRepositories < ActiveRecord::Migration[4.2]
def self.up
Repository.update_all(["is_default = ?", false])
diff --git a/db/migrate/20120127174243_add_custom_fields_multiple.rb b/db/migrate/20120127174243_add_custom_fields_multiple.rb
index 608fa6259..afbe11f0b 100644
--- a/db/migrate/20120127174243_add_custom_fields_multiple.rb
+++ b/db/migrate/20120127174243_add_custom_fields_multiple.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddCustomFieldsMultiple < ActiveRecord::Migration[4.2]
def self.up
add_column :custom_fields, :multiple, :boolean, :default => false
diff --git a/db/migrate/20120205111326_change_users_login_limit.rb b/db/migrate/20120205111326_change_users_login_limit.rb
index 6f3c08b1f..55495d447 100644
--- a/db/migrate/20120205111326_change_users_login_limit.rb
+++ b/db/migrate/20120205111326_change_users_login_limit.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeUsersLoginLimit < ActiveRecord::Migration[4.2]
def self.up
change_column :users, :login, :string, :limit => nil, :default => '', :null => false
diff --git a/db/migrate/20120223110929_change_attachments_container_defaults.rb b/db/migrate/20120223110929_change_attachments_container_defaults.rb
index 3c48276a1..a913571dc 100644
--- a/db/migrate/20120223110929_change_attachments_container_defaults.rb
+++ b/db/migrate/20120223110929_change_attachments_container_defaults.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeAttachmentsContainerDefaults < ActiveRecord::Migration[4.2]
def self.up
# Need to drop the index otherwise the following error occurs in Rails 3.1.3:
diff --git a/db/migrate/20120301153455_add_auth_sources_filter.rb b/db/migrate/20120301153455_add_auth_sources_filter.rb
index 8538f4da2..2a21d241f 100644
--- a/db/migrate/20120301153455_add_auth_sources_filter.rb
+++ b/db/migrate/20120301153455_add_auth_sources_filter.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddAuthSourcesFilter < ActiveRecord::Migration[4.2]
def self.up
add_column :auth_sources, :filter, :string
diff --git a/db/migrate/20120422150750_change_repositories_to_full_sti.rb b/db/migrate/20120422150750_change_repositories_to_full_sti.rb
index 101ecbc12..98333acb1 100644
--- a/db/migrate/20120422150750_change_repositories_to_full_sti.rb
+++ b/db/migrate/20120422150750_change_repositories_to_full_sti.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeRepositoriesToFullSti < ActiveRecord::Migration[4.2]
def up
Repository.connection.
diff --git a/db/migrate/20120705074331_add_trackers_fields_bits.rb b/db/migrate/20120705074331_add_trackers_fields_bits.rb
index 90e2ca1fe..c43d51f0d 100644
--- a/db/migrate/20120705074331_add_trackers_fields_bits.rb
+++ b/db/migrate/20120705074331_add_trackers_fields_bits.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddTrackersFieldsBits < ActiveRecord::Migration[4.2]
def self.up
add_column :trackers, :fields_bits, :integer, :default => 0
diff --git a/db/migrate/20120707064544_add_auth_sources_timeout.rb b/db/migrate/20120707064544_add_auth_sources_timeout.rb
index 4491bc35b..09a9528d9 100644
--- a/db/migrate/20120707064544_add_auth_sources_timeout.rb
+++ b/db/migrate/20120707064544_add_auth_sources_timeout.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddAuthSourcesTimeout < ActiveRecord::Migration[4.2]
def up
add_column :auth_sources, :timeout, :integer
diff --git a/db/migrate/20120714122000_add_workflows_type.rb b/db/migrate/20120714122000_add_workflows_type.rb
index 6e2ffb6a4..c8591a453 100644
--- a/db/migrate/20120714122000_add_workflows_type.rb
+++ b/db/migrate/20120714122000_add_workflows_type.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddWorkflowsType < ActiveRecord::Migration[4.2]
def up
add_column :workflows, :type, :string, :limit => 30
diff --git a/db/migrate/20120714122100_update_workflows_to_sti.rb b/db/migrate/20120714122100_update_workflows_to_sti.rb
index a5da4ba7a..c0adf9006 100644
--- a/db/migrate/20120714122100_update_workflows_to_sti.rb
+++ b/db/migrate/20120714122100_update_workflows_to_sti.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class UpdateWorkflowsToSti < ActiveRecord::Migration[4.2]
def up
WorkflowRule.update_all "type = 'WorkflowTransition'"
diff --git a/db/migrate/20120714122200_add_workflows_rule_fields.rb b/db/migrate/20120714122200_add_workflows_rule_fields.rb
index aff919bf6..d751d48eb 100644
--- a/db/migrate/20120714122200_add_workflows_rule_fields.rb
+++ b/db/migrate/20120714122200_add_workflows_rule_fields.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddWorkflowsRuleFields < ActiveRecord::Migration[4.2]
def up
add_column :workflows, :field_name, :string, :limit => 30
diff --git a/db/migrate/20120731164049_add_boards_parent_id.rb b/db/migrate/20120731164049_add_boards_parent_id.rb
index f67468426..168f0d68e 100644
--- a/db/migrate/20120731164049_add_boards_parent_id.rb
+++ b/db/migrate/20120731164049_add_boards_parent_id.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddBoardsParentId < ActiveRecord::Migration[4.2]
def up
add_column :boards, :parent_id, :integer
diff --git a/db/migrate/20120930112914_add_journals_private_notes.rb b/db/migrate/20120930112914_add_journals_private_notes.rb
index 265d2516c..0a25fd59e 100644
--- a/db/migrate/20120930112914_add_journals_private_notes.rb
+++ b/db/migrate/20120930112914_add_journals_private_notes.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddJournalsPrivateNotes < ActiveRecord::Migration[4.2]
def up
add_column :journals, :private_notes, :boolean, :default => false, :null => false
diff --git a/db/migrate/20121026002032_add_enumerations_position_name.rb b/db/migrate/20121026002032_add_enumerations_position_name.rb
index eb5423fee..e25c02420 100644
--- a/db/migrate/20121026002032_add_enumerations_position_name.rb
+++ b/db/migrate/20121026002032_add_enumerations_position_name.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddEnumerationsPositionName < ActiveRecord::Migration[4.2]
def up
add_column :enumerations, :position_name, :string, :limit => 30
diff --git a/db/migrate/20121026003537_populate_enumerations_position_name.rb b/db/migrate/20121026003537_populate_enumerations_position_name.rb
index d4f1807ca..aa38a2b03 100644
--- a/db/migrate/20121026003537_populate_enumerations_position_name.rb
+++ b/db/migrate/20121026003537_populate_enumerations_position_name.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class PopulateEnumerationsPositionName < ActiveRecord::Migration[4.2]
def up
IssuePriority.compute_position_names
diff --git a/db/migrate/20121209123234_add_queries_type.rb b/db/migrate/20121209123234_add_queries_type.rb
index fdfaac410..3f9fee2f3 100644
--- a/db/migrate/20121209123234_add_queries_type.rb
+++ b/db/migrate/20121209123234_add_queries_type.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddQueriesType < ActiveRecord::Migration[4.2]
def up
add_column :queries, :type, :string
diff --git a/db/migrate/20121209123358_update_queries_to_sti.rb b/db/migrate/20121209123358_update_queries_to_sti.rb
index 088b8ca84..2d066ffb8 100644
--- a/db/migrate/20121209123358_update_queries_to_sti.rb
+++ b/db/migrate/20121209123358_update_queries_to_sti.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class UpdateQueriesToSti < ActiveRecord::Migration[4.2]
def up
::Query.update_all :type => 'IssueQuery'
diff --git a/db/migrate/20121213084931_add_attachments_disk_directory.rb b/db/migrate/20121213084931_add_attachments_disk_directory.rb
index dc3458028..f5df486e7 100644
--- a/db/migrate/20121213084931_add_attachments_disk_directory.rb
+++ b/db/migrate/20121213084931_add_attachments_disk_directory.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddAttachmentsDiskDirectory < ActiveRecord::Migration[4.2]
def up
add_column :attachments, :disk_directory, :string
diff --git a/db/migrate/20130110122628_split_documents_permissions.rb b/db/migrate/20130110122628_split_documents_permissions.rb
index f52b8e4cd..5b5a67b14 100644
--- a/db/migrate/20130110122628_split_documents_permissions.rb
+++ b/db/migrate/20130110122628_split_documents_permissions.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class SplitDocumentsPermissions < ActiveRecord::Migration[4.2]
def up
# :manage_documents permission split into 3 permissions:
diff --git a/db/migrate/20130201184705_add_unique_index_on_tokens_value.rb b/db/migrate/20130201184705_add_unique_index_on_tokens_value.rb
index 4413e4e3b..6394965f6 100644
--- a/db/migrate/20130201184705_add_unique_index_on_tokens_value.rb
+++ b/db/migrate/20130201184705_add_unique_index_on_tokens_value.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddUniqueIndexOnTokensValue < ActiveRecord::Migration[4.2]
def up
say_with_time "Adding unique index on tokens, this may take some time..." do
diff --git a/db/migrate/20130202090625_add_projects_inherit_members.rb b/db/migrate/20130202090625_add_projects_inherit_members.rb
index 629ad4565..067653231 100644
--- a/db/migrate/20130202090625_add_projects_inherit_members.rb
+++ b/db/migrate/20130202090625_add_projects_inherit_members.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddProjectsInheritMembers < ActiveRecord::Migration[4.2]
def up
add_column :projects, :inherit_members, :boolean, :default => false, :null => false
diff --git a/db/migrate/20130207175206_add_unique_index_on_custom_fields_trackers.rb b/db/migrate/20130207175206_add_unique_index_on_custom_fields_trackers.rb
index 3353803ab..a23af10ee 100644
--- a/db/migrate/20130207175206_add_unique_index_on_custom_fields_trackers.rb
+++ b/db/migrate/20130207175206_add_unique_index_on_custom_fields_trackers.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddUniqueIndexOnCustomFieldsTrackers < ActiveRecord::Migration[4.2]
def up
table_name = "#{CustomField.table_name_prefix}custom_fields_trackers#{CustomField.table_name_suffix}"
diff --git a/db/migrate/20130207181455_add_unique_index_on_custom_fields_projects.rb b/db/migrate/20130207181455_add_unique_index_on_custom_fields_projects.rb
index 2198aed77..548aa9769 100644
--- a/db/migrate/20130207181455_add_unique_index_on_custom_fields_projects.rb
+++ b/db/migrate/20130207181455_add_unique_index_on_custom_fields_projects.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddUniqueIndexOnCustomFieldsProjects < ActiveRecord::Migration[4.2]
def up
table_name = "#{CustomField.table_name_prefix}custom_fields_projects#{CustomField.table_name_suffix}"
diff --git a/db/migrate/20130215073721_change_users_lastname_length_to_255.rb b/db/migrate/20130215073721_change_users_lastname_length_to_255.rb
index 02939aadb..6fed8435d 100644
--- a/db/migrate/20130215073721_change_users_lastname_length_to_255.rb
+++ b/db/migrate/20130215073721_change_users_lastname_length_to_255.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeUsersLastnameLengthTo255 < ActiveRecord::Migration[4.2]
def self.up
change_column :users, :lastname, :string, :limit => 255, :default => '', :null => false
diff --git a/db/migrate/20130215111127_add_issues_closed_on.rb b/db/migrate/20130215111127_add_issues_closed_on.rb
index f719b0d21..69d9cef96 100644
--- a/db/migrate/20130215111127_add_issues_closed_on.rb
+++ b/db/migrate/20130215111127_add_issues_closed_on.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddIssuesClosedOn < ActiveRecord::Migration[4.2]
def up
add_column :issues, :closed_on, :datetime, :default => nil
diff --git a/db/migrate/20130215111141_populate_issues_closed_on.rb b/db/migrate/20130215111141_populate_issues_closed_on.rb
index 009573837..3068a9815 100644
--- a/db/migrate/20130215111141_populate_issues_closed_on.rb
+++ b/db/migrate/20130215111141_populate_issues_closed_on.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class PopulateIssuesClosedOn < ActiveRecord::Migration[4.2]
def up
closed_status_ids = IssueStatus.where(:is_closed => true).pluck(:id)
diff --git a/db/migrate/20130217094251_remove_issues_default_fk_values.rb b/db/migrate/20130217094251_remove_issues_default_fk_values.rb
index e2cea2160..44370612a 100644
--- a/db/migrate/20130217094251_remove_issues_default_fk_values.rb
+++ b/db/migrate/20130217094251_remove_issues_default_fk_values.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class RemoveIssuesDefaultFkValues < ActiveRecord::Migration[4.2]
def up
change_column_default :issues, :tracker_id, nil
diff --git a/db/migrate/20130602092539_create_queries_roles.rb b/db/migrate/20130602092539_create_queries_roles.rb
index f37c26bbf..83a7dd672 100644
--- a/db/migrate/20130602092539_create_queries_roles.rb
+++ b/db/migrate/20130602092539_create_queries_roles.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateQueriesRoles < ActiveRecord::Migration[4.2]
def self.up
create_table :queries_roles, :id => false do |t|
diff --git a/db/migrate/20130710182539_add_queries_visibility.rb b/db/migrate/20130710182539_add_queries_visibility.rb
index 36f298d11..3c3c2685f 100644
--- a/db/migrate/20130710182539_add_queries_visibility.rb
+++ b/db/migrate/20130710182539_add_queries_visibility.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddQueriesVisibility < ActiveRecord::Migration[4.2]
def up
add_column :queries, :visibility, :integer, :default => 0
diff --git a/db/migrate/20130713104233_create_custom_fields_roles.rb b/db/migrate/20130713104233_create_custom_fields_roles.rb
index c34a123c1..472b34cb9 100644
--- a/db/migrate/20130713104233_create_custom_fields_roles.rb
+++ b/db/migrate/20130713104233_create_custom_fields_roles.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateCustomFieldsRoles < ActiveRecord::Migration[4.2]
def self.up
create_table :custom_fields_roles, :id => false do |t|
diff --git a/db/migrate/20130713111657_add_queries_options.rb b/db/migrate/20130713111657_add_queries_options.rb
index 9bd5834aa..1950b509f 100644
--- a/db/migrate/20130713111657_add_queries_options.rb
+++ b/db/migrate/20130713111657_add_queries_options.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddQueriesOptions < ActiveRecord::Migration[4.2]
def up
add_column :queries, :options, :text
diff --git a/db/migrate/20130729070143_add_users_must_change_passwd.rb b/db/migrate/20130729070143_add_users_must_change_passwd.rb
index 3a5860fe0..75f236a09 100644
--- a/db/migrate/20130729070143_add_users_must_change_passwd.rb
+++ b/db/migrate/20130729070143_add_users_must_change_passwd.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddUsersMustChangePasswd < ActiveRecord::Migration[4.2]
def up
add_column :users, :must_change_passwd, :boolean, :default => false, :null => false
diff --git a/db/migrate/20130911193200_remove_eols_from_attachments_filename.rb b/db/migrate/20130911193200_remove_eols_from_attachments_filename.rb
index 3eafd3399..8be7a27b4 100644
--- a/db/migrate/20130911193200_remove_eols_from_attachments_filename.rb
+++ b/db/migrate/20130911193200_remove_eols_from_attachments_filename.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class RemoveEolsFromAttachmentsFilename < ActiveRecord::Migration[4.2]
def up
Attachment.where("filename like ? or filename like ?", "%\r%", "%\n%").each do |attachment|
diff --git a/db/migrate/20131004113137_support_for_multiple_commit_keywords.rb b/db/migrate/20131004113137_support_for_multiple_commit_keywords.rb
index d8beb4aea..4185429fb 100644
--- a/db/migrate/20131004113137_support_for_multiple_commit_keywords.rb
+++ b/db/migrate/20131004113137_support_for_multiple_commit_keywords.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class SupportForMultipleCommitKeywords < ActiveRecord::Migration[4.2]
def up
# Replaces commit_fix_keywords, commit_fix_status_id, commit_fix_done_ratio settings
diff --git a/db/migrate/20131005100610_add_repositories_created_on.rb b/db/migrate/20131005100610_add_repositories_created_on.rb
index ccc664b5b..03cdb4b81 100644
--- a/db/migrate/20131005100610_add_repositories_created_on.rb
+++ b/db/migrate/20131005100610_add_repositories_created_on.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddRepositoriesCreatedOn < ActiveRecord::Migration[4.2]
def up
add_column :repositories, :created_on, :timestamp
diff --git a/db/migrate/20131124175346_add_custom_fields_format_store.rb b/db/migrate/20131124175346_add_custom_fields_format_store.rb
index fc9cb4d66..e15c10604 100644
--- a/db/migrate/20131124175346_add_custom_fields_format_store.rb
+++ b/db/migrate/20131124175346_add_custom_fields_format_store.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddCustomFieldsFormatStore < ActiveRecord::Migration[4.2]
def up
add_column :custom_fields, :format_store, :text
diff --git a/db/migrate/20131210180802_add_custom_fields_description.rb b/db/migrate/20131210180802_add_custom_fields_description.rb
index 736b2cf17..3a9791920 100644
--- a/db/migrate/20131210180802_add_custom_fields_description.rb
+++ b/db/migrate/20131210180802_add_custom_fields_description.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddCustomFieldsDescription < ActiveRecord::Migration[4.2]
def up
add_column :custom_fields, :description, :text
diff --git a/db/migrate/20131214094309_remove_custom_fields_min_max_length_default_values.rb b/db/migrate/20131214094309_remove_custom_fields_min_max_length_default_values.rb
index 7a37d3c8d..31a6342c6 100644
--- a/db/migrate/20131214094309_remove_custom_fields_min_max_length_default_values.rb
+++ b/db/migrate/20131214094309_remove_custom_fields_min_max_length_default_values.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class RemoveCustomFieldsMinMaxLengthDefaultValues < ActiveRecord::Migration[4.2]
def up
change_column :custom_fields, :min_length, :int, :default => nil, :null => true
diff --git a/db/migrate/20131215104612_store_relation_type_in_journal_details.rb b/db/migrate/20131215104612_store_relation_type_in_journal_details.rb
index c1990e67d..ac1fc6e8c 100644
--- a/db/migrate/20131215104612_store_relation_type_in_journal_details.rb
+++ b/db/migrate/20131215104612_store_relation_type_in_journal_details.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class StoreRelationTypeInJournalDetails < ActiveRecord::Migration[4.2]
MAPPING = {
diff --git a/db/migrate/20131218183023_delete_orphan_time_entries_custom_values.rb b/db/migrate/20131218183023_delete_orphan_time_entries_custom_values.rb
index e9d902d2f..34de224c8 100644
--- a/db/migrate/20131218183023_delete_orphan_time_entries_custom_values.rb
+++ b/db/migrate/20131218183023_delete_orphan_time_entries_custom_values.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class DeleteOrphanTimeEntriesCustomValues < ActiveRecord::Migration[4.2]
def up
CustomValue.where("customized_type = ? AND NOT EXISTS (SELECT 1 FROM #{TimeEntry.table_name} t WHERE t.id = customized_id)", "TimeEntry").delete_all
diff --git a/db/migrate/20140228130325_change_changesets_comments_limit.rb b/db/migrate/20140228130325_change_changesets_comments_limit.rb
index 2cff73120..72b0801a6 100644
--- a/db/migrate/20140228130325_change_changesets_comments_limit.rb
+++ b/db/migrate/20140228130325_change_changesets_comments_limit.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeChangesetsCommentsLimit < ActiveRecord::Migration[4.2]
def up
if ActiveRecord::Base.connection.adapter_name =~ /mysql/i
diff --git a/db/migrate/20140903143914_add_password_changed_at_to_user.rb b/db/migrate/20140903143914_add_password_changed_at_to_user.rb
index 80ebd9e3e..4d08381e7 100644
--- a/db/migrate/20140903143914_add_password_changed_at_to_user.rb
+++ b/db/migrate/20140903143914_add_password_changed_at_to_user.rb
@@ -1,5 +1,7 @@
-class AddPasswordChangedAtToUser < ActiveRecord::Migration[4.2]
- def change
- add_column :users, :passwd_changed_on, :datetime
- end
-end
+# frozen_string_literal: false
+
+class AddPasswordChangedAtToUser < ActiveRecord::Migration[4.2]
+ def change
+ add_column :users, :passwd_changed_on, :datetime
+ end
+end
diff --git a/db/migrate/20140920094058_insert_builtin_groups.rb b/db/migrate/20140920094058_insert_builtin_groups.rb
index f58d77fba..5eff7adc1 100644
--- a/db/migrate/20140920094058_insert_builtin_groups.rb
+++ b/db/migrate/20140920094058_insert_builtin_groups.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class InsertBuiltinGroups < ActiveRecord::Migration[4.2]
def up
Group.reset_column_information
diff --git a/db/migrate/20141029181752_add_trackers_default_status_id.rb b/db/migrate/20141029181752_add_trackers_default_status_id.rb
index 74716ea63..36bd6edd3 100644
--- a/db/migrate/20141029181752_add_trackers_default_status_id.rb
+++ b/db/migrate/20141029181752_add_trackers_default_status_id.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddTrackersDefaultStatusId < ActiveRecord::Migration[4.2]
def up
add_column :trackers, :default_status_id, :integer
diff --git a/db/migrate/20141029181824_remove_issue_statuses_is_default.rb b/db/migrate/20141029181824_remove_issue_statuses_is_default.rb
index 09808e31c..f74cac4e6 100644
--- a/db/migrate/20141029181824_remove_issue_statuses_is_default.rb
+++ b/db/migrate/20141029181824_remove_issue_statuses_is_default.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class RemoveIssueStatusesIsDefault < ActiveRecord::Migration[4.2]
def up
remove_column :issue_statuses, :is_default
diff --git a/db/migrate/20141109112308_add_roles_users_visibility.rb b/db/migrate/20141109112308_add_roles_users_visibility.rb
index ef9dabb2b..fef64790b 100644
--- a/db/migrate/20141109112308_add_roles_users_visibility.rb
+++ b/db/migrate/20141109112308_add_roles_users_visibility.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddRolesUsersVisibility < ActiveRecord::Migration[4.2]
def self.up
add_column :roles, :users_visibility, :string, :limit => 30, :default => 'all', :null => false
diff --git a/db/migrate/20141122124142_add_wiki_redirects_redirects_to_wiki_id.rb b/db/migrate/20141122124142_add_wiki_redirects_redirects_to_wiki_id.rb
index fee149968..9134e8e7d 100644
--- a/db/migrate/20141122124142_add_wiki_redirects_redirects_to_wiki_id.rb
+++ b/db/migrate/20141122124142_add_wiki_redirects_redirects_to_wiki_id.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddWikiRedirectsRedirectsToWikiId < ActiveRecord::Migration[4.2]
def self.up
add_column :wiki_redirects, :redirects_to_wiki_id, :integer
diff --git a/db/migrate/20150113194759_create_email_addresses.rb b/db/migrate/20150113194759_create_email_addresses.rb
index 001beda22..d9088a51e 100644
--- a/db/migrate/20150113194759_create_email_addresses.rb
+++ b/db/migrate/20150113194759_create_email_addresses.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateEmailAddresses < ActiveRecord::Migration[4.2]
def change
create_table :email_addresses do |t|
diff --git a/db/migrate/20150113211532_populate_email_addresses.rb b/db/migrate/20150113211532_populate_email_addresses.rb
index 7e4a5509d..0f115bf6e 100644
--- a/db/migrate/20150113211532_populate_email_addresses.rb
+++ b/db/migrate/20150113211532_populate_email_addresses.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class PopulateEmailAddresses < ActiveRecord::Migration[4.2]
def self.up
t = EmailAddress.connection.quoted_true
diff --git a/db/migrate/20150113213922_remove_users_mail.rb b/db/migrate/20150113213922_remove_users_mail.rb
index 2942c4136..4f6f3bb28 100644
--- a/db/migrate/20150113213922_remove_users_mail.rb
+++ b/db/migrate/20150113213922_remove_users_mail.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class RemoveUsersMail < ActiveRecord::Migration[4.2]
def self.up
remove_column :users, :mail
diff --git a/db/migrate/20150113213955_add_email_addresses_user_id_index.rb b/db/migrate/20150113213955_add_email_addresses_user_id_index.rb
index b57b362fa..351696d9c 100644
--- a/db/migrate/20150113213955_add_email_addresses_user_id_index.rb
+++ b/db/migrate/20150113213955_add_email_addresses_user_id_index.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddEmailAddressesUserIdIndex < ActiveRecord::Migration[4.2]
def up
add_index :email_addresses, :user_id
diff --git a/db/migrate/20150208105930_replace_move_issues_permission.rb b/db/migrate/20150208105930_replace_move_issues_permission.rb
index 690bba23c..631ac73f4 100644
--- a/db/migrate/20150208105930_replace_move_issues_permission.rb
+++ b/db/migrate/20150208105930_replace_move_issues_permission.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ReplaceMoveIssuesPermission < ActiveRecord::Migration[4.2]
def self.up
Role.all.each do |role|
diff --git a/db/migrate/20150510083747_change_documents_title_limit.rb b/db/migrate/20150510083747_change_documents_title_limit.rb
index ebb2767c7..669c53e57 100644
--- a/db/migrate/20150510083747_change_documents_title_limit.rb
+++ b/db/migrate/20150510083747_change_documents_title_limit.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeDocumentsTitleLimit < ActiveRecord::Migration[4.2]
def self.up
change_column :documents, :title, :string, :limit => nil, :default => '', :null => false
diff --git a/db/migrate/20150525103953_clear_estimated_hours_on_parent_issues.rb b/db/migrate/20150525103953_clear_estimated_hours_on_parent_issues.rb
index 4dfc38d2f..4d8ed05e1 100644
--- a/db/migrate/20150525103953_clear_estimated_hours_on_parent_issues.rb
+++ b/db/migrate/20150525103953_clear_estimated_hours_on_parent_issues.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ClearEstimatedHoursOnParentIssues < ActiveRecord::Migration[4.2]
def self.up
# Clears estimated hours on parent issues
diff --git a/db/migrate/20150526183158_add_roles_time_entries_visibility.rb b/db/migrate/20150526183158_add_roles_time_entries_visibility.rb
index 968adc6eb..340c169d6 100644
--- a/db/migrate/20150526183158_add_roles_time_entries_visibility.rb
+++ b/db/migrate/20150526183158_add_roles_time_entries_visibility.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddRolesTimeEntriesVisibility < ActiveRecord::Migration[4.2]
def self.up
add_column :roles, :time_entries_visibility, :string, :limit => 30, :default => 'all', :null => false
diff --git a/db/migrate/20150528084820_add_roles_all_roles_managed.rb b/db/migrate/20150528084820_add_roles_all_roles_managed.rb
index 08c8ddce3..85da8fddb 100644
--- a/db/migrate/20150528084820_add_roles_all_roles_managed.rb
+++ b/db/migrate/20150528084820_add_roles_all_roles_managed.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddRolesAllRolesManaged < ActiveRecord::Migration[4.2]
def change
add_column :roles, :all_roles_managed, :boolean, :default => true, :null => false
diff --git a/db/migrate/20150528092912_create_roles_managed_roles.rb b/db/migrate/20150528092912_create_roles_managed_roles.rb
index 707fca675..66cce874f 100644
--- a/db/migrate/20150528092912_create_roles_managed_roles.rb
+++ b/db/migrate/20150528092912_create_roles_managed_roles.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateRolesManagedRoles < ActiveRecord::Migration[4.2]
def change
create_table :roles_managed_roles, :id => false do |t|
diff --git a/db/migrate/20150528093249_add_unique_index_on_roles_managed_roles.rb b/db/migrate/20150528093249_add_unique_index_on_roles_managed_roles.rb
index c20873629..542ba1c1f 100644
--- a/db/migrate/20150528093249_add_unique_index_on_roles_managed_roles.rb
+++ b/db/migrate/20150528093249_add_unique_index_on_roles_managed_roles.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddUniqueIndexOnRolesManagedRoles < ActiveRecord::Migration[4.2]
def change
add_index :roles_managed_roles, [:role_id, :managed_role_id], :unique => true
diff --git a/db/migrate/20150725112753_insert_allowed_statuses_for_new_issues.rb b/db/migrate/20150725112753_insert_allowed_statuses_for_new_issues.rb
index f86d54f47..6869a52ff 100644
--- a/db/migrate/20150725112753_insert_allowed_statuses_for_new_issues.rb
+++ b/db/migrate/20150725112753_insert_allowed_statuses_for_new_issues.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class InsertAllowedStatusesForNewIssues < ActiveRecord::Migration[4.2]
def self.up
# Adds the default status for all trackers and roles
diff --git a/db/migrate/20150730122707_create_imports.rb b/db/migrate/20150730122707_create_imports.rb
index 0a4109edb..924d81abc 100644
--- a/db/migrate/20150730122707_create_imports.rb
+++ b/db/migrate/20150730122707_create_imports.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateImports < ActiveRecord::Migration[4.2]
def change
create_table :imports do |t|
diff --git a/db/migrate/20150730122735_create_import_items.rb b/db/migrate/20150730122735_create_import_items.rb
index 2639805dd..637d62dd6 100644
--- a/db/migrate/20150730122735_create_import_items.rb
+++ b/db/migrate/20150730122735_create_import_items.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateImportItems < ActiveRecord::Migration[4.2]
def change
create_table :import_items do |t|
diff --git a/db/migrate/20150921204850_change_time_entries_comments_limit_to_1024.rb b/db/migrate/20150921204850_change_time_entries_comments_limit_to_1024.rb
index f529a99fc..72c4efa35 100644
--- a/db/migrate/20150921204850_change_time_entries_comments_limit_to_1024.rb
+++ b/db/migrate/20150921204850_change_time_entries_comments_limit_to_1024.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeTimeEntriesCommentsLimitTo1024 < ActiveRecord::Migration[4.2]
def self.up
change_column :time_entries, :comments, :string, :limit => 1024
diff --git a/db/migrate/20150921210243_change_wiki_contents_comments_limit_to_1024.rb b/db/migrate/20150921210243_change_wiki_contents_comments_limit_to_1024.rb
index 9f85a7c61..ec889e70d 100644
--- a/db/migrate/20150921210243_change_wiki_contents_comments_limit_to_1024.rb
+++ b/db/migrate/20150921210243_change_wiki_contents_comments_limit_to_1024.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeWikiContentsCommentsLimitTo1024 < ActiveRecord::Migration[4.2]
def self.up
change_column :wiki_content_versions, :comments, :string, :limit => 1024, :default => ''
diff --git a/db/migrate/20151020182334_change_attachments_filesize_limit_to_8.rb b/db/migrate/20151020182334_change_attachments_filesize_limit_to_8.rb
index 508e3ad39..4d3cd2e17 100644
--- a/db/migrate/20151020182334_change_attachments_filesize_limit_to_8.rb
+++ b/db/migrate/20151020182334_change_attachments_filesize_limit_to_8.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeAttachmentsFilesizeLimitTo8 < ActiveRecord::Migration[4.2]
def self.up
change_column :attachments, :filesize, :integer, :limit => 8, :default => 0, :null => false
diff --git a/db/migrate/20151020182731_fix_comma_in_user_format_setting_value.rb b/db/migrate/20151020182731_fix_comma_in_user_format_setting_value.rb
index 9c185b0cd..1b7485d2d 100644
--- a/db/migrate/20151020182731_fix_comma_in_user_format_setting_value.rb
+++ b/db/migrate/20151020182731_fix_comma_in_user_format_setting_value.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class FixCommaInUserFormatSettingValue < ActiveRecord::Migration[4.2]
def self.up
Setting.
diff --git a/db/migrate/20151021184614_change_issue_categories_name_limit_to_60.rb b/db/migrate/20151021184614_change_issue_categories_name_limit_to_60.rb
index 7d0fa8a17..44fe0af08 100644
--- a/db/migrate/20151021184614_change_issue_categories_name_limit_to_60.rb
+++ b/db/migrate/20151021184614_change_issue_categories_name_limit_to_60.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeIssueCategoriesNameLimitTo60 < ActiveRecord::Migration[4.2]
def self.up
change_column :issue_categories, :name, :string, :limit => 60, :default => "", :null => false
diff --git a/db/migrate/20151021185456_change_auth_sources_filter_to_text.rb b/db/migrate/20151021185456_change_auth_sources_filter_to_text.rb
index 71575631e..8498b682c 100644
--- a/db/migrate/20151021185456_change_auth_sources_filter_to_text.rb
+++ b/db/migrate/20151021185456_change_auth_sources_filter_to_text.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeAuthSourcesFilterToText < ActiveRecord::Migration[4.2]
def self.up
change_column :auth_sources, :filter, :text
diff --git a/db/migrate/20151021190616_change_user_preferences_hide_mail_default_to_true.rb b/db/migrate/20151021190616_change_user_preferences_hide_mail_default_to_true.rb
index bee79924c..9446edfb5 100644
--- a/db/migrate/20151021190616_change_user_preferences_hide_mail_default_to_true.rb
+++ b/db/migrate/20151021190616_change_user_preferences_hide_mail_default_to_true.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeUserPreferencesHideMailDefaultToTrue < ActiveRecord::Migration[4.2]
def self.up
change_column :user_preferences, :hide_mail, :boolean, :default => true
diff --git a/db/migrate/20151024082034_add_tokens_updated_on.rb b/db/migrate/20151024082034_add_tokens_updated_on.rb
index 7b94a3a95..b8c488684 100644
--- a/db/migrate/20151024082034_add_tokens_updated_on.rb
+++ b/db/migrate/20151024082034_add_tokens_updated_on.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddTokensUpdatedOn < ActiveRecord::Migration[4.2]
def self.up
add_column :tokens, :updated_on, :timestamp
diff --git a/db/migrate/20151025072118_create_custom_field_enumerations.rb b/db/migrate/20151025072118_create_custom_field_enumerations.rb
index c1b2eaec4..b652cdd03 100644
--- a/db/migrate/20151025072118_create_custom_field_enumerations.rb
+++ b/db/migrate/20151025072118_create_custom_field_enumerations.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class CreateCustomFieldEnumerations < ActiveRecord::Migration[4.2]
def change
create_table :custom_field_enumerations do |t|
diff --git a/db/migrate/20151031095005_add_projects_default_version_id.rb b/db/migrate/20151031095005_add_projects_default_version_id.rb
index e62c54e89..5a54715a7 100644
--- a/db/migrate/20151031095005_add_projects_default_version_id.rb
+++ b/db/migrate/20151031095005_add_projects_default_version_id.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddProjectsDefaultVersionId < ActiveRecord::Migration[4.2]
def self.up
# Don't try to add the column if redmine_default_version plugin was used
diff --git a/db/migrate/20160404080304_force_password_reset_during_setup.rb b/db/migrate/20160404080304_force_password_reset_during_setup.rb
index 00d3a65a5..058f18622 100644
--- a/db/migrate/20160404080304_force_password_reset_during_setup.rb
+++ b/db/migrate/20160404080304_force_password_reset_during_setup.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ForcePasswordResetDuringSetup < ActiveRecord::Migration[4.2]
def up
User.where(login: "admin", last_login_on: nil).update_all(must_change_passwd: true)
diff --git a/db/migrate/20160416072926_remove_position_defaults.rb b/db/migrate/20160416072926_remove_position_defaults.rb
index 9ba7b3c8e..80e894e30 100644
--- a/db/migrate/20160416072926_remove_position_defaults.rb
+++ b/db/migrate/20160416072926_remove_position_defaults.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class RemovePositionDefaults < ActiveRecord::Migration[4.2]
def up
[Board, CustomField, Enumeration, IssueStatus, Role, Tracker].each do |klass|
diff --git a/db/migrate/20160529063352_add_roles_settings.rb b/db/migrate/20160529063352_add_roles_settings.rb
index 84f2bf37d..0fcfa5034 100644
--- a/db/migrate/20160529063352_add_roles_settings.rb
+++ b/db/migrate/20160529063352_add_roles_settings.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddRolesSettings < ActiveRecord::Migration[4.2]
def change
add_column :roles, :settings, :text
diff --git a/db/migrate/20161001122012_add_tracker_id_index_to_workflows.rb b/db/migrate/20161001122012_add_tracker_id_index_to_workflows.rb
index 60c62a6f8..b9c66114c 100644
--- a/db/migrate/20161001122012_add_tracker_id_index_to_workflows.rb
+++ b/db/migrate/20161001122012_add_tracker_id_index_to_workflows.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddTrackerIdIndexToWorkflows < ActiveRecord::Migration[4.2]
def self.up
add_index :workflows, :tracker_id
diff --git a/db/migrate/20161002133421_add_index_on_member_roles_inherited_from.rb b/db/migrate/20161002133421_add_index_on_member_roles_inherited_from.rb
index f806a31fd..0dfdbb834 100644
--- a/db/migrate/20161002133421_add_index_on_member_roles_inherited_from.rb
+++ b/db/migrate/20161002133421_add_index_on_member_roles_inherited_from.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddIndexOnMemberRolesInheritedFrom < ActiveRecord::Migration[4.2]
def change
add_index :member_roles, :inherited_from
diff --git a/db/migrate/20161010081301_change_issues_description_limit.rb b/db/migrate/20161010081301_change_issues_description_limit.rb
index 93fcc53ff..7559dfaf5 100644
--- a/db/migrate/20161010081301_change_issues_description_limit.rb
+++ b/db/migrate/20161010081301_change_issues_description_limit.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeIssuesDescriptionLimit < ActiveRecord::Migration[4.2]
def up
if ActiveRecord::Base.connection.adapter_name =~ /mysql/i
diff --git a/db/migrate/20161010081528_change_journal_details_value_limit.rb b/db/migrate/20161010081528_change_journal_details_value_limit.rb
index d83fbacd6..7f48e885b 100644
--- a/db/migrate/20161010081528_change_journal_details_value_limit.rb
+++ b/db/migrate/20161010081528_change_journal_details_value_limit.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeJournalDetailsValueLimit < ActiveRecord::Migration[4.2]
def up
if ActiveRecord::Base.connection.adapter_name =~ /mysql/i
diff --git a/db/migrate/20161010081600_change_journals_notes_limit.rb b/db/migrate/20161010081600_change_journals_notes_limit.rb
index 34197bc47..f98bd85c1 100644
--- a/db/migrate/20161010081600_change_journals_notes_limit.rb
+++ b/db/migrate/20161010081600_change_journals_notes_limit.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeJournalsNotesLimit < ActiveRecord::Migration[4.2]
def up
if ActiveRecord::Base.connection.adapter_name =~ /mysql/i
diff --git a/db/migrate/20161126094932_add_index_on_changesets_issues_issue_id.rb b/db/migrate/20161126094932_add_index_on_changesets_issues_issue_id.rb
index 1099e4ebc..4078039b1 100644
--- a/db/migrate/20161126094932_add_index_on_changesets_issues_issue_id.rb
+++ b/db/migrate/20161126094932_add_index_on_changesets_issues_issue_id.rb
@@ -1,5 +1,7 @@
-class AddIndexOnChangesetsIssuesIssueId < ActiveRecord::Migration[4.2]
- def change
- add_index :changesets_issues, :issue_id
- end
-end
+# frozen_string_literal: false
+
+class AddIndexOnChangesetsIssuesIssueId < ActiveRecord::Migration[4.2]
+ def change
+ add_index :changesets_issues, :issue_id
+ end
+end
diff --git a/db/migrate/20161220091118_add_index_on_issues_parent_id.rb b/db/migrate/20161220091118_add_index_on_issues_parent_id.rb
index 07592a9d8..07d13eb0e 100644
--- a/db/migrate/20161220091118_add_index_on_issues_parent_id.rb
+++ b/db/migrate/20161220091118_add_index_on_issues_parent_id.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddIndexOnIssuesParentId < ActiveRecord::Migration[4.2]
def change
add_index :issues, :parent_id
diff --git a/db/migrate/20170207050700_add_index_on_disk_filename_to_attachments.rb b/db/migrate/20170207050700_add_index_on_disk_filename_to_attachments.rb
index 3f2eaee8e..e350e328d 100644
--- a/db/migrate/20170207050700_add_index_on_disk_filename_to_attachments.rb
+++ b/db/migrate/20170207050700_add_index_on_disk_filename_to_attachments.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddIndexOnDiskFilenameToAttachments < ActiveRecord::Migration[4.2]
def change
add_index :attachments, :disk_filename
diff --git a/db/migrate/20170302015225_change_attachments_digest_limit_to_64.rb b/db/migrate/20170302015225_change_attachments_digest_limit_to_64.rb
index 620deb251..36cc76015 100644
--- a/db/migrate/20170302015225_change_attachments_digest_limit_to_64.rb
+++ b/db/migrate/20170302015225_change_attachments_digest_limit_to_64.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeAttachmentsDigestLimitTo64 < ActiveRecord::Migration[4.2]
def up
change_column :attachments, :digest, :string, limit: 64
diff --git a/db/migrate/20170309214320_add_project_default_assigned_to_id.rb b/db/migrate/20170309214320_add_project_default_assigned_to_id.rb
index 40d3282f4..0919594de 100644
--- a/db/migrate/20170309214320_add_project_default_assigned_to_id.rb
+++ b/db/migrate/20170309214320_add_project_default_assigned_to_id.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddProjectDefaultAssignedToId < ActiveRecord::Migration[4.2]
def up
add_column :projects, :default_assigned_to_id, :integer, :default => nil
diff --git a/db/migrate/20170320051650_change_repositories_extra_info_limit.rb b/db/migrate/20170320051650_change_repositories_extra_info_limit.rb
index 104111a39..adfebaf31 100644
--- a/db/migrate/20170320051650_change_repositories_extra_info_limit.rb
+++ b/db/migrate/20170320051650_change_repositories_extra_info_limit.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeRepositoriesExtraInfoLimit < ActiveRecord::Migration[4.2]
def up
if ActiveRecord::Base.connection.adapter_name =~ /mysql/i
diff --git a/db/migrate/20170418090031_add_view_news_to_all_existing_roles.rb b/db/migrate/20170418090031_add_view_news_to_all_existing_roles.rb
index 7c9896c98..1722eb316 100644
--- a/db/migrate/20170418090031_add_view_news_to_all_existing_roles.rb
+++ b/db/migrate/20170418090031_add_view_news_to_all_existing_roles.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddViewNewsToAllExistingRoles < ActiveRecord::Migration[4.2]
def up
Role.all.each { |role| role.add_permission! :view_news }
diff --git a/db/migrate/20170419144536_add_view_messages_to_all_existing_roles.rb b/db/migrate/20170419144536_add_view_messages_to_all_existing_roles.rb
index 7a3ba67e3..62d7023ea 100644
--- a/db/migrate/20170419144536_add_view_messages_to_all_existing_roles.rb
+++ b/db/migrate/20170419144536_add_view_messages_to_all_existing_roles.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddViewMessagesToAllExistingRoles < ActiveRecord::Migration[4.2]
def up
Role.all.each { |role| role.add_permission! :view_messages }
diff --git a/db/migrate/20170723112801_rename_comments_to_content.rb b/db/migrate/20170723112801_rename_comments_to_content.rb
index 6c014286d..c522c3fad 100644
--- a/db/migrate/20170723112801_rename_comments_to_content.rb
+++ b/db/migrate/20170723112801_rename_comments_to_content.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class RenameCommentsToContent < ActiveRecord::Migration[5.1]
def change
rename_column :comments, :comments, :content
diff --git a/db/migrate/20180501132547_add_author_id_to_time_entries.rb b/db/migrate/20180501132547_add_author_id_to_time_entries.rb
index 3d79bf210..186421976 100644
--- a/db/migrate/20180501132547_add_author_id_to_time_entries.rb
+++ b/db/migrate/20180501132547_add_author_id_to_time_entries.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddAuthorIdToTimeEntries < ActiveRecord::Migration[5.1]
def up
add_column :time_entries, :author_id, :integer, :default => nil, :after => :project_id
diff --git a/db/migrate/20180913072918_add_verify_peer_to_auth_sources.rb b/db/migrate/20180913072918_add_verify_peer_to_auth_sources.rb
index b36564c10..ac9ade809 100644
--- a/db/migrate/20180913072918_add_verify_peer_to_auth_sources.rb
+++ b/db/migrate/20180913072918_add_verify_peer_to_auth_sources.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class AddVerifyPeerToAuthSources < ActiveRecord::Migration[5.2]
def change
change_table :auth_sources do |t|
diff --git a/db/migrate/20180923082945_change_sqlite_booleans_to_0_and_1.rb b/db/migrate/20180923082945_change_sqlite_booleans_to_0_and_1.rb
index fb789ae10..4e202f59c 100644
--- a/db/migrate/20180923082945_change_sqlite_booleans_to_0_and_1.rb
+++ b/db/migrate/20180923082945_change_sqlite_booleans_to_0_and_1.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeSqliteBooleansTo0And1 < ActiveRecord::Migration[5.2]
COLUMNS = {
diff --git a/db/migrate/20180923091603_change_sqlite_booleans_default.rb b/db/migrate/20180923091603_change_sqlite_booleans_default.rb
index 563bf3237..05af84e23 100644
--- a/db/migrate/20180923091603_change_sqlite_booleans_default.rb
+++ b/db/migrate/20180923091603_change_sqlite_booleans_default.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class ChangeSqliteBooleansDefault < ActiveRecord::Migration[5.2]
DEFAULTS = {
"auth_sources" => {
diff --git a/extra/mail_handler/rdm-mailhandler.rb b/extra/mail_handler/rdm-mailhandler.rb
index 901f7bfc6..e0053fde3 100644
--- a/extra/mail_handler/rdm-mailhandler.rb
+++ b/extra/mail_handler/rdm-mailhandler.rb
@@ -1,4 +1,6 @@
#!/usr/bin/env ruby
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/extra/sample_plugin/app/controllers/example_controller.rb b/extra/sample_plugin/app/controllers/example_controller.rb
index d38d01d91..a04c923fb 100644
--- a/extra/sample_plugin/app/controllers/example_controller.rb
+++ b/extra/sample_plugin/app/controllers/example_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Sample plugin controller
class ExampleController < ApplicationController
layout 'base'
diff --git a/extra/sample_plugin/app/models/meeting.rb b/extra/sample_plugin/app/models/meeting.rb
index ca8af1021..c5edaa648 100644
--- a/extra/sample_plugin/app/models/meeting.rb
+++ b/extra/sample_plugin/app/models/meeting.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class Meeting < ActiveRecord::Base
belongs_to :project
diff --git a/extra/sample_plugin/config/routes.rb b/extra/sample_plugin/config/routes.rb
index 53428a7c5..57fc3e633 100644
--- a/extra/sample_plugin/config/routes.rb
+++ b/extra/sample_plugin/config/routes.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Plugin's routes
# See: http://guides.rubyonrails.org/routing.html
diff --git a/extra/sample_plugin/db/migrate/001_create_meetings.rb b/extra/sample_plugin/db/migrate/001_create_meetings.rb
index 31beee3b7..4b29c89da 100644
--- a/extra/sample_plugin/db/migrate/001_create_meetings.rb
+++ b/extra/sample_plugin/db/migrate/001_create_meetings.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Sample plugin migration
# Use rake db:migrate_plugins to migrate installed plugins
class CreateMeetings < ActiveRecord::Migration[4.2]
diff --git a/extra/sample_plugin/init.rb b/extra/sample_plugin/init.rb
index 372ff6fea..cf22ef5ff 100644
--- a/extra/sample_plugin/init.rb
+++ b/extra/sample_plugin/init.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
Rails.logger.info 'Starting Example plugin for Redmine'
Redmine::Plugin.register :sample_plugin do
diff --git a/extra/sample_plugin/test/integration/routing_test.rb b/extra/sample_plugin/test/integration/routing_test.rb
index bfc2f2b78..0b6bb76cc 100644
--- a/extra/sample_plugin/test/integration/routing_test.rb
+++ b/extra/sample_plugin/test/integration/routing_test.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require File.expand_path(File.dirname(__FILE__) + '../../../../../test/test_helper')
diff --git a/extra/svn/reposman.rb b/extra/svn/reposman.rb
index aec5760d6..c058b5cf4 100755
--- a/extra/svn/reposman.rb
+++ b/extra/svn/reposman.rb
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
+# frozen_string_literal: false
require 'optparse'
require 'find'
diff --git a/lib/diff.rb b/lib/diff.rb
index 90adc7e33..30bba39a0 100644
--- a/lib/diff.rb
+++ b/lib/diff.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
module RedmineDiff
class Diff
diff --git a/lib/generators/redmine_plugin/redmine_plugin_generator.rb b/lib/generators/redmine_plugin/redmine_plugin_generator.rb
index ce2e2aa42..7a5d81dd2 100644
--- a/lib/generators/redmine_plugin/redmine_plugin_generator.rb
+++ b/lib/generators/redmine_plugin/redmine_plugin_generator.rb
@@ -1,3 +1,5 @@
+# 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 1803173d0..eb4cf1c74 100644
--- a/lib/generators/redmine_plugin/templates/routes.rb
+++ b/lib/generators/redmine_plugin/templates/routes.rb
@@ -1,2 +1,4 @@
+# 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 16a820ebf..f228f1759 100644
--- a/lib/generators/redmine_plugin_controller/redmine_plugin_controller_generator.rb
+++ b/lib/generators/redmine_plugin_controller/redmine_plugin_controller_generator.rb
@@ -1,3 +1,5 @@
+# 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 f26f8779c..7e96d49c5 100644
--- a/lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb
+++ b/lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class RedminePluginModelGenerator < Rails::Generators::NamedBase
source_root File.expand_path("../templates", __FILE__)
diff --git a/lib/plugins/acts_as_activity_provider/init.rb b/lib/plugins/acts_as_activity_provider/init.rb
index 5bf05da2c..781bd3f47 100644
--- a/lib/plugins/acts_as_activity_provider/init.rb
+++ b/lib/plugins/acts_as_activity_provider/init.rb
@@ -1,2 +1,4 @@
+# frozen_string_literal: false
+
require File.dirname(__FILE__) + '/lib/acts_as_activity_provider'
ActiveRecord::Base.send(:include, Redmine::Acts::ActivityProvider)
diff --git a/lib/plugins/acts_as_activity_provider/lib/acts_as_activity_provider.rb b/lib/plugins/acts_as_activity_provider/lib/acts_as_activity_provider.rb
index 2bf4b2e8c..325176ddf 100644
--- a/lib/plugins/acts_as_activity_provider/lib/acts_as_activity_provider.rb
+++ b/lib/plugins/acts_as_activity_provider/lib/acts_as_activity_provider.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/plugins/acts_as_attachable/init.rb b/lib/plugins/acts_as_attachable/init.rb
index 213e1d4b1..66ecc7849 100644
--- a/lib/plugins/acts_as_attachable/init.rb
+++ b/lib/plugins/acts_as_attachable/init.rb
@@ -1,2 +1,4 @@
+# frozen_string_literal: false
+
require File.dirname(__FILE__) + '/lib/acts_as_attachable'
ActiveRecord::Base.send(:include, Redmine::Acts::Attachable)
diff --git a/lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb b/lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb
index 3cfc49169..b895a9f55 100644
--- a/lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb
+++ b/lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/plugins/acts_as_customizable/init.rb b/lib/plugins/acts_as_customizable/init.rb
index 9036aa579..2139e96c6 100644
--- a/lib/plugins/acts_as_customizable/init.rb
+++ b/lib/plugins/acts_as_customizable/init.rb
@@ -1,2 +1,4 @@
+# frozen_string_literal: false
+
require File.dirname(__FILE__) + '/lib/acts_as_customizable'
ActiveRecord::Base.send(:include, Redmine::Acts::Customizable)
diff --git a/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb b/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb
index 2e36d91be..5413a456f 100644
--- a/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb
+++ b/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/plugins/acts_as_event/init.rb b/lib/plugins/acts_as_event/init.rb
index 91051510a..2a78cd2d3 100644
--- a/lib/plugins/acts_as_event/init.rb
+++ b/lib/plugins/acts_as_event/init.rb
@@ -1,2 +1,4 @@
+# frozen_string_literal: false
+
require File.dirname(__FILE__) + '/lib/acts_as_event'
ActiveRecord::Base.send(:include, Redmine::Acts::Event)
diff --git a/lib/plugins/acts_as_event/lib/acts_as_event.rb b/lib/plugins/acts_as_event/lib/acts_as_event.rb
index 894a23df6..f77c12d70 100644
--- a/lib/plugins/acts_as_event/lib/acts_as_event.rb
+++ b/lib/plugins/acts_as_event/lib/acts_as_event.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/plugins/acts_as_searchable/init.rb b/lib/plugins/acts_as_searchable/init.rb
index 063721756..204d0ce36 100644
--- a/lib/plugins/acts_as_searchable/init.rb
+++ b/lib/plugins/acts_as_searchable/init.rb
@@ -1,2 +1,4 @@
+# frozen_string_literal: false
+
require File.dirname(__FILE__) + '/lib/acts_as_searchable'
ActiveRecord::Base.send(:include, Redmine::Acts::Searchable)
diff --git a/lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb b/lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb
index e6b6b22fc..79a3f88fb 100644
--- a/lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb
+++ b/lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/plugins/acts_as_tree/Rakefile b/lib/plugins/acts_as_tree/Rakefile
index da091d9dd..255df7de4 100644
--- a/lib/plugins/acts_as_tree/Rakefile
+++ b/lib/plugins/acts_as_tree/Rakefile
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
diff --git a/lib/plugins/acts_as_tree/init.rb b/lib/plugins/acts_as_tree/init.rb
index 0901ddb4a..f5560f449 100644
--- a/lib/plugins/acts_as_tree/init.rb
+++ b/lib/plugins/acts_as_tree/init.rb
@@ -1 +1,3 @@
+# frozen_string_literal: false
+
ActiveRecord::Base.send :include, ActiveRecord::Acts::Tree
diff --git a/lib/plugins/acts_as_tree/lib/active_record/acts/tree.rb b/lib/plugins/acts_as_tree/lib/active_record/acts/tree.rb
index c078e7edb..668c600c4 100644
--- a/lib/plugins/acts_as_tree/lib/active_record/acts/tree.rb
+++ b/lib/plugins/acts_as_tree/lib/active_record/acts/tree.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
module ActiveRecord
module Acts
module Tree
diff --git a/lib/plugins/acts_as_tree/test/acts_as_tree_test.rb b/lib/plugins/acts_as_tree/test/acts_as_tree_test.rb
index 018c58e1f..81a0033c5 100644
--- a/lib/plugins/acts_as_tree/test/acts_as_tree_test.rb
+++ b/lib/plugins/acts_as_tree/test/acts_as_tree_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require 'test/unit'
require 'rubygems'
diff --git a/lib/plugins/acts_as_watchable/init.rb b/lib/plugins/acts_as_watchable/init.rb
index f39cc7d18..4a9a14237 100644
--- a/lib/plugins/acts_as_watchable/init.rb
+++ b/lib/plugins/acts_as_watchable/init.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Include hook code here
require File.dirname(__FILE__) + '/lib/acts_as_watchable'
ActiveRecord::Base.send(:include, Redmine::Acts::Watchable)
diff --git a/lib/plugins/acts_as_watchable/lib/acts_as_watchable.rb b/lib/plugins/acts_as_watchable/lib/acts_as_watchable.rb
index 5c88adb57..8890326d1 100644
--- a/lib/plugins/acts_as_watchable/lib/acts_as_watchable.rb
+++ b/lib/plugins/acts_as_watchable/lib/acts_as_watchable.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# ActsAsWatchable
module Redmine
module Acts
diff --git a/lib/plugins/gravatar/Rakefile b/lib/plugins/gravatar/Rakefile
index e67e5e7f9..a501a1c25 100644
--- a/lib/plugins/gravatar/Rakefile
+++ b/lib/plugins/gravatar/Rakefile
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require 'spec/rake/spectask'
require 'rake/rdoctask'
diff --git a/lib/plugins/gravatar/init.rb b/lib/plugins/gravatar/init.rb
index aab3f75f3..65c9fce00 100644
--- a/lib/plugins/gravatar/init.rb
+++ b/lib/plugins/gravatar/init.rb
@@ -1,2 +1,4 @@
+# frozen_string_literal: false
+
require 'gravatar'
ActionView::Base.send :include, GravatarHelper::PublicMethods
diff --git a/lib/plugins/gravatar/lib/gravatar.rb b/lib/plugins/gravatar/lib/gravatar.rb
index 2c0efaba8..9ccc6166b 100644
--- a/lib/plugins/gravatar/lib/gravatar.rb
+++ b/lib/plugins/gravatar/lib/gravatar.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require 'digest/md5'
require 'cgi'
diff --git a/lib/plugins/gravatar/spec/gravatar_spec.rb b/lib/plugins/gravatar/spec/gravatar_spec.rb
index 6f78d79ad..365d42dbf 100644
--- a/lib/plugins/gravatar/spec/gravatar_spec.rb
+++ b/lib/plugins/gravatar/spec/gravatar_spec.rb
@@ -1,3 +1,5 @@
+# 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 31074b856..3af3cd1f6 100644
--- a/lib/plugins/open_id_authentication/Rakefile
+++ b/lib/plugins/open_id_authentication/Rakefile
@@ -1,3 +1,5 @@
+# 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 6f78afc71..7c2ea2547 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,3 +1,5 @@
+# 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 02fddd7fd..e23257938 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,3 +1,5 @@
+# frozen_string_literal: false
+
class UpgradeOpenIdAuthenticationTablesGenerator < Rails::Generator::NamedBase
def initialize(runtime_args, runtime_options = {})
super
diff --git a/lib/plugins/open_id_authentication/init.rb b/lib/plugins/open_id_authentication/init.rb
index 84ec11fc4..e276bc873 100644
--- a/lib/plugins/open_id_authentication/init.rb
+++ b/lib/plugins/open_id_authentication/init.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
if Rails.version < '3'
config.gem 'rack-openid', :lib => 'rack/openid', :version => '>=0.2.1'
end
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 e31aba1f2..7754afece 100644
--- a/lib/plugins/open_id_authentication/lib/open_id_authentication.rb
+++ b/lib/plugins/open_id_authentication/lib/open_id_authentication.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require 'uri'
require 'openid'
require 'rack/openid'
diff --git a/lib/plugins/open_id_authentication/lib/open_id_authentication/association.rb b/lib/plugins/open_id_authentication/lib/open_id_authentication/association.rb
index 8ab71bec0..07e844bcf 100644
--- a/lib/plugins/open_id_authentication/lib/open_id_authentication/association.rb
+++ b/lib/plugins/open_id_authentication/lib/open_id_authentication/association.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
module OpenIdAuthentication
class Association < ActiveRecord::Base
self.table_name = :open_id_authentication_associations
diff --git a/lib/plugins/open_id_authentication/lib/open_id_authentication/db_store.rb b/lib/plugins/open_id_authentication/lib/open_id_authentication/db_store.rb
index f696d4dcc..0cf1fa920 100644
--- a/lib/plugins/open_id_authentication/lib/open_id_authentication/db_store.rb
+++ b/lib/plugins/open_id_authentication/lib/open_id_authentication/db_store.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require 'openid/store/interface'
module OpenIdAuthentication
diff --git a/lib/plugins/open_id_authentication/lib/open_id_authentication/mem_cache_store.rb b/lib/plugins/open_id_authentication/lib/open_id_authentication/mem_cache_store.rb
index b520e4a8b..cef6d8ed7 100644
--- a/lib/plugins/open_id_authentication/lib/open_id_authentication/mem_cache_store.rb
+++ b/lib/plugins/open_id_authentication/lib/open_id_authentication/mem_cache_store.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require 'digest/sha1'
require 'openid/store/interface'
diff --git a/lib/plugins/open_id_authentication/lib/open_id_authentication/nonce.rb b/lib/plugins/open_id_authentication/lib/open_id_authentication/nonce.rb
index b28bf1679..0f41e141b 100644
--- a/lib/plugins/open_id_authentication/lib/open_id_authentication/nonce.rb
+++ b/lib/plugins/open_id_authentication/lib/open_id_authentication/nonce.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
module OpenIdAuthentication
class Nonce < ActiveRecord::Base
self.table_name = :open_id_authentication_nonces
diff --git a/lib/plugins/open_id_authentication/lib/open_id_authentication/request.rb b/lib/plugins/open_id_authentication/lib/open_id_authentication/request.rb
index e0cc8e3fc..7e8a9ec1b 100644
--- a/lib/plugins/open_id_authentication/lib/open_id_authentication/request.rb
+++ b/lib/plugins/open_id_authentication/lib/open_id_authentication/request.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
module OpenIdAuthentication
module Request
def self.included(base)
diff --git a/lib/plugins/open_id_authentication/lib/open_id_authentication/timeout_fixes.rb b/lib/plugins/open_id_authentication/lib/open_id_authentication/timeout_fixes.rb
index cc711c9ac..0fb9dfc22 100644
--- a/lib/plugins/open_id_authentication/lib/open_id_authentication/timeout_fixes.rb
+++ b/lib/plugins/open_id_authentication/lib/open_id_authentication/timeout_fixes.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# http://trac.openidenabled.com/trac/ticket/156
module OpenID
@@timeout_threshold = 20
@@ -17,4 +19,4 @@ module OpenID
http
end
end
-end \ No newline at end of file
+end
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 c71434a50..424852bd7 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,3 +1,5 @@
+# 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 18a943979..ef5e424a3 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,3 +1,5 @@
+# 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 635d3abc9..2968fc9c2 100644
--- a/lib/plugins/open_id_authentication/test/normalize_test.rb
+++ b/lib/plugins/open_id_authentication/test/normalize_test.rb
@@ -1,3 +1,5 @@
+# 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 ddcc17b96..147ebe7ae 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,3 +1,5 @@
+# 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 b1d5e0933..9bf39056e 100644
--- a/lib/plugins/open_id_authentication/test/status_test.rb
+++ b/lib/plugins/open_id_authentication/test/status_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require File.dirname(__FILE__) + '/test_helper'
class StatusTest < Test::Unit::TestCase
@@ -11,4 +13,4 @@ class StatusTest < Test::Unit::TestCase
assert Result[:successful].successful?
assert !Result[:successful].unsuccessful?
end
-end \ No newline at end of file
+end
diff --git a/lib/plugins/open_id_authentication/test/test_helper.rb b/lib/plugins/open_id_authentication/test/test_helper.rb
index cb76ceddc..9af4077a5 100644
--- a/lib/plugins/open_id_authentication/test/test_helper.rb
+++ b/lib/plugins/open_id_authentication/test/test_helper.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require 'test/unit'
require 'rubygems'
diff --git a/lib/redmine.rb b/lib/redmine.rb
index 9bf00f366..fdcdc2fc9 100644
--- a/lib/redmine.rb
+++ b/lib/redmine.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/access_control.rb b/lib/redmine/access_control.rb
index abf88f48e..9dd2258a9 100644
--- a/lib/redmine/access_control.rb
+++ b/lib/redmine/access_control.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/access_keys.rb b/lib/redmine/access_keys.rb
index f2616061b..7d195669d 100644
--- a/lib/redmine/access_keys.rb
+++ b/lib/redmine/access_keys.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/activity.rb b/lib/redmine/activity.rb
index 48e02dffa..e7d508a4d 100644
--- a/lib/redmine/activity.rb
+++ b/lib/redmine/activity.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/activity/fetcher.rb b/lib/redmine/activity/fetcher.rb
index fccce54eb..08149d740 100644
--- a/lib/redmine/activity/fetcher.rb
+++ b/lib/redmine/activity/fetcher.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/acts/positioned.rb b/lib/redmine/acts/positioned.rb
index 00f8332b8..7c8726107 100644
--- a/lib/redmine/acts/positioned.rb
+++ b/lib/redmine/acts/positioned.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/ciphering.rb b/lib/redmine/ciphering.rb
index ad30e035f..0d7003d27 100644
--- a/lib/redmine/ciphering.rb
+++ b/lib/redmine/ciphering.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/codeset_util.rb b/lib/redmine/codeset_util.rb
index 4f056d54a..e27da506f 100644
--- a/lib/redmine/codeset_util.rb
+++ b/lib/redmine/codeset_util.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
module Redmine
module CodesetUtil
diff --git a/lib/redmine/configuration.rb b/lib/redmine/configuration.rb
index 8d96749e1..9bb5c3550 100644
--- a/lib/redmine/configuration.rb
+++ b/lib/redmine/configuration.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/core_ext.rb b/lib/redmine/core_ext.rb
index 573313e74..0eab327ab 100644
--- a/lib/redmine/core_ext.rb
+++ b/lib/redmine/core_ext.rb
@@ -1 +1,3 @@
+# frozen_string_literal: false
+
Dir[File.dirname(__FILE__) + "/core_ext/*.rb"].each { |file| require(file) }
diff --git a/lib/redmine/core_ext/active_record.rb b/lib/redmine/core_ext/active_record.rb
index 72a794da3..d8c51f53b 100644
--- a/lib/redmine/core_ext/active_record.rb
+++ b/lib/redmine/core_ext/active_record.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/core_ext/string.rb b/lib/redmine/core_ext/string.rb
index 5d03b9b5c..7810a2e47 100644
--- a/lib/redmine/core_ext/string.rb
+++ b/lib/redmine/core_ext/string.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require File.dirname(__FILE__) + '/string/conversions'
require File.dirname(__FILE__) + '/string/inflections'
diff --git a/lib/redmine/core_ext/string/conversions.rb b/lib/redmine/core_ext/string/conversions.rb
index 4fc571167..3bdaa5ff1 100644
--- a/lib/redmine/core_ext/string/conversions.rb
+++ b/lib/redmine/core_ext/string/conversions.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/core_ext/string/inflections.rb b/lib/redmine/core_ext/string/inflections.rb
index efb62ee8e..aeb53bf67 100644
--- a/lib/redmine/core_ext/string/inflections.rb
+++ b/lib/redmine/core_ext/string/inflections.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/database.rb b/lib/redmine/database.rb
index 82df4b6a4..fb449fa46 100644
--- a/lib/redmine/database.rb
+++ b/lib/redmine/database.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/default_data/loader.rb b/lib/redmine/default_data/loader.rb
index f702826c7..751b397bf 100644
--- a/lib/redmine/default_data/loader.rb
+++ b/lib/redmine/default_data/loader.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/export/csv.rb b/lib/redmine/export/csv.rb
index b0d48ef6f..92da0cff5 100644
--- a/lib/redmine/export/csv.rb
+++ b/lib/redmine/export/csv.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb
index ff383d108..28627c2a4 100644
--- a/lib/redmine/export/pdf.rb
+++ b/lib/redmine/export/pdf.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/lib/redmine/export/pdf/issues_pdf_helper.rb b/lib/redmine/export/pdf/issues_pdf_helper.rb
index 3a6183893..5acdeffa9 100644
--- a/lib/redmine/export/pdf/issues_pdf_helper.rb
+++ b/lib/redmine/export/pdf/issues_pdf_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/lib/redmine/export/pdf/wiki_pdf_helper.rb b/lib/redmine/export/pdf/wiki_pdf_helper.rb
index 206820e54..5d325f2fd 100644
--- a/lib/redmine/export/pdf/wiki_pdf_helper.rb
+++ b/lib/redmine/export/pdf/wiki_pdf_helper.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/lib/redmine/field_format.rb b/lib/redmine/field_format.rb
index 3878b2dcb..21f372ab0 100644
--- a/lib/redmine/field_format.rb
+++ b/lib/redmine/field_format.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/helpers/calendar.rb b/lib/redmine/helpers/calendar.rb
index 3641097ba..2d2392fdd 100644
--- a/lib/redmine/helpers/calendar.rb
+++ b/lib/redmine/helpers/calendar.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/helpers/diff.rb b/lib/redmine/helpers/diff.rb
index d62e763c6..6f61e3e52 100644
--- a/lib/redmine/helpers/diff.rb
+++ b/lib/redmine/helpers/diff.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb
index d5f85ee6f..abe783267 100644
--- a/lib/redmine/helpers/gantt.rb
+++ b/lib/redmine/helpers/gantt.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/helpers/time_report.rb b/lib/redmine/helpers/time_report.rb
index 5287ae95e..f460fee6c 100644
--- a/lib/redmine/helpers/time_report.rb
+++ b/lib/redmine/helpers/time_report.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/helpers/url.rb b/lib/redmine/helpers/url.rb
index 8e13ab291..402d3af38 100644
--- a/lib/redmine/helpers/url.rb
+++ b/lib/redmine/helpers/url.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/hook.rb b/lib/redmine/hook.rb
index 3d273b474..2a6129c4f 100644
--- a/lib/redmine/hook.rb
+++ b/lib/redmine/hook.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/hook/listener.rb b/lib/redmine/hook/listener.rb
index a84636fdf..474d6dd0e 100644
--- a/lib/redmine/hook/listener.rb
+++ b/lib/redmine/hook/listener.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
@@ -29,4 +31,4 @@ module Redmine
end
end
end
-end \ No newline at end of file
+end
diff --git a/lib/redmine/hook/view_listener.rb b/lib/redmine/hook/view_listener.rb
index cb4c578a1..848e654a1 100644
--- a/lib/redmine/hook/view_listener.rb
+++ b/lib/redmine/hook/view_listener.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/i18n.rb b/lib/redmine/i18n.rb
index cdac4ea77..4432a2a10 100644
--- a/lib/redmine/i18n.rb
+++ b/lib/redmine/i18n.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/imap.rb b/lib/redmine/imap.rb
index 658b8d1bf..f4659ff1d 100644
--- a/lib/redmine/imap.rb
+++ b/lib/redmine/imap.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/info.rb b/lib/redmine/info.rb
index 62452e277..276c72d40 100644
--- a/lib/redmine/info.rb
+++ b/lib/redmine/info.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
module Redmine
module Info
class << self
diff --git a/lib/redmine/menu_manager.rb b/lib/redmine/menu_manager.rb
index dcdd0fa23..4b766695e 100644
--- a/lib/redmine/menu_manager.rb
+++ b/lib/redmine/menu_manager.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/mime_type.rb b/lib/redmine/mime_type.rb
index 46be81b49..6dbbe8599 100644
--- a/lib/redmine/mime_type.rb
+++ b/lib/redmine/mime_type.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/my_page.rb b/lib/redmine/my_page.rb
index 4bec1c29f..d1efe7b02 100644
--- a/lib/redmine/my_page.rb
+++ b/lib/redmine/my_page.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/nested_set/issue_nested_set.rb b/lib/redmine/nested_set/issue_nested_set.rb
index bb921d6de..61469e808 100644
--- a/lib/redmine/nested_set/issue_nested_set.rb
+++ b/lib/redmine/nested_set/issue_nested_set.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/nested_set/project_nested_set.rb b/lib/redmine/nested_set/project_nested_set.rb
index d6d33efaf..fa955be06 100644
--- a/lib/redmine/nested_set/project_nested_set.rb
+++ b/lib/redmine/nested_set/project_nested_set.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/nested_set/traversing.rb b/lib/redmine/nested_set/traversing.rb
index 07b6deec4..5809ed92a 100644
--- a/lib/redmine/nested_set/traversing.rb
+++ b/lib/redmine/nested_set/traversing.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/notifiable.rb b/lib/redmine/notifiable.rb
index 41fd736e6..39dc4c2df 100644
--- a/lib/redmine/notifiable.rb
+++ b/lib/redmine/notifiable.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
module Redmine
class Notifiable < Struct.new(:name, :parent)
diff --git a/lib/redmine/pagination.rb b/lib/redmine/pagination.rb
index 0131c86e4..706e93816 100644
--- a/lib/redmine/pagination.rb
+++ b/lib/redmine/pagination.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/lib/redmine/platform.rb b/lib/redmine/platform.rb
index 5fdd58d7c..674c05607 100644
--- a/lib/redmine/platform.rb
+++ b/lib/redmine/platform.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/plugin.rb b/lib/redmine/plugin.rb
index 82bcde81f..ec575d17a 100644
--- a/lib/redmine/plugin.rb
+++ b/lib/redmine/plugin.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/pop3.rb b/lib/redmine/pop3.rb
index 548dfc173..ecba9f84d 100644
--- a/lib/redmine/pop3.rb
+++ b/lib/redmine/pop3.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/safe_attributes.rb b/lib/redmine/safe_attributes.rb
index a2711cc4b..7f5a0cd8e 100644
--- a/lib/redmine/safe_attributes.rb
+++ b/lib/redmine/safe_attributes.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/scm/adapters.rb b/lib/redmine/scm/adapters.rb
index bee5a5398..688cfbcc6 100644
--- a/lib/redmine/scm/adapters.rb
+++ b/lib/redmine/scm/adapters.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/scm/adapters/abstract_adapter.rb b/lib/redmine/scm/adapters/abstract_adapter.rb
index 7f3b8093f..7665b0d84 100644
--- a/lib/redmine/scm/adapters/abstract_adapter.rb
+++ b/lib/redmine/scm/adapters/abstract_adapter.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/scm/adapters/bazaar_adapter.rb b/lib/redmine/scm/adapters/bazaar_adapter.rb
index 30d8aa721..2c5996b34 100644
--- a/lib/redmine/scm/adapters/bazaar_adapter.rb
+++ b/lib/redmine/scm/adapters/bazaar_adapter.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/scm/adapters/command_failed.rb b/lib/redmine/scm/adapters/command_failed.rb
index 0d9571f8c..c230c1e62 100644
--- a/lib/redmine/scm/adapters/command_failed.rb
+++ b/lib/redmine/scm/adapters/command_failed.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/scm/adapters/cvs_adapter.rb b/lib/redmine/scm/adapters/cvs_adapter.rb
index d89e71eb4..730ee5caa 100644
--- a/lib/redmine/scm/adapters/cvs_adapter.rb
+++ b/lib/redmine/scm/adapters/cvs_adapter.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# redMine - project management software
# Copyright (C) 2006-2007 Jean-Philippe Lang
#
diff --git a/lib/redmine/scm/adapters/filesystem_adapter.rb b/lib/redmine/scm/adapters/filesystem_adapter.rb
index a40465a54..0ff289df4 100644
--- a/lib/redmine/scm/adapters/filesystem_adapter.rb
+++ b/lib/redmine/scm/adapters/filesystem_adapter.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/scm/adapters/git_adapter.rb b/lib/redmine/scm/adapters/git_adapter.rb
index 93d48a64d..3a9103360 100644
--- a/lib/redmine/scm/adapters/git_adapter.rb
+++ b/lib/redmine/scm/adapters/git_adapter.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/scm/adapters/mercurial_adapter.rb b/lib/redmine/scm/adapters/mercurial_adapter.rb
index a3b672d26..32637b2f1 100644
--- a/lib/redmine/scm/adapters/mercurial_adapter.rb
+++ b/lib/redmine/scm/adapters/mercurial_adapter.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/scm/adapters/subversion_adapter.rb b/lib/redmine/scm/adapters/subversion_adapter.rb
index 11c8c9c60..79276feb6 100644
--- a/lib/redmine/scm/adapters/subversion_adapter.rb
+++ b/lib/redmine/scm/adapters/subversion_adapter.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/scm/base.rb b/lib/redmine/scm/base.rb
index b33a9cfd1..2380b3a72 100644
--- a/lib/redmine/scm/base.rb
+++ b/lib/redmine/scm/base.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
module Redmine
module Scm
class Base
diff --git a/lib/redmine/search.rb b/lib/redmine/search.rb
index e88736f55..bfca60412 100644
--- a/lib/redmine/search.rb
+++ b/lib/redmine/search.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/sort_criteria.rb b/lib/redmine/sort_criteria.rb
index c89ef03c1..ba8c67de9 100644
--- a/lib/redmine/sort_criteria.rb
+++ b/lib/redmine/sort_criteria.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/subclass_factory.rb b/lib/redmine/subclass_factory.rb
index 3d4ab88ce..914f793bf 100644
--- a/lib/redmine/subclass_factory.rb
+++ b/lib/redmine/subclass_factory.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/sudo_mode.rb b/lib/redmine/sudo_mode.rb
index fa491b759..417f59ee3 100644
--- a/lib/redmine/sudo_mode.rb
+++ b/lib/redmine/sudo_mode.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require 'active_support/core_ext/object/to_query'
require 'rack/utils'
diff --git a/lib/redmine/syntax_highlighting.rb b/lib/redmine/syntax_highlighting.rb
index 53ae4b5ff..fe888730f 100644
--- a/lib/redmine/syntax_highlighting.rb
+++ b/lib/redmine/syntax_highlighting.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/themes.rb b/lib/redmine/themes.rb
index 645ffa476..f876b1077 100644
--- a/lib/redmine/themes.rb
+++ b/lib/redmine/themes.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/thumbnail.rb b/lib/redmine/thumbnail.rb
index ab3c4f1bf..4d284c6b7 100644
--- a/lib/redmine/thumbnail.rb
+++ b/lib/redmine/thumbnail.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/unified_diff.rb b/lib/redmine/unified_diff.rb
index ae68d5dfc..d4c93db0e 100644
--- a/lib/redmine/unified_diff.rb
+++ b/lib/redmine/unified_diff.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/utils.rb b/lib/redmine/utils.rb
index d255dfa91..ce1eb8527 100644
--- a/lib/redmine/utils.rb
+++ b/lib/redmine/utils.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/version.rb b/lib/redmine/version.rb
index 740c90585..d0608005f 100644
--- a/lib/redmine/version.rb
+++ b/lib/redmine/version.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require 'rexml/document'
module Redmine
diff --git a/lib/redmine/views/api_template_handler.rb b/lib/redmine/views/api_template_handler.rb
index 357badb0d..41d6b2fd8 100644
--- a/lib/redmine/views/api_template_handler.rb
+++ b/lib/redmine/views/api_template_handler.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/views/builders.rb b/lib/redmine/views/builders.rb
index fd98e6d5b..546eb2ac6 100644
--- a/lib/redmine/views/builders.rb
+++ b/lib/redmine/views/builders.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/views/builders/json.rb b/lib/redmine/views/builders/json.rb
index 299fd9255..48c4b8707 100644
--- a/lib/redmine/views/builders/json.rb
+++ b/lib/redmine/views/builders/json.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/views/builders/structure.rb b/lib/redmine/views/builders/structure.rb
index a473d4d58..386a4cfcc 100644
--- a/lib/redmine/views/builders/structure.rb
+++ b/lib/redmine/views/builders/structure.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/views/builders/xml.rb b/lib/redmine/views/builders/xml.rb
index 162de7a5e..934c74a20 100644
--- a/lib/redmine/views/builders/xml.rb
+++ b/lib/redmine/views/builders/xml.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/views/labelled_form_builder.rb b/lib/redmine/views/labelled_form_builder.rb
index d7aff9a6b..9c5337c89 100644
--- a/lib/redmine/views/labelled_form_builder.rb
+++ b/lib/redmine/views/labelled_form_builder.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/views/other_formats_builder.rb b/lib/redmine/views/other_formats_builder.rb
index c022055db..ea4bf7462 100644
--- a/lib/redmine/views/other_formats_builder.rb
+++ b/lib/redmine/views/other_formats_builder.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/wiki_formatting.rb b/lib/redmine/wiki_formatting.rb
index d4dd05a93..22309b228 100644
--- a/lib/redmine/wiki_formatting.rb
+++ b/lib/redmine/wiki_formatting.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/wiki_formatting/html_parser.rb b/lib/redmine/wiki_formatting/html_parser.rb
index da8ce81b1..d1c90b502 100644
--- a/lib/redmine/wiki_formatting/html_parser.rb
+++ b/lib/redmine/wiki_formatting/html_parser.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/wiki_formatting/macros.rb b/lib/redmine/wiki_formatting/macros.rb
index 9ef4ffd06..c1e3ee4e5 100644
--- a/lib/redmine/wiki_formatting/macros.rb
+++ b/lib/redmine/wiki_formatting/macros.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/wiki_formatting/markdown/formatter.rb b/lib/redmine/wiki_formatting/markdown/formatter.rb
index 4bfd00c79..f605e94b7 100644
--- a/lib/redmine/wiki_formatting/markdown/formatter.rb
+++ b/lib/redmine/wiki_formatting/markdown/formatter.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/wiki_formatting/markdown/helper.rb b/lib/redmine/wiki_formatting/markdown/helper.rb
index fb9f1a939..0a5998cf4 100644
--- a/lib/redmine/wiki_formatting/markdown/helper.rb
+++ b/lib/redmine/wiki_formatting/markdown/helper.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/wiki_formatting/markdown/html_parser.rb b/lib/redmine/wiki_formatting/markdown/html_parser.rb
index f34034093..7cf0a1d37 100644
--- a/lib/redmine/wiki_formatting/markdown/html_parser.rb
+++ b/lib/redmine/wiki_formatting/markdown/html_parser.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/wiki_formatting/textile/formatter.rb b/lib/redmine/wiki_formatting/textile/formatter.rb
index 89e6105a8..313595c58 100644
--- a/lib/redmine/wiki_formatting/textile/formatter.rb
+++ b/lib/redmine/wiki_formatting/textile/formatter.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/wiki_formatting/textile/helper.rb b/lib/redmine/wiki_formatting/textile/helper.rb
index e536a29dc..b29ade8be 100644
--- a/lib/redmine/wiki_formatting/textile/helper.rb
+++ b/lib/redmine/wiki_formatting/textile/helper.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/wiki_formatting/textile/html_parser.rb b/lib/redmine/wiki_formatting/textile/html_parser.rb
index 3d3cd591e..467281d87 100644
--- a/lib/redmine/wiki_formatting/textile/html_parser.rb
+++ b/lib/redmine/wiki_formatting/textile/html_parser.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/lib/redmine/wiki_formatting/textile/redcloth3.rb b/lib/redmine/wiki_formatting/textile/redcloth3.rb
index 8d83c79d9..1cd5e0580 100644
--- a/lib/redmine/wiki_formatting/textile/redcloth3.rb
+++ b/lib/redmine/wiki_formatting/textile/redcloth3.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# vim:ts=4:sw=4:
# = RedCloth - Textile and Markdown Hybrid for Ruby
#
diff --git a/lib/tasks/ci.rake b/lib/tasks/ci.rake
index 8c7f8b68f..3b0c0bde0 100644
--- a/lib/tasks/ci.rake
+++ b/lib/tasks/ci.rake
@@ -1,3 +1,5 @@
+# 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 2b1183352..bebf308dc 100644
--- a/lib/tasks/ciphering.rake
+++ b/lib/tasks/ciphering.rake
@@ -1,3 +1,5 @@
+# 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 c62579d0a..1cce6d344 100644
--- a/lib/tasks/deprecated.rake
+++ b/lib/tasks/deprecated.rake
@@ -1,3 +1,5 @@
+# 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 25d7d667b..8d03b2913 100644
--- a/lib/tasks/email.rake
+++ b/lib/tasks/email.rake
@@ -1,3 +1,5 @@
+# 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 65f529315..1c7f9342c 100644
--- a/lib/tasks/extract_fixtures.rake
+++ b/lib/tasks/extract_fixtures.rake
@@ -1,3 +1,5 @@
+# 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 6da60c147..5b1e0b30c 100644
--- a/lib/tasks/initializers.rake
+++ b/lib/tasks/initializers.rake
@@ -1,3 +1,5 @@
+# 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 bcfff7c3b..51949c2b4 100644
--- a/lib/tasks/load_default_data.rake
+++ b/lib/tasks/load_default_data.rake
@@ -1,3 +1,5 @@
+# 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 028a25154..dbf7bcf45 100644
--- a/lib/tasks/locales.rake
+++ b/lib/tasks/locales.rake
@@ -1,3 +1,5 @@
+# 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 214cc996e..de7fd3aa3 100644
--- a/lib/tasks/metrics.rake
+++ b/lib/tasks/metrics.rake
@@ -1,3 +1,5 @@
+# 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 61c42325d..f169d9ea3 100644
--- a/lib/tasks/migrate_from_mantis.rake
+++ b/lib/tasks/migrate_from_mantis.rake
@@ -1,3 +1,5 @@
+# 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 eb0d81e0a..a1d457550 100644
--- a/lib/tasks/migrate_from_trac.rake
+++ b/lib/tasks/migrate_from_trac.rake
@@ -1,3 +1,5 @@
+# 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 3ed53f1f1..038b2a731 100644
--- a/lib/tasks/permissions.rake
+++ b/lib/tasks/permissions.rake
@@ -1,3 +1,5 @@
+# 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 f26200114..0fd09ceeb 100644
--- a/lib/tasks/redmine.rake
+++ b/lib/tasks/redmine.rake
@@ -1,3 +1,5 @@
+# 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 56122ca7b..0b1ae2c8e 100644
--- a/lib/tasks/reminder.rake
+++ b/lib/tasks/reminder.rake
@@ -1,3 +1,5 @@
+# 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 33bedd4e0..ea809c731 100644
--- a/lib/tasks/testing.rake
+++ b/lib/tasks/testing.rake
@@ -1,3 +1,5 @@
+# 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 60d3a644a..23ba7ea1c 100644
--- a/lib/tasks/yardoc.rake
+++ b/lib/tasks/yardoc.rake
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
begin
require 'yard'
diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb
index 09dc1520a..ed697eb4b 100644
--- a/test/application_system_test_case.rb
+++ b/test/application_system_test_case.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/coverage/html_formatter.rb b/test/coverage/html_formatter.rb
index e8564a816..be33d7706 100644
--- a/test/coverage/html_formatter.rb
+++ b/test/coverage/html_formatter.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/extra/redmine_pm/repository_git_test_pm.rb b/test/extra/redmine_pm/repository_git_test_pm.rb
index d96508c5b..32c436c12 100644
--- a/test/extra/redmine_pm/repository_git_test_pm.rb
+++ b/test/extra/redmine_pm/repository_git_test_pm.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/extra/redmine_pm/repository_subversion_test_pm.rb b/test/extra/redmine_pm/repository_subversion_test_pm.rb
index da7a0c4c2..b65bd49be 100644
--- a/test/extra/redmine_pm/repository_subversion_test_pm.rb
+++ b/test/extra/redmine_pm/repository_subversion_test_pm.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/extra/redmine_pm/test_case.rb b/test/extra/redmine_pm/test_case.rb
index 1235c2a70..ebfa50dfe 100644
--- a/test/extra/redmine_pm/test_case.rb
+++ b/test/extra/redmine_pm/test_case.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/fixtures/files/2006/07/060719210727_source.rb b/test/fixtures/files/2006/07/060719210727_source.rb
index dccb59165..6b6fafbd7 100644
--- a/test/fixtures/files/2006/07/060719210727_source.rb
+++ b/test/fixtures/files/2006/07/060719210727_source.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# The Greeter class
class Greeter
def initialize(name)
diff --git a/test/functional/account_controller_openid_test.rb b/test/functional/account_controller_openid_test.rb
index afa46cdf6..87b316722 100644
--- a/test/functional/account_controller_openid_test.rb
+++ b/test/functional/account_controller_openid_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/account_controller_test.rb b/test/functional/account_controller_test.rb
index fbeb457b1..48e6a61d3 100644
--- a/test/functional/account_controller_test.rb
+++ b/test/functional/account_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/activities_controller_test.rb b/test/functional/activities_controller_test.rb
index 385b95c72..7c346b104 100644
--- a/test/functional/activities_controller_test.rb
+++ b/test/functional/activities_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/admin_controller_test.rb b/test/functional/admin_controller_test.rb
index 3050d753d..005807354 100644
--- a/test/functional/admin_controller_test.rb
+++ b/test/functional/admin_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/attachments_controller_test.rb b/test/functional/attachments_controller_test.rb
index 4fd009a4f..618871ba2 100644
--- a/test/functional/attachments_controller_test.rb
+++ b/test/functional/attachments_controller_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/functional/attachments_visibility_test.rb b/test/functional/attachments_visibility_test.rb
index c4b8aec0b..e2350e55d 100644
--- a/test/functional/attachments_visibility_test.rb
+++ b/test/functional/attachments_visibility_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/functional/auth_sources_controller_test.rb b/test/functional/auth_sources_controller_test.rb
index adc6c1a22..a4a86bfa6 100644
--- a/test/functional/auth_sources_controller_test.rb
+++ b/test/functional/auth_sources_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/auto_completes_controller_test.rb b/test/functional/auto_completes_controller_test.rb
index 4be188140..77d2672e1 100644
--- a/test/functional/auto_completes_controller_test.rb
+++ b/test/functional/auto_completes_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/boards_controller_test.rb b/test/functional/boards_controller_test.rb
index c010d8866..83bc0d181 100644
--- a/test/functional/boards_controller_test.rb
+++ b/test/functional/boards_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/calendars_controller_test.rb b/test/functional/calendars_controller_test.rb
index da9db3d64..07acb50ed 100644
--- a/test/functional/calendars_controller_test.rb
+++ b/test/functional/calendars_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/comments_controller_test.rb b/test/functional/comments_controller_test.rb
index cdd75f977..6fc1d4d1b 100644
--- a/test/functional/comments_controller_test.rb
+++ b/test/functional/comments_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/context_menus_controller_test.rb b/test/functional/context_menus_controller_test.rb
index aeaf7391a..4a6b070d3 100644
--- a/test/functional/context_menus_controller_test.rb
+++ b/test/functional/context_menus_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/custom_field_enumerations_controller_test.rb b/test/functional/custom_field_enumerations_controller_test.rb
index 080f5638d..9b08cc10a 100644
--- a/test/functional/custom_field_enumerations_controller_test.rb
+++ b/test/functional/custom_field_enumerations_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/custom_fields_controller_test.rb b/test/functional/custom_fields_controller_test.rb
index b9030db69..6c75136d6 100644
--- a/test/functional/custom_fields_controller_test.rb
+++ b/test/functional/custom_fields_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/documents_controller_test.rb b/test/functional/documents_controller_test.rb
index 3adb1d8cd..ce43b5097 100644
--- a/test/functional/documents_controller_test.rb
+++ b/test/functional/documents_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/email_addresses_controller_test.rb b/test/functional/email_addresses_controller_test.rb
index 5a31fafbd..46781d6ed 100644
--- a/test/functional/email_addresses_controller_test.rb
+++ b/test/functional/email_addresses_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/enumerations_controller_test.rb b/test/functional/enumerations_controller_test.rb
index 8e411c53e..5abe45d8f 100644
--- a/test/functional/enumerations_controller_test.rb
+++ b/test/functional/enumerations_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/files_controller_test.rb b/test/functional/files_controller_test.rb
index 03c194e53..f4e28a267 100644
--- a/test/functional/files_controller_test.rb
+++ b/test/functional/files_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/gantts_controller_test.rb b/test/functional/gantts_controller_test.rb
index cf11f9d66..a8bd3c609 100644
--- a/test/functional/gantts_controller_test.rb
+++ b/test/functional/gantts_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/groups_controller_test.rb b/test/functional/groups_controller_test.rb
index 6cdf5009d..6edcbffdf 100644
--- a/test/functional/groups_controller_test.rb
+++ b/test/functional/groups_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/imports_controller_test.rb b/test/functional/imports_controller_test.rb
index 2802d1524..a4e5f1bf0 100644
--- a/test/functional/imports_controller_test.rb
+++ b/test/functional/imports_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/issue_categories_controller_test.rb b/test/functional/issue_categories_controller_test.rb
index 472b92d22..760fe4a5b 100644
--- a/test/functional/issue_categories_controller_test.rb
+++ b/test/functional/issue_categories_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/issue_relations_controller_test.rb b/test/functional/issue_relations_controller_test.rb
index 1842786d5..15ef829d9 100644
--- a/test/functional/issue_relations_controller_test.rb
+++ b/test/functional/issue_relations_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/issue_statuses_controller_test.rb b/test/functional/issue_statuses_controller_test.rb
index 1825960a0..abf67959d 100644
--- a/test/functional/issue_statuses_controller_test.rb
+++ b/test/functional/issue_statuses_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 047c98782..1d11eac73 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/issues_controller_transaction_test.rb b/test/functional/issues_controller_transaction_test.rb
index 28ac868b3..081c3fdfb 100644
--- a/test/functional/issues_controller_transaction_test.rb
+++ b/test/functional/issues_controller_transaction_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/issues_custom_fields_visibility_test.rb b/test/functional/issues_custom_fields_visibility_test.rb
index b1a666706..adae13134 100644
--- a/test/functional/issues_custom_fields_visibility_test.rb
+++ b/test/functional/issues_custom_fields_visibility_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/journals_controller_test.rb b/test/functional/journals_controller_test.rb
index 336f67848..21bf73533 100644
--- a/test/functional/journals_controller_test.rb
+++ b/test/functional/journals_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/mail_handler_controller_test.rb b/test/functional/mail_handler_controller_test.rb
index 707373942..e8a12abe0 100644
--- a/test/functional/mail_handler_controller_test.rb
+++ b/test/functional/mail_handler_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/members_controller_test.rb b/test/functional/members_controller_test.rb
index 11460aa7a..f6fb49153 100644
--- a/test/functional/members_controller_test.rb
+++ b/test/functional/members_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/messages_controller_test.rb b/test/functional/messages_controller_test.rb
index 715258fe1..fdfb44084 100644
--- a/test/functional/messages_controller_test.rb
+++ b/test/functional/messages_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/my_controller_test.rb b/test/functional/my_controller_test.rb
index d8db74ff6..d864f22f1 100644
--- a/test/functional/my_controller_test.rb
+++ b/test/functional/my_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/news_controller_test.rb b/test/functional/news_controller_test.rb
index 951405763..df5282155 100644
--- a/test/functional/news_controller_test.rb
+++ b/test/functional/news_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/previews_controller_test.rb b/test/functional/previews_controller_test.rb
index 5512cff2d..12a5140e0 100644
--- a/test/functional/previews_controller_test.rb
+++ b/test/functional/previews_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/principal_memberships_controller_test.rb b/test/functional/principal_memberships_controller_test.rb
index 5320ae6e6..36e856adc 100644
--- a/test/functional/principal_memberships_controller_test.rb
+++ b/test/functional/principal_memberships_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/project_enumerations_controller_test.rb b/test/functional/project_enumerations_controller_test.rb
index 3fa579a3d..4a8069c5e 100644
--- a/test/functional/project_enumerations_controller_test.rb
+++ b/test/functional/project_enumerations_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb
index 3c931c60b..41d2a275a 100644
--- a/test/functional/projects_controller_test.rb
+++ b/test/functional/projects_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/queries_controller_test.rb b/test/functional/queries_controller_test.rb
index 9b094ab97..203e80c37 100644
--- a/test/functional/queries_controller_test.rb
+++ b/test/functional/queries_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/reports_controller_test.rb b/test/functional/reports_controller_test.rb
index c1b60bcdd..1ce71ecb7 100644
--- a/test/functional/reports_controller_test.rb
+++ b/test/functional/reports_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/repositories_bazaar_controller_test.rb b/test/functional/repositories_bazaar_controller_test.rb
index 33b506444..43c68ccef 100644
--- a/test/functional/repositories_bazaar_controller_test.rb
+++ b/test/functional/repositories_bazaar_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/repositories_controller_test.rb b/test/functional/repositories_controller_test.rb
index 8338b8987..ae1ccab6e 100644
--- a/test/functional/repositories_controller_test.rb
+++ b/test/functional/repositories_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/repositories_cvs_controller_test.rb b/test/functional/repositories_cvs_controller_test.rb
index d2b12386d..00a752a5b 100644
--- a/test/functional/repositories_cvs_controller_test.rb
+++ b/test/functional/repositories_cvs_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/repositories_filesystem_controller_test.rb b/test/functional/repositories_filesystem_controller_test.rb
index 38e0f8ba9..b90c3695a 100644
--- a/test/functional/repositories_filesystem_controller_test.rb
+++ b/test/functional/repositories_filesystem_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb
index 0142f2be5..648362c40 100644
--- a/test/functional/repositories_git_controller_test.rb
+++ b/test/functional/repositories_git_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/repositories_mercurial_controller_test.rb b/test/functional/repositories_mercurial_controller_test.rb
index f7ba7038b..a58ba7e3e 100644
--- a/test/functional/repositories_mercurial_controller_test.rb
+++ b/test/functional/repositories_mercurial_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/repositories_subversion_controller_test.rb b/test/functional/repositories_subversion_controller_test.rb
index e9de476a4..effd93ab3 100644
--- a/test/functional/repositories_subversion_controller_test.rb
+++ b/test/functional/repositories_subversion_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/roles_controller_test.rb b/test/functional/roles_controller_test.rb
index f401d51d9..5f28b898f 100644
--- a/test/functional/roles_controller_test.rb
+++ b/test/functional/roles_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/search_controller_test.rb b/test/functional/search_controller_test.rb
index f5b52b2b4..1f99abf68 100644
--- a/test/functional/search_controller_test.rb
+++ b/test/functional/search_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/search_custom_fields_visibility_test.rb b/test/functional/search_custom_fields_visibility_test.rb
index ab2af8434..960aff591 100644
--- a/test/functional/search_custom_fields_visibility_test.rb
+++ b/test/functional/search_custom_fields_visibility_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/sessions_controller_test.rb b/test/functional/sessions_controller_test.rb
index 0698e41c5..ec38a8de1 100644
--- a/test/functional/sessions_controller_test.rb
+++ b/test/functional/sessions_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/settings_controller_test.rb b/test/functional/settings_controller_test.rb
index 2215aa385..b8411023c 100644
--- a/test/functional/settings_controller_test.rb
+++ b/test/functional/settings_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/sys_controller_test.rb b/test/functional/sys_controller_test.rb
index 4278015df..838ba1cd2 100644
--- a/test/functional/sys_controller_test.rb
+++ b/test/functional/sys_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb
index 67b596744..0e58698b9 100644
--- a/test/functional/timelog_controller_test.rb
+++ b/test/functional/timelog_controller_test.rb
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/timelog_custom_fields_visibility_test.rb b/test/functional/timelog_custom_fields_visibility_test.rb
index 042414315..41da3c22a 100644
--- a/test/functional/timelog_custom_fields_visibility_test.rb
+++ b/test/functional/timelog_custom_fields_visibility_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/timelog_report_test.rb b/test/functional/timelog_report_test.rb
index 6d053b55d..5019abda9 100644
--- a/test/functional/timelog_report_test.rb
+++ b/test/functional/timelog_report_test.rb
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/trackers_controller_test.rb b/test/functional/trackers_controller_test.rb
index cd6fcce13..d9d3f696f 100644
--- a/test/functional/trackers_controller_test.rb
+++ b/test/functional/trackers_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/users_controller_test.rb b/test/functional/users_controller_test.rb
index 603b7b9e2..b43d01214 100644
--- a/test/functional/users_controller_test.rb
+++ b/test/functional/users_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/versions_controller_test.rb b/test/functional/versions_controller_test.rb
index 3d5af8dd3..abe1f646d 100644
--- a/test/functional/versions_controller_test.rb
+++ b/test/functional/versions_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/watchers_controller_test.rb b/test/functional/watchers_controller_test.rb
index fb96e99b1..e586411f5 100644
--- a/test/functional/watchers_controller_test.rb
+++ b/test/functional/watchers_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/welcome_controller_test.rb b/test/functional/welcome_controller_test.rb
index 8f486c219..186af1ee2 100644
--- a/test/functional/welcome_controller_test.rb
+++ b/test/functional/welcome_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb
index f8c50b481..149675258 100644
--- a/test/functional/wiki_controller_test.rb
+++ b/test/functional/wiki_controller_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/functional/wikis_controller_test.rb b/test/functional/wikis_controller_test.rb
index 2570f4bfd..f4d482c6e 100644
--- a/test/functional/wikis_controller_test.rb
+++ b/test/functional/wikis_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/workflows_controller_test.rb b/test/functional/workflows_controller_test.rb
index 45d50bba0..93a8a34de 100644
--- a/test/functional/workflows_controller_test.rb
+++ b/test/functional/workflows_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/helpers/activities_helper_test.rb b/test/helpers/activities_helper_test.rb
index b4a03369a..50e4d46df 100644
--- a/test/helpers/activities_helper_test.rb
+++ b/test/helpers/activities_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb
index bfefc1052..2fcbaf7f0 100644
--- a/test/helpers/application_helper_test.rb
+++ b/test/helpers/application_helper_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/helpers/custom_fields_helper_test.rb b/test/helpers/custom_fields_helper_test.rb
index ed0daa03a..7827fa844 100644
--- a/test/helpers/custom_fields_helper_test.rb
+++ b/test/helpers/custom_fields_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/helpers/groups_helper_test.rb b/test/helpers/groups_helper_test.rb
index 1cdc4fadb..933f6e81b 100644
--- a/test/helpers/groups_helper_test.rb
+++ b/test/helpers/groups_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/helpers/issues_helper_test.rb b/test/helpers/issues_helper_test.rb
index 6908d5128..61ec5bd74 100644
--- a/test/helpers/issues_helper_test.rb
+++ b/test/helpers/issues_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/helpers/journals_helper_test.rb b/test/helpers/journals_helper_test.rb
index b9bec9200..8e75bb04e 100644
--- a/test/helpers/journals_helper_test.rb
+++ b/test/helpers/journals_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/helpers/members_helper_test.rb b/test/helpers/members_helper_test.rb
index fa482f591..e26a99ace 100644
--- a/test/helpers/members_helper_test.rb
+++ b/test/helpers/members_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/helpers/projects_helper_test.rb b/test/helpers/projects_helper_test.rb
index 356f6c03e..116f215e1 100644
--- a/test/helpers/projects_helper_test.rb
+++ b/test/helpers/projects_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/helpers/queries_helper_test.rb b/test/helpers/queries_helper_test.rb
index 8cce2625b..a880a92f6 100644
--- a/test/helpers/queries_helper_test.rb
+++ b/test/helpers/queries_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/helpers/routes_helper_test.rb b/test/helpers/routes_helper_test.rb
index 961b02a76..0069ac8b4 100644
--- a/test/helpers/routes_helper_test.rb
+++ b/test/helpers/routes_helper_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/helpers/search_helper_test.rb b/test/helpers/search_helper_test.rb
index dbaa857db..af483775c 100644
--- a/test/helpers/search_helper_test.rb
+++ b/test/helpers/search_helper_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/helpers/settings_helper_test.rb b/test/helpers/settings_helper_test.rb
index 42cee99c3..6aa9fb5a1 100644
--- a/test/helpers/settings_helper_test.rb
+++ b/test/helpers/settings_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/helpers/sort_helper_test.rb b/test/helpers/sort_helper_test.rb
index 0dac9b495..586a5d125 100644
--- a/test/helpers/sort_helper_test.rb
+++ b/test/helpers/sort_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/helpers/timelog_helper_test.rb b/test/helpers/timelog_helper_test.rb
index 4bc225a14..9c7ecd8be 100644
--- a/test/helpers/timelog_helper_test.rb
+++ b/test/helpers/timelog_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/helpers/version_helper_test.rb b/test/helpers/version_helper_test.rb
index 372b65aa8..1800388f0 100644
--- a/test/helpers/version_helper_test.rb
+++ b/test/helpers/version_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/helpers/watchers_helper_test.rb b/test/helpers/watchers_helper_test.rb
index 9e544ecac..109ac746b 100644
--- a/test/helpers/watchers_helper_test.rb
+++ b/test/helpers/watchers_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/helpers/wiki_helper_test.rb b/test/helpers/wiki_helper_test.rb
index 4d872402b..74ab03473 100644
--- a/test/helpers/wiki_helper_test.rb
+++ b/test/helpers/wiki_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/account_test.rb b/test/integration/account_test.rb
index 4f0a45156..c16f58b59 100644
--- a/test/integration/account_test.rb
+++ b/test/integration/account_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/admin_test.rb b/test/integration/admin_test.rb
index e7f6f0eea..7809d0872 100644
--- a/test/integration/admin_test.rb
+++ b/test/integration/admin_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/api_routing_test.rb b/test/integration/api_test/api_routing_test.rb
index ef45d6c63..fefe242ca 100644
--- a/test/integration/api_test/api_routing_test.rb
+++ b/test/integration/api_test/api_routing_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/api_test.rb b/test/integration/api_test/api_test.rb
index 469876f61..cdf841c9c 100644
--- a/test/integration/api_test/api_test.rb
+++ b/test/integration/api_test/api_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/attachments_test.rb b/test/integration/api_test/attachments_test.rb
index 5095a9504..f469a5132 100644
--- a/test/integration/api_test/attachments_test.rb
+++ b/test/integration/api_test/attachments_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/authentication_test.rb b/test/integration/api_test/authentication_test.rb
index f1c2e9e79..f7a791c77 100644
--- a/test/integration/api_test/authentication_test.rb
+++ b/test/integration/api_test/authentication_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/custom_fields_attribute_test.rb b/test/integration/api_test/custom_fields_attribute_test.rb
index 4335bbfa4..b08f93c42 100644
--- a/test/integration/api_test/custom_fields_attribute_test.rb
+++ b/test/integration/api_test/custom_fields_attribute_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/custom_fields_test.rb b/test/integration/api_test/custom_fields_test.rb
index 90bd6e5c6..51b400878 100644
--- a/test/integration/api_test/custom_fields_test.rb
+++ b/test/integration/api_test/custom_fields_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/disabled_rest_api_test.rb b/test/integration/api_test/disabled_rest_api_test.rb
index f0283ba34..311ae6bf9 100644
--- a/test/integration/api_test/disabled_rest_api_test.rb
+++ b/test/integration/api_test/disabled_rest_api_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/enumerations_test.rb b/test/integration/api_test/enumerations_test.rb
index bae17e361..a5b31f851 100644
--- a/test/integration/api_test/enumerations_test.rb
+++ b/test/integration/api_test/enumerations_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/files_test.rb b/test/integration/api_test/files_test.rb
index b6ecc0139..6879b02da 100644
--- a/test/integration/api_test/files_test.rb
+++ b/test/integration/api_test/files_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/groups_test.rb b/test/integration/api_test/groups_test.rb
index de6906ff4..5a70e8cfe 100644
--- a/test/integration/api_test/groups_test.rb
+++ b/test/integration/api_test/groups_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/issue_categories_test.rb b/test/integration/api_test/issue_categories_test.rb
index a1fd70f3f..f033b3391 100644
--- a/test/integration/api_test/issue_categories_test.rb
+++ b/test/integration/api_test/issue_categories_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/issue_relations_test.rb b/test/integration/api_test/issue_relations_test.rb
index 913322e84..0665145d7 100644
--- a/test/integration/api_test/issue_relations_test.rb
+++ b/test/integration/api_test/issue_relations_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/issue_statuses_test.rb b/test/integration/api_test/issue_statuses_test.rb
index 7e37ddba6..c7ed78c73 100644
--- a/test/integration/api_test/issue_statuses_test.rb
+++ b/test/integration/api_test/issue_statuses_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/issues_test.rb b/test/integration/api_test/issues_test.rb
index 207374823..cefc96a66 100644
--- a/test/integration/api_test/issues_test.rb
+++ b/test/integration/api_test/issues_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/jsonp_test.rb b/test/integration/api_test/jsonp_test.rb
index 3a148e08b..307033e64 100644
--- a/test/integration/api_test/jsonp_test.rb
+++ b/test/integration/api_test/jsonp_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/memberships_test.rb b/test/integration/api_test/memberships_test.rb
index 95e10d18f..dacedc779 100644
--- a/test/integration/api_test/memberships_test.rb
+++ b/test/integration/api_test/memberships_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/news_test.rb b/test/integration/api_test/news_test.rb
index 2f96162a2..de11190bf 100644
--- a/test/integration/api_test/news_test.rb
+++ b/test/integration/api_test/news_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/projects_test.rb b/test/integration/api_test/projects_test.rb
index b804e8d00..0664fbb2a 100644
--- a/test/integration/api_test/projects_test.rb
+++ b/test/integration/api_test/projects_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/queries_test.rb b/test/integration/api_test/queries_test.rb
index 176f74657..e147e0c83 100644
--- a/test/integration/api_test/queries_test.rb
+++ b/test/integration/api_test/queries_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/roles_test.rb b/test/integration/api_test/roles_test.rb
index 0694faa64..72c4e4585 100644
--- a/test/integration/api_test/roles_test.rb
+++ b/test/integration/api_test/roles_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/search_test.rb b/test/integration/api_test/search_test.rb
index 2c14ed4ac..65d4654d8 100644
--- a/test/integration/api_test/search_test.rb
+++ b/test/integration/api_test/search_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/time_entries_test.rb b/test/integration/api_test/time_entries_test.rb
index 832a45d73..d369e757f 100644
--- a/test/integration/api_test/time_entries_test.rb
+++ b/test/integration/api_test/time_entries_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/trackers_test.rb b/test/integration/api_test/trackers_test.rb
index df2a6edd1..d29f288c4 100644
--- a/test/integration/api_test/trackers_test.rb
+++ b/test/integration/api_test/trackers_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/users_test.rb b/test/integration/api_test/users_test.rb
index 9847ca477..8a8031ffa 100644
--- a/test/integration/api_test/users_test.rb
+++ b/test/integration/api_test/users_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/versions_test.rb b/test/integration/api_test/versions_test.rb
index 144ef531b..048eddaf0 100644
--- a/test/integration/api_test/versions_test.rb
+++ b/test/integration/api_test/versions_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/wiki_pages_test.rb b/test/integration/api_test/wiki_pages_test.rb
index 89b6dac1b..fb3f095d6 100644
--- a/test/integration/api_test/wiki_pages_test.rb
+++ b/test/integration/api_test/wiki_pages_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/application_test.rb b/test/integration/application_test.rb
index 7990b4265..d1ecb2619 100644
--- a/test/integration/application_test.rb
+++ b/test/integration/application_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/attachments_test.rb b/test/integration/attachments_test.rb
index 0b3bf1862..446ec79d2 100644
--- a/test/integration/attachments_test.rb
+++ b/test/integration/attachments_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/feeds_test.rb b/test/integration/feeds_test.rb
index 192c289d3..f0c33490a 100644
--- a/test/integration/feeds_test.rb
+++ b/test/integration/feeds_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/issues_test.rb b/test/integration/issues_test.rb
index ddcdd0f49..50271845b 100644
--- a/test/integration/issues_test.rb
+++ b/test/integration/issues_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/layout_test.rb b/test/integration/layout_test.rb
index 08e7214ce..5f83e8d90 100644
--- a/test/integration/layout_test.rb
+++ b/test/integration/layout_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/lib/redmine/field_format/attachment_format_test.rb b/test/integration/lib/redmine/field_format/attachment_format_test.rb
index a01149d01..eeeb2b909 100644
--- a/test/integration/lib/redmine/field_format/attachment_format_test.rb
+++ b/test/integration/lib/redmine/field_format/attachment_format_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/lib/redmine/hook_test.rb b/test/integration/lib/redmine/hook_test.rb
index 9318cab09..71eac69c9 100644
--- a/test/integration/lib/redmine/hook_test.rb
+++ b/test/integration/lib/redmine/hook_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/lib/redmine/menu_manager_test.rb b/test/integration/lib/redmine/menu_manager_test.rb
index eb81d9cf4..89ebd2a99 100644
--- a/test/integration/lib/redmine/menu_manager_test.rb
+++ b/test/integration/lib/redmine/menu_manager_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/lib/redmine/themes_test.rb b/test/integration/lib/redmine/themes_test.rb
index a37e9d16d..ff24c478a 100644
--- a/test/integration/lib/redmine/themes_test.rb
+++ b/test/integration/lib/redmine/themes_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/projects_test.rb b/test/integration/projects_test.rb
index d82309a9b..5342834a7 100644
--- a/test/integration/projects_test.rb
+++ b/test/integration/projects_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/repositories_git_test.rb b/test/integration/repositories_git_test.rb
index ba1922240..8aa23c786 100644
--- a/test/integration/repositories_git_test.rb
+++ b/test/integration/repositories_git_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/account_test.rb b/test/integration/routing/account_test.rb
index 41060bc33..bfca46256 100644
--- a/test/integration/routing/account_test.rb
+++ b/test/integration/routing/account_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/activities_test.rb b/test/integration/routing/activities_test.rb
index 53577a9fc..3b05fbb7a 100644
--- a/test/integration/routing/activities_test.rb
+++ b/test/integration/routing/activities_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/admin_test.rb b/test/integration/routing/admin_test.rb
index c49b45bc4..f2d6c62c8 100644
--- a/test/integration/routing/admin_test.rb
+++ b/test/integration/routing/admin_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/attachments_test.rb b/test/integration/routing/attachments_test.rb
index 096591f2d..aefadc7da 100644
--- a/test/integration/routing/attachments_test.rb
+++ b/test/integration/routing/attachments_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/auth_sources_test.rb b/test/integration/routing/auth_sources_test.rb
index e816540ff..cb2e23bfb 100644
--- a/test/integration/routing/auth_sources_test.rb
+++ b/test/integration/routing/auth_sources_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/auto_completes_test.rb b/test/integration/routing/auto_completes_test.rb
index 0679fe101..59162fccc 100644
--- a/test/integration/routing/auto_completes_test.rb
+++ b/test/integration/routing/auto_completes_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/boards_test.rb b/test/integration/routing/boards_test.rb
index 02cfa4633..4ddabca37 100644
--- a/test/integration/routing/boards_test.rb
+++ b/test/integration/routing/boards_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/calendars_test.rb b/test/integration/routing/calendars_test.rb
index 06ce9b6f6..29a4df43b 100644
--- a/test/integration/routing/calendars_test.rb
+++ b/test/integration/routing/calendars_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/comments_test.rb b/test/integration/routing/comments_test.rb
index ff8880cc4..57210e38c 100644
--- a/test/integration/routing/comments_test.rb
+++ b/test/integration/routing/comments_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/context_menus_test.rb b/test/integration/routing/context_menus_test.rb
index a5da4d3e4..9410d6112 100644
--- a/test/integration/routing/context_menus_test.rb
+++ b/test/integration/routing/context_menus_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/custom_fields_test.rb b/test/integration/routing/custom_fields_test.rb
index 5da419b9f..73ff4dac4 100644
--- a/test/integration/routing/custom_fields_test.rb
+++ b/test/integration/routing/custom_fields_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/documents_test.rb b/test/integration/routing/documents_test.rb
index 4de45ea44..ae25931ac 100644
--- a/test/integration/routing/documents_test.rb
+++ b/test/integration/routing/documents_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/enumerations_test.rb b/test/integration/routing/enumerations_test.rb
index 6800b02d8..b23c8a191 100644
--- a/test/integration/routing/enumerations_test.rb
+++ b/test/integration/routing/enumerations_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/files_test.rb b/test/integration/routing/files_test.rb
index b6c6f03d8..66f947a20 100644
--- a/test/integration/routing/files_test.rb
+++ b/test/integration/routing/files_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/gantts_test.rb b/test/integration/routing/gantts_test.rb
index d3b060dfb..26283acbf 100644
--- a/test/integration/routing/gantts_test.rb
+++ b/test/integration/routing/gantts_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/groups_test.rb b/test/integration/routing/groups_test.rb
index 0fc1ba562..9edf7efa4 100644
--- a/test/integration/routing/groups_test.rb
+++ b/test/integration/routing/groups_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/imports_test.rb b/test/integration/routing/imports_test.rb
index 6f52c2ad1..91677dbec 100644
--- a/test/integration/routing/imports_test.rb
+++ b/test/integration/routing/imports_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/issue_categories_test.rb b/test/integration/routing/issue_categories_test.rb
index 68f251563..77d5aab8b 100644
--- a/test/integration/routing/issue_categories_test.rb
+++ b/test/integration/routing/issue_categories_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/issue_relations_test.rb b/test/integration/routing/issue_relations_test.rb
index 18ebff5b9..8d9160eb6 100644
--- a/test/integration/routing/issue_relations_test.rb
+++ b/test/integration/routing/issue_relations_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/issue_statuses_test.rb b/test/integration/routing/issue_statuses_test.rb
index 97bd8a8f3..16d288246 100644
--- a/test/integration/routing/issue_statuses_test.rb
+++ b/test/integration/routing/issue_statuses_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/issues_test.rb b/test/integration/routing/issues_test.rb
index 2ca9a756b..b9c9a1adb 100644
--- a/test/integration/routing/issues_test.rb
+++ b/test/integration/routing/issues_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/journals_test.rb b/test/integration/routing/journals_test.rb
index 33b644f63..19a5c40ca 100644
--- a/test/integration/routing/journals_test.rb
+++ b/test/integration/routing/journals_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/mail_handler_test.rb b/test/integration/routing/mail_handler_test.rb
index e25ee0ae1..5aa4cb201 100644
--- a/test/integration/routing/mail_handler_test.rb
+++ b/test/integration/routing/mail_handler_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/members_test.rb b/test/integration/routing/members_test.rb
index 17f8e0227..a3ad9b072 100644
--- a/test/integration/routing/members_test.rb
+++ b/test/integration/routing/members_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/messages_test.rb b/test/integration/routing/messages_test.rb
index e5ea2844c..866b3d3dc 100644
--- a/test/integration/routing/messages_test.rb
+++ b/test/integration/routing/messages_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/my_test.rb b/test/integration/routing/my_test.rb
index 546fb3014..fac5ebffc 100644
--- a/test/integration/routing/my_test.rb
+++ b/test/integration/routing/my_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/news_test.rb b/test/integration/routing/news_test.rb
index 0c6340443..f3aff861b 100644
--- a/test/integration/routing/news_test.rb
+++ b/test/integration/routing/news_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/previews_test.rb b/test/integration/routing/previews_test.rb
index c5b4eeaee..e1b8fc0ad 100644
--- a/test/integration/routing/previews_test.rb
+++ b/test/integration/routing/previews_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/principal_memberships_test.rb b/test/integration/routing/principal_memberships_test.rb
index c6e5fe418..888e73145 100644
--- a/test/integration/routing/principal_memberships_test.rb
+++ b/test/integration/routing/principal_memberships_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/project_enumerations_test.rb b/test/integration/routing/project_enumerations_test.rb
index f3e03945a..09a4812e7 100644
--- a/test/integration/routing/project_enumerations_test.rb
+++ b/test/integration/routing/project_enumerations_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/projects_test.rb b/test/integration/routing/projects_test.rb
index 0048380ae..0f55db896 100644
--- a/test/integration/routing/projects_test.rb
+++ b/test/integration/routing/projects_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/queries_test.rb b/test/integration/routing/queries_test.rb
index 8dc5e8416..b1dbeaa0d 100644
--- a/test/integration/routing/queries_test.rb
+++ b/test/integration/routing/queries_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/reports_test.rb b/test/integration/routing/reports_test.rb
index b008ecbdd..a85a0f9a5 100644
--- a/test/integration/routing/reports_test.rb
+++ b/test/integration/routing/reports_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/repositories_test.rb b/test/integration/routing/repositories_test.rb
index 15f707091..4b82e2d81 100644
--- a/test/integration/routing/repositories_test.rb
+++ b/test/integration/routing/repositories_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/roles_test.rb b/test/integration/routing/roles_test.rb
index 895282059..8aaf36063 100644
--- a/test/integration/routing/roles_test.rb
+++ b/test/integration/routing/roles_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/search_test.rb b/test/integration/routing/search_test.rb
index ef0f86c16..aa5d22287 100644
--- a/test/integration/routing/search_test.rb
+++ b/test/integration/routing/search_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/settings_test.rb b/test/integration/routing/settings_test.rb
index 51688d146..5eebb5792 100644
--- a/test/integration/routing/settings_test.rb
+++ b/test/integration/routing/settings_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/sys_test.rb b/test/integration/routing/sys_test.rb
index 6893051b0..bba26aa29 100644
--- a/test/integration/routing/sys_test.rb
+++ b/test/integration/routing/sys_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/timelog_test.rb b/test/integration/routing/timelog_test.rb
index 0f7f8e4da..53c883bd9 100644
--- a/test/integration/routing/timelog_test.rb
+++ b/test/integration/routing/timelog_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/trackers_test.rb b/test/integration/routing/trackers_test.rb
index d650dcc95..bc8c6ecdd 100644
--- a/test/integration/routing/trackers_test.rb
+++ b/test/integration/routing/trackers_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/users_test.rb b/test/integration/routing/users_test.rb
index 97beea482..0e1d957d0 100644
--- a/test/integration/routing/users_test.rb
+++ b/test/integration/routing/users_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/versions_test.rb b/test/integration/routing/versions_test.rb
index d559e24b1..364b5ae52 100644
--- a/test/integration/routing/versions_test.rb
+++ b/test/integration/routing/versions_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/watchers_test.rb b/test/integration/routing/watchers_test.rb
index 2c2949126..ffb3279fe 100644
--- a/test/integration/routing/watchers_test.rb
+++ b/test/integration/routing/watchers_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/welcome_test.rb b/test/integration/routing/welcome_test.rb
index ad064f35d..48686a7be 100644
--- a/test/integration/routing/welcome_test.rb
+++ b/test/integration/routing/welcome_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/wiki_test.rb b/test/integration/routing/wiki_test.rb
index eb972dc58..54fcb17db 100644
--- a/test/integration/routing/wiki_test.rb
+++ b/test/integration/routing/wiki_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/wikis_test.rb b/test/integration/routing/wikis_test.rb
index ebd241614..f3d327630 100644
--- a/test/integration/routing/wikis_test.rb
+++ b/test/integration/routing/wikis_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/workflows_test.rb b/test/integration/routing/workflows_test.rb
index a24b87db9..436ca21bc 100644
--- a/test/integration/routing/workflows_test.rb
+++ b/test/integration/routing/workflows_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/sessions_test.rb b/test/integration/sessions_test.rb
index c86bae1c3..836e6f782 100644
--- a/test/integration/sessions_test.rb
+++ b/test/integration/sessions_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/sudo_mode_test.rb b/test/integration/sudo_mode_test.rb
index 94f643e6c..844c61481 100644
--- a/test/integration/sudo_mode_test.rb
+++ b/test/integration/sudo_mode_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require File.expand_path('../../test_helper', __FILE__)
class SudoModeTest < Redmine::IntegrationTest
diff --git a/test/integration/users_test.rb b/test/integration/users_test.rb
index cb29b0902..6ae8e788f 100644
--- a/test/integration/users_test.rb
+++ b/test/integration/users_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/welcome_test.rb b/test/integration/welcome_test.rb
index ef181e71c..1dbea10d3 100644
--- a/test/integration/welcome_test.rb
+++ b/test/integration/welcome_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/mocks/open_id_authentication_mock.rb b/test/mocks/open_id_authentication_mock.rb
index 7cb78c7c7..d93c911ab 100644
--- a/test/mocks/open_id_authentication_mock.rb
+++ b/test/mocks/open_id_authentication_mock.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Mocks out OpenID
#
# http://www.northpub.com/articles/2007/04/02/testing-openid-support
diff --git a/test/object_helpers.rb b/test/object_helpers.rb
index 0e490efe1..7e6a663b4 100644
--- a/test/object_helpers.rb
+++ b/test/object_helpers.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
module ObjectHelpers
def User.generate!(attributes={})
@generated_user_login ||= 'user0'
diff --git a/test/system/issues_import_test.rb b/test/system/issues_import_test.rb
index 918282eaf..249cc2272 100644
--- a/test/system/issues_import_test.rb
+++ b/test/system/issues_import_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/system/issues_test.rb b/test/system/issues_test.rb
index f4c52996d..388197c9c 100644
--- a/test/system/issues_test.rb
+++ b/test/system/issues_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/system/my_page_test.rb b/test/system/my_page_test.rb
index e9f74d354..3c7c3cae5 100644
--- a/test/system/my_page_test.rb
+++ b/test/system/my_page_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/system/quick_jump_test.rb b/test/system/quick_jump_test.rb
index 5831faf86..ecfca5bca 100644
--- a/test/system/quick_jump_test.rb
+++ b/test/system/quick_jump_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/system/sudo_mode_test.rb b/test/system/sudo_mode_test.rb
index 4d7e11bce..401c35c3f 100644
--- a/test/system/sudo_mode_test.rb
+++ b/test/system/sudo_mode_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/system/timelog_test.rb b/test/system/timelog_test.rb
index 8624fffed..3e7def410 100644
--- a/test/system/timelog_test.rb
+++ b/test/system/timelog_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/test_helper.rb b/test/test_helper.rb
index ef8215cc1..3ab99aaae 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/activity_test.rb b/test/unit/activity_test.rb
index 3c1402173..fcefbcea7 100644
--- a/test/unit/activity_test.rb
+++ b/test/unit/activity_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/attachment_test.rb b/test/unit/attachment_test.rb
index bccb2c6c4..8790fe93f 100644
--- a/test/unit/attachment_test.rb
+++ b/test/unit/attachment_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/unit/attachment_transaction_test.rb b/test/unit/attachment_transaction_test.rb
index 173d2a658..72f87e324 100644
--- a/test/unit/attachment_transaction_test.rb
+++ b/test/unit/attachment_transaction_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/unit/auth_source_ldap_test.rb b/test/unit/auth_source_ldap_test.rb
index 322568226..452f1d2b9 100644
--- a/test/unit/auth_source_ldap_test.rb
+++ b/test/unit/auth_source_ldap_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/board_test.rb b/test/unit/board_test.rb
index 35c2da9fa..cfe59608f 100644
--- a/test/unit/board_test.rb
+++ b/test/unit/board_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/unit/changeset_test.rb b/test/unit/changeset_test.rb
index c246a0c70..248421c38 100644
--- a/test/unit/changeset_test.rb
+++ b/test/unit/changeset_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/unit/comment_test.rb b/test/unit/comment_test.rb
index 6e97df612..ec3abf496 100644
--- a/test/unit/comment_test.rb
+++ b/test/unit/comment_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/custom_field_test.rb b/test/unit/custom_field_test.rb
index e4c9c0b94..e0f08f6c0 100644
--- a/test/unit/custom_field_test.rb
+++ b/test/unit/custom_field_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/custom_field_user_format_test.rb b/test/unit/custom_field_user_format_test.rb
index a3d161de3..c0a16157a 100644
--- a/test/unit/custom_field_user_format_test.rb
+++ b/test/unit/custom_field_user_format_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/custom_field_version_format_test.rb b/test/unit/custom_field_version_format_test.rb
index 4e09bed05..40177e6de 100644
--- a/test/unit/custom_field_version_format_test.rb
+++ b/test/unit/custom_field_version_format_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/custom_value_test.rb b/test/unit/custom_value_test.rb
index 14964ed09..70e276c4e 100644
--- a/test/unit/custom_value_test.rb
+++ b/test/unit/custom_value_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/default_data_test.rb b/test/unit/default_data_test.rb
index 6a6a223bd..a22f3e233 100644
--- a/test/unit/default_data_test.rb
+++ b/test/unit/default_data_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/document_category_test.rb b/test/unit/document_category_test.rb
index 305d827da..66641a928 100644
--- a/test/unit/document_category_test.rb
+++ b/test/unit/document_category_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/document_test.rb b/test/unit/document_test.rb
index 7c409e927..43c4cc793 100644
--- a/test/unit/document_test.rb
+++ b/test/unit/document_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/enabled_module_test.rb b/test/unit/enabled_module_test.rb
index 79995dbf2..5f3aae7e8 100644
--- a/test/unit/enabled_module_test.rb
+++ b/test/unit/enabled_module_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/enumeration_test.rb b/test/unit/enumeration_test.rb
index 7eeafd2af..b17dfbce8 100644
--- a/test/unit/enumeration_test.rb
+++ b/test/unit/enumeration_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/group_test.rb b/test/unit/group_test.rb
index f706826ce..c264d48cb 100644
--- a/test/unit/group_test.rb
+++ b/test/unit/group_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/initializers/patches_test.rb b/test/unit/initializers/patches_test.rb
index c9a134fa4..67ecc2f7c 100644
--- a/test/unit/initializers/patches_test.rb
+++ b/test/unit/initializers/patches_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/issue_category_test.rb b/test/unit/issue_category_test.rb
index 2d0316882..8ebea9f3e 100644
--- a/test/unit/issue_category_test.rb
+++ b/test/unit/issue_category_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/issue_custom_field_test.rb b/test/unit/issue_custom_field_test.rb
index 4ecce3b5e..e6e76e9e1 100644
--- a/test/unit/issue_custom_field_test.rb
+++ b/test/unit/issue_custom_field_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/issue_import_test.rb b/test/unit/issue_import_test.rb
index fe4a04872..b6c2d3104 100644
--- a/test/unit/issue_import_test.rb
+++ b/test/unit/issue_import_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/issue_nested_set_concurrency_test.rb b/test/unit/issue_nested_set_concurrency_test.rb
index b35cbadbd..ae4261263 100644
--- a/test/unit/issue_nested_set_concurrency_test.rb
+++ b/test/unit/issue_nested_set_concurrency_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/issue_nested_set_test.rb b/test/unit/issue_nested_set_test.rb
index 30aa2a097..ab5dcec85 100644
--- a/test/unit/issue_nested_set_test.rb
+++ b/test/unit/issue_nested_set_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/issue_priority_test.rb b/test/unit/issue_priority_test.rb
index 3141344f4..b48e095d5 100644
--- a/test/unit/issue_priority_test.rb
+++ b/test/unit/issue_priority_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/issue_relation_test.rb b/test/unit/issue_relation_test.rb
index 6e6322885..31611edb0 100644
--- a/test/unit/issue_relation_test.rb
+++ b/test/unit/issue_relation_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/issue_scopes_test.rb b/test/unit/issue_scopes_test.rb
index 19253645f..13f98a357 100644
--- a/test/unit/issue_scopes_test.rb
+++ b/test/unit/issue_scopes_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/issue_status_test.rb b/test/unit/issue_status_test.rb
index 27441366f..70d8aa80d 100644
--- a/test/unit/issue_status_test.rb
+++ b/test/unit/issue_status_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/issue_subtasking_test.rb b/test/unit/issue_subtasking_test.rb
index b1c3d179d..ff75a9ead 100644
--- a/test/unit/issue_subtasking_test.rb
+++ b/test/unit/issue_subtasking_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb
index 3bbe75158..9f2e024fc 100644
--- a/test/unit/issue_test.rb
+++ b/test/unit/issue_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/issue_transaction_test.rb b/test/unit/issue_transaction_test.rb
index 719e4dbc5..4d9813ad1 100644
--- a/test/unit/issue_transaction_test.rb
+++ b/test/unit/issue_transaction_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/journal_observer_test.rb b/test/unit/journal_observer_test.rb
index d3fb735c7..8dccce628 100644
--- a/test/unit/journal_observer_test.rb
+++ b/test/unit/journal_observer_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/journal_test.rb b/test/unit/journal_test.rb
index 9bbedd1d5..6b21bcd35 100644
--- a/test/unit/journal_test.rb
+++ b/test/unit/journal_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/access_control_test.rb b/test/unit/lib/redmine/access_control_test.rb
index 0deceee3a..13bc8ee62 100644
--- a/test/unit/lib/redmine/access_control_test.rb
+++ b/test/unit/lib/redmine/access_control_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/acts/positioned_with_scope_test.rb b/test/unit/lib/redmine/acts/positioned_with_scope_test.rb
index 0d3b023dd..dd4efe0af 100644
--- a/test/unit/lib/redmine/acts/positioned_with_scope_test.rb
+++ b/test/unit/lib/redmine/acts/positioned_with_scope_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/acts/positioned_without_scope_test.rb b/test/unit/lib/redmine/acts/positioned_without_scope_test.rb
index 23440d0de..e76cf8bbf 100644
--- a/test/unit/lib/redmine/acts/positioned_without_scope_test.rb
+++ b/test/unit/lib/redmine/acts/positioned_without_scope_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/ciphering_test.rb b/test/unit/lib/redmine/ciphering_test.rb
index 38f87b419..3b0577c1d 100644
--- a/test/unit/lib/redmine/ciphering_test.rb
+++ b/test/unit/lib/redmine/ciphering_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/codeset_util_test.rb b/test/unit/lib/redmine/codeset_util_test.rb
index 3d04cbae7..c3040b553 100644
--- a/test/unit/lib/redmine/codeset_util_test.rb
+++ b/test/unit/lib/redmine/codeset_util_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/configuration_test.rb b/test/unit/lib/redmine/configuration_test.rb
index ca879c0ca..da408ef30 100644
--- a/test/unit/lib/redmine/configuration_test.rb
+++ b/test/unit/lib/redmine/configuration_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/export/csv_test.rb b/test/unit/lib/redmine/export/csv_test.rb
index d3727b620..69f760af2 100644
--- a/test/unit/lib/redmine/export/csv_test.rb
+++ b/test/unit/lib/redmine/export/csv_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/export/pdf/issues_pdf_test.rb b/test/unit/lib/redmine/export/pdf/issues_pdf_test.rb
index 14f34db24..111c7d089 100644
--- a/test/unit/lib/redmine/export/pdf/issues_pdf_test.rb
+++ b/test/unit/lib/redmine/export/pdf/issues_pdf_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/export/pdf_test.rb b/test/unit/lib/redmine/export/pdf_test.rb
index 3243803ef..9e9880c3a 100644
--- a/test/unit/lib/redmine/export/pdf_test.rb
+++ b/test/unit/lib/redmine/export/pdf_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/field_format/attachment_format_test.rb b/test/unit/lib/redmine/field_format/attachment_format_test.rb
index 9fbaa3211..0d68bb616 100644
--- a/test/unit/lib/redmine/field_format/attachment_format_test.rb
+++ b/test/unit/lib/redmine/field_format/attachment_format_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/field_format/attachment_format_visibility_test.rb b/test/unit/lib/redmine/field_format/attachment_format_visibility_test.rb
index 8d883f95a..055422631 100644
--- a/test/unit/lib/redmine/field_format/attachment_format_visibility_test.rb
+++ b/test/unit/lib/redmine/field_format/attachment_format_visibility_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/field_format/bool_format_test.rb b/test/unit/lib/redmine/field_format/bool_format_test.rb
index 2458de1ed..31d7af707 100644
--- a/test/unit/lib/redmine/field_format/bool_format_test.rb
+++ b/test/unit/lib/redmine/field_format/bool_format_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/field_format/enumeration_format_test.rb b/test/unit/lib/redmine/field_format/enumeration_format_test.rb
index 9b977b221..255f7f1bb 100644
--- a/test/unit/lib/redmine/field_format/enumeration_format_test.rb
+++ b/test/unit/lib/redmine/field_format/enumeration_format_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/field_format/field_format_test.rb b/test/unit/lib/redmine/field_format/field_format_test.rb
index 7d98f2585..689f737df 100644
--- a/test/unit/lib/redmine/field_format/field_format_test.rb
+++ b/test/unit/lib/redmine/field_format/field_format_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/field_format/link_format_test.rb b/test/unit/lib/redmine/field_format/link_format_test.rb
index aa7e8de52..e2e26980c 100644
--- a/test/unit/lib/redmine/field_format/link_format_test.rb
+++ b/test/unit/lib/redmine/field_format/link_format_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/field_format/list_format_test.rb b/test/unit/lib/redmine/field_format/list_format_test.rb
index 06a7fbda4..d5c5a871f 100644
--- a/test/unit/lib/redmine/field_format/list_format_test.rb
+++ b/test/unit/lib/redmine/field_format/list_format_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/field_format/numeric_format_test.rb b/test/unit/lib/redmine/field_format/numeric_format_test.rb
index 72e2148d5..fdb757f72 100644
--- a/test/unit/lib/redmine/field_format/numeric_format_test.rb
+++ b/test/unit/lib/redmine/field_format/numeric_format_test.rb
@@ -1,35 +1,37 @@
-# Redmine - project management software
-# Copyright (C) 2006-2017 Jean-Philippe Lang
-#
-# 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 File.expand_path('../../../../../test_helper', __FILE__)
-require 'redmine/field_format'
-
-class Redmine::NumericFieldFormatTest < ActionView::TestCase
- include ApplicationHelper
-
- def setup
- User.current = nil
- end
-
- def test_integer_field_with_url_pattern_should_format_as_link
- field = IssueCustomField.new(:field_format => 'int', :url_pattern => 'http://foo/%value%')
- custom_value = CustomValue.new(:custom_field => field, :customized => Issue.new, :value => "3")
-
- assert_equal 3, field.format.formatted_custom_value(self, custom_value, false)
- assert_equal '<a class="external" href="http://foo/3">3</a>', field.format.formatted_custom_value(self, custom_value, true)
- end
-end
+# frozen_string_literal: false
+
+# Redmine - project management software
+# Copyright (C) 2006-2017 Jean-Philippe Lang
+#
+# 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 File.expand_path('../../../../../test_helper', __FILE__)
+require 'redmine/field_format'
+
+class Redmine::NumericFieldFormatTest < ActionView::TestCase
+ include ApplicationHelper
+
+ def setup
+ User.current = nil
+ end
+
+ def test_integer_field_with_url_pattern_should_format_as_link
+ field = IssueCustomField.new(:field_format => 'int', :url_pattern => 'http://foo/%value%')
+ custom_value = CustomValue.new(:custom_field => field, :customized => Issue.new, :value => "3")
+
+ assert_equal 3, field.format.formatted_custom_value(self, custom_value, false)
+ assert_equal '<a class="external" href="http://foo/3">3</a>', field.format.formatted_custom_value(self, custom_value, true)
+ end
+end
diff --git a/test/unit/lib/redmine/field_format/user_field_format_test.rb b/test/unit/lib/redmine/field_format/user_field_format_test.rb
index e545c6d4f..0d2f4fa8a 100644
--- a/test/unit/lib/redmine/field_format/user_field_format_test.rb
+++ b/test/unit/lib/redmine/field_format/user_field_format_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/field_format/version_field_format_test.rb b/test/unit/lib/redmine/field_format/version_field_format_test.rb
index 2984624d6..09071b1f0 100644
--- a/test/unit/lib/redmine/field_format/version_field_format_test.rb
+++ b/test/unit/lib/redmine/field_format/version_field_format_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/helpers/calendar_test.rb b/test/unit/lib/redmine/helpers/calendar_test.rb
index 06fe31f00..1c5f98027 100644
--- a/test/unit/lib/redmine/helpers/calendar_test.rb
+++ b/test/unit/lib/redmine/helpers/calendar_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/helpers/diff_test.rb b/test/unit/lib/redmine/helpers/diff_test.rb
index 8768f798d..fa1c83162 100644
--- a/test/unit/lib/redmine/helpers/diff_test.rb
+++ b/test/unit/lib/redmine/helpers/diff_test.rb
@@ -1,37 +1,39 @@
-# Redmine - project management software
-# Copyright (C) 2006-2017 Jean-Philippe Lang
-#
-# 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 File.expand_path('../../../../../test_helper', __FILE__)
-
-class DiffTest < ActiveSupport::TestCase
- def test_diff
- diff = Redmine::Helpers::Diff.new("foo", "bar")
- assert_not_nil diff
- end
-
- def test_dont_double_escape
- # 3 cases to test in the before: first word, last word, everything inbetween
- before = "<stuff> with html & special chars</danger>"
- # all words in after are treated equal
- after = "other stuff <script>alert('foo');</alert>"
-
- computed_diff = Redmine::Helpers::Diff.new(before, after).to_html
- expected_diff = '<span class="diff_in">&lt;stuff&gt; with html &amp; special chars&lt;/danger&gt;</span> <span class="diff_out">other stuff &lt;script&gt;alert(&#39;foo&#39;);&lt;/alert&gt;</span>'
-
- assert_equal computed_diff, expected_diff
- end
-end
+# frozen_string_literal: false
+
+# Redmine - project management software
+# Copyright (C) 2006-2017 Jean-Philippe Lang
+#
+# 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 File.expand_path('../../../../../test_helper', __FILE__)
+
+class DiffTest < ActiveSupport::TestCase
+ def test_diff
+ diff = Redmine::Helpers::Diff.new("foo", "bar")
+ assert_not_nil diff
+ end
+
+ def test_dont_double_escape
+ # 3 cases to test in the before: first word, last word, everything inbetween
+ before = "<stuff> with html & special chars</danger>"
+ # all words in after are treated equal
+ after = "other stuff <script>alert('foo');</alert>"
+
+ computed_diff = Redmine::Helpers::Diff.new(before, after).to_html
+ expected_diff = '<span class="diff_in">&lt;stuff&gt; with html &amp; special chars&lt;/danger&gt;</span> <span class="diff_out">other stuff &lt;script&gt;alert(&#39;foo&#39;);&lt;/alert&gt;</span>'
+
+ assert_equal computed_diff, expected_diff
+ end
+end
diff --git a/test/unit/lib/redmine/helpers/gantt_test.rb b/test/unit/lib/redmine/helpers/gantt_test.rb
index 0f4ca4e90..69270f7b1 100644
--- a/test/unit/lib/redmine/helpers/gantt_test.rb
+++ b/test/unit/lib/redmine/helpers/gantt_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/helpers/url_test.rb b/test/unit/lib/redmine/helpers/url_test.rb
index 1807af1db..6bf11c884 100644
--- a/test/unit/lib/redmine/helpers/url_test.rb
+++ b/test/unit/lib/redmine/helpers/url_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/hook_test.rb b/test/unit/lib/redmine/hook_test.rb
index 0a75ed0b6..e804c7e66 100644
--- a/test/unit/lib/redmine/hook_test.rb
+++ b/test/unit/lib/redmine/hook_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/i18n_test.rb b/test/unit/lib/redmine/i18n_test.rb
index 9e8cb8d90..7188c54b9 100644
--- a/test/unit/lib/redmine/i18n_test.rb
+++ b/test/unit/lib/redmine/i18n_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/info_test.rb b/test/unit/lib/redmine/info_test.rb
index 5cdbda47e..1c33b7a53 100644
--- a/test/unit/lib/redmine/info_test.rb
+++ b/test/unit/lib/redmine/info_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/menu_manager/mapper_test.rb b/test/unit/lib/redmine/menu_manager/mapper_test.rb
index 519e73169..61d036a53 100644
--- a/test/unit/lib/redmine/menu_manager/mapper_test.rb
+++ b/test/unit/lib/redmine/menu_manager/mapper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/menu_manager/menu_helper_test.rb b/test/unit/lib/redmine/menu_manager/menu_helper_test.rb
index 42ec77058..69102bde2 100644
--- a/test/unit/lib/redmine/menu_manager/menu_helper_test.rb
+++ b/test/unit/lib/redmine/menu_manager/menu_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/menu_manager/menu_item_test.rb b/test/unit/lib/redmine/menu_manager/menu_item_test.rb
index b4c864d89..e6927b5d4 100644
--- a/test/unit/lib/redmine/menu_manager/menu_item_test.rb
+++ b/test/unit/lib/redmine/menu_manager/menu_item_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/menu_manager_test.rb b/test/unit/lib/redmine/menu_manager_test.rb
index b4e03e735..ca777e3d5 100644
--- a/test/unit/lib/redmine/menu_manager_test.rb
+++ b/test/unit/lib/redmine/menu_manager_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/mime_type_test.rb b/test/unit/lib/redmine/mime_type_test.rb
index bad26dd48..7a1d1fcb0 100644
--- a/test/unit/lib/redmine/mime_type_test.rb
+++ b/test/unit/lib/redmine/mime_type_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/notifiable_test.rb b/test/unit/lib/redmine/notifiable_test.rb
index 2ca378450..250543d93 100644
--- a/test/unit/lib/redmine/notifiable_test.rb
+++ b/test/unit/lib/redmine/notifiable_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/pagination_helper_test.rb b/test/unit/lib/redmine/pagination_helper_test.rb
index e743db1e2..008bfb492 100644
--- a/test/unit/lib/redmine/pagination_helper_test.rb
+++ b/test/unit/lib/redmine/pagination_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/pagination_test.rb b/test/unit/lib/redmine/pagination_test.rb
index 158d18ffc..81696f2a4 100644
--- a/test/unit/lib/redmine/pagination_test.rb
+++ b/test/unit/lib/redmine/pagination_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/plugin_test.rb b/test/unit/lib/redmine/plugin_test.rb
index 42122c945..cc2c583d6 100644
--- a/test/unit/lib/redmine/plugin_test.rb
+++ b/test/unit/lib/redmine/plugin_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/safe_attributes_test.rb b/test/unit/lib/redmine/safe_attributes_test.rb
index b9b827483..7b78953af 100644
--- a/test/unit/lib/redmine/safe_attributes_test.rb
+++ b/test/unit/lib/redmine/safe_attributes_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb
index 430e07dab..0de56c626 100644
--- a/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb
+++ b/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb
index eec9a10d2..8c3fb4faa 100644
--- a/test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb
+++ b/test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb
index 69cea8309..1a1d64fde 100644
--- a/test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb
+++ b/test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
index 3aac745a4..5a942491e 100644
--- a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
+++ b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb
index 4f891602a..aa2dc8ae0 100644
--- a/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb
+++ b/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb
index 7f66c098c..e7a608e61 100644
--- a/test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb
+++ b/test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/themes_test.rb b/test/unit/lib/redmine/themes_test.rb
index 9acf06906..7128e41a0 100644
--- a/test/unit/lib/redmine/themes_test.rb
+++ b/test/unit/lib/redmine/themes_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/unified_diff_test.rb b/test/unit/lib/redmine/unified_diff_test.rb
index 0a09a0fb4..efd7780d9 100644
--- a/test/unit/lib/redmine/unified_diff_test.rb
+++ b/test/unit/lib/redmine/unified_diff_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/utils/date_calculation.rb b/test/unit/lib/redmine/utils/date_calculation.rb
index 422848678..cb96c8df3 100644
--- a/test/unit/lib/redmine/utils/date_calculation.rb
+++ b/test/unit/lib/redmine/utils/date_calculation.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/views/builders/json_test.rb b/test/unit/lib/redmine/views/builders/json_test.rb
index b29fe1a65..eba7bc57d 100644
--- a/test/unit/lib/redmine/views/builders/json_test.rb
+++ b/test/unit/lib/redmine/views/builders/json_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/views/builders/xml_test.rb b/test/unit/lib/redmine/views/builders/xml_test.rb
index 46b5755b0..8d641c2fa 100644
--- a/test/unit/lib/redmine/views/builders/xml_test.rb
+++ b/test/unit/lib/redmine/views/builders/xml_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/views/labelled_form_builder_test.rb b/test/unit/lib/redmine/views/labelled_form_builder_test.rb
index ea7e2a6c3..69d157fa4 100644
--- a/test/unit/lib/redmine/views/labelled_form_builder_test.rb
+++ b/test/unit/lib/redmine/views/labelled_form_builder_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/wiki_formatting/html_parser_test.rb b/test/unit/lib/redmine/wiki_formatting/html_parser_test.rb
index 7af356bba..7ca503226 100644
--- a/test/unit/lib/redmine/wiki_formatting/html_parser_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting/html_parser_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/wiki_formatting/macros_test.rb b/test/unit/lib/redmine/wiki_formatting/macros_test.rb
index 7b0dfa6da..b3a9abb6b 100644
--- a/test/unit/lib/redmine/wiki_formatting/macros_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting/macros_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb b/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb
index cfe8188f6..f1eee53de 100644
--- a/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb b/test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb
index d5c4bf1fa..b46f574e2 100644
--- a/test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
index 4bbef9996..4a22baad7 100644
--- a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
@@ -1,4 +1,6 @@
#encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/unit/lib/redmine/wiki_formatting/textile_html_parser_test.rb b/test/unit/lib/redmine/wiki_formatting/textile_html_parser_test.rb
index 327336647..3ae16c1d6 100644
--- a/test/unit/lib/redmine/wiki_formatting/textile_html_parser_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting/textile_html_parser_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/wiki_formatting_test.rb b/test/unit/lib/redmine/wiki_formatting_test.rb
index 6f05d3ef9..4db068704 100644
--- a/test/unit/lib/redmine/wiki_formatting_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine_test.rb b/test/unit/lib/redmine_test.rb
index 1b69190ff..718e9d3ac 100644
--- a/test/unit/lib/redmine_test.rb
+++ b/test/unit/lib/redmine_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb
index adc4b71cf..6b2d5fd18 100644
--- a/test/unit/mail_handler_test.rb
+++ b/test/unit/mail_handler_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/unit/mailer_localisation_test.rb b/test/unit/mailer_localisation_test.rb
index f0cffc5b9..06cba0a6d 100644
--- a/test/unit/mailer_localisation_test.rb
+++ b/test/unit/mailer_localisation_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/unit/mailer_test.rb b/test/unit/mailer_test.rb
index 2f92d1c60..74df91a47 100644
--- a/test/unit/mailer_test.rb
+++ b/test/unit/mailer_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/unit/member_test.rb b/test/unit/member_test.rb
index ab6bf8473..70cac6718 100644
--- a/test/unit/member_test.rb
+++ b/test/unit/member_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/message_test.rb b/test/unit/message_test.rb
index 8d7073c2e..63d5f3093 100644
--- a/test/unit/message_test.rb
+++ b/test/unit/message_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/news_test.rb b/test/unit/news_test.rb
index 16e55dea3..c50747c5d 100644
--- a/test/unit/news_test.rb
+++ b/test/unit/news_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/principal_test.rb b/test/unit/principal_test.rb
index d5c810741..ffcf14fd9 100644
--- a/test/unit/principal_test.rb
+++ b/test/unit/principal_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/unit/project_copy_test.rb b/test/unit/project_copy_test.rb
index 19bb13a25..371de906c 100644
--- a/test/unit/project_copy_test.rb
+++ b/test/unit/project_copy_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/project_members_inheritance_test.rb b/test/unit/project_members_inheritance_test.rb
index dde3d083c..b339e47e6 100644
--- a/test/unit/project_members_inheritance_test.rb
+++ b/test/unit/project_members_inheritance_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/project_nested_set_concurrency_test.rb b/test/unit/project_nested_set_concurrency_test.rb
index 771601333..61831db2d 100644
--- a/test/unit/project_nested_set_concurrency_test.rb
+++ b/test/unit/project_nested_set_concurrency_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/project_nested_set_test.rb b/test/unit/project_nested_set_test.rb
index 1f41f745f..01fad0cb2 100644
--- a/test/unit/project_nested_set_test.rb
+++ b/test/unit/project_nested_set_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb
index ccbb92225..129ac66ff 100644
--- a/test/unit/project_test.rb
+++ b/test/unit/project_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/query_test.rb b/test/unit/query_test.rb
index 3fa1da1f9..b50761d2a 100644
--- a/test/unit/query_test.rb
+++ b/test/unit/query_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/unit/repository_bazaar_test.rb b/test/unit/repository_bazaar_test.rb
index 4a5efbec3..06c3a2c9c 100644
--- a/test/unit/repository_bazaar_test.rb
+++ b/test/unit/repository_bazaar_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/repository_cvs_test.rb b/test/unit/repository_cvs_test.rb
index e2f4e0429..302e37c86 100644
--- a/test/unit/repository_cvs_test.rb
+++ b/test/unit/repository_cvs_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/repository_filesystem_test.rb b/test/unit/repository_filesystem_test.rb
index be4223a6b..1b173283a 100644
--- a/test/unit/repository_filesystem_test.rb
+++ b/test/unit/repository_filesystem_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/repository_git_test.rb b/test/unit/repository_git_test.rb
index 1bdab9c99..9ea9b4828 100644
--- a/test/unit/repository_git_test.rb
+++ b/test/unit/repository_git_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/repository_mercurial_test.rb b/test/unit/repository_mercurial_test.rb
index 84403c844..3f4ba6fbe 100644
--- a/test/unit/repository_mercurial_test.rb
+++ b/test/unit/repository_mercurial_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/repository_subversion_test.rb b/test/unit/repository_subversion_test.rb
index a17c12bb1..bca0e4c21 100644
--- a/test/unit/repository_subversion_test.rb
+++ b/test/unit/repository_subversion_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/repository_test.rb b/test/unit/repository_test.rb
index da89f91f6..27628964b 100644
--- a/test/unit/repository_test.rb
+++ b/test/unit/repository_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/role_test.rb b/test/unit/role_test.rb
index ff723a347..09b249519 100644
--- a/test/unit/role_test.rb
+++ b/test/unit/role_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/search_test.rb b/test/unit/search_test.rb
index ecfbbcb9e..b88b7828e 100644
--- a/test/unit/search_test.rb
+++ b/test/unit/search_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/unit/setting_test.rb b/test/unit/setting_test.rb
index 5eed249f1..61bcb0db1 100644
--- a/test/unit/setting_test.rb
+++ b/test/unit/setting_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/unit/time_entry_activity_test.rb b/test/unit/time_entry_activity_test.rb
index 14e926425..350df287d 100644
--- a/test/unit/time_entry_activity_test.rb
+++ b/test/unit/time_entry_activity_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/time_entry_query_test.rb b/test/unit/time_entry_query_test.rb
index f5533e425..5344ee1a8 100644
--- a/test/unit/time_entry_query_test.rb
+++ b/test/unit/time_entry_query_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/time_entry_test.rb b/test/unit/time_entry_test.rb
index be115a81c..94a2ac8ac 100644
--- a/test/unit/time_entry_test.rb
+++ b/test/unit/time_entry_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/token_test.rb b/test/unit/token_test.rb
index 2c6c865c2..b3004f614 100644
--- a/test/unit/token_test.rb
+++ b/test/unit/token_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/tracker_test.rb b/test/unit/tracker_test.rb
index c1d02a56c..f5cacd986 100644
--- a/test/unit/tracker_test.rb
+++ b/test/unit/tracker_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/user_preference_test.rb b/test/unit/user_preference_test.rb
index b8765c2e2..e738d72ea 100644
--- a/test/unit/user_preference_test.rb
+++ b/test/unit/user_preference_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb
index 444e99eff..399a97274 100644
--- a/test/unit/user_test.rb
+++ b/test/unit/user_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/version_test.rb b/test/unit/version_test.rb
index a55b095db..048b3f1a2 100644
--- a/test/unit/version_test.rb
+++ b/test/unit/version_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/watcher_test.rb b/test/unit/watcher_test.rb
index a5acbf9d1..d49b37461 100644
--- a/test/unit/watcher_test.rb
+++ b/test/unit/watcher_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/wiki_content_test.rb b/test/unit/wiki_content_test.rb
index 016fd916a..225d7697e 100644
--- a/test/unit/wiki_content_test.rb
+++ b/test/unit/wiki_content_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/wiki_content_version_test.rb b/test/unit/wiki_content_version_test.rb
index 4625f708a..be88ac74c 100644
--- a/test/unit/wiki_content_version_test.rb
+++ b/test/unit/wiki_content_version_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/wiki_page_test.rb b/test/unit/wiki_page_test.rb
index 3f41acff6..0dd61940d 100644
--- a/test/unit/wiki_page_test.rb
+++ b/test/unit/wiki_page_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/wiki_redirect_test.rb b/test/unit/wiki_redirect_test.rb
index 584a671e3..8bae9cfd1 100644
--- a/test/unit/wiki_redirect_test.rb
+++ b/test/unit/wiki_redirect_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/wiki_test.rb b/test/unit/wiki_test.rb
index cd8f4ffd8..0f8cbf3d5 100644
--- a/test/unit/wiki_test.rb
+++ b/test/unit/wiki_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/unit/workflow_test.rb b/test/unit/workflow_test.rb
index a80288aba..a97a684cb 100644
--- a/test/unit/workflow_test.rb
+++ b/test/unit/workflow_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/workflow_transition_test.rb b/test/unit/workflow_transition_test.rb
index 62132c1cf..724834746 100644
--- a/test/unit/workflow_transition_test.rb
+++ b/test/unit/workflow_transition_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#