summaryrefslogtreecommitdiffstats
path: root/extra
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 /extra
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
Diffstat (limited to 'extra')
-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
8 files changed, 14 insertions, 0 deletions
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'