Add frozen string literal comment to files.

approved
#1

Add frozen string literal comment to files.

diff --git a/Gemfile b/Gemfile
index 2a5f647..df32188 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 group :development do
   gem 'translations-manager', git: 'https://github.com/discourse/translations-manager.git'
 end
diff --git a/app/controllers/discourse_assign/assign_controller.rb b/app/controllers/discourse_assign/assign_controller.rb
index 39771d7..93a6a62 100644
--- a/app/controllers/discourse_assign/assign_controller.rb
+++ b/app/controllers/discourse_assign/assign_controller.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 module DiscourseAssign
   class AssignController < Admin::AdminController
     before_action :ensure_logged_in
diff --git a/app/mailers/assign_mailer.rb b/app/mailers/assign_mailer.rb
index 3b92c6b..0028ffd 100644
--- a/app/mailers/assign_mailer.rb
+++ b/app/mailers/assign_mailer.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require_dependency 'email/message_builder'
 
 class AssignMailer < ActionMailer::Base
diff --git a/app/models/remind_assigns_frequency_site_settings.rb b/app/models/remind_assigns_frequency_site_settings.rb
index de65e61..0ad6e55 100644
--- a/app/models/remind_assigns_frequency_site_settings.rb
+++ b/app/models/remind_assigns_frequency_site_settings.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require_dependency 'enum_site_setting'
 
 class RemindAssignsFrequencySiteSettings < EnumSiteSetting
diff --git a/bin/pull_translations.rb b/bin/pull_translations.rb
index 755a227..789ccaa 100755
--- a/bin/pull_translations.rb
+++ b/bin/pull_translations.rb
@@ -1,4 +1,5 @@
 #!/usr/bin/env ruby
+# frozen_string_literal: true
 
 # Usage:
 #   bundle install
diff --git a/config/routes.rb b/config/routes.rb
index 03a1f80..f67c1b0 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 DiscourseAssign::Engine.routes.draw do
   put "/claim/:topic_id" => "assign#claim"
   put "/assign" => "assign#assign"
diff --git a/db/migrate/20190422200243_add_last_reminded_at_index.rb b/db/migrate/20190422200243_add_last_reminded_at_index.rb
index 9113382..e322f74 100644
--- a/db/migrate/20190422200243_add_last_reminded_at_index.rb
+++ b/db/migrate/20190422200243_add_last_reminded_at_index.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 class AddLastRemindedAtIndex < ActiveRecord::Migration[5.2]
   def change
     add_index :user_custom_fields, %i[name user_id], name: :idx_user_custom_fields_last_reminded_at,
diff --git a/jobs/regular/remind_user.rb b/jobs/regular/remind_user.rb
index 1fe2728..fde1ea1 100644
--- a/jobs/regular/remind_user.rb
+++ b/jobs/regular/remind_user.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 module Jobs
   class RemindUser < Jobs::Base
     sidekiq_options queue: 'low'
diff --git a/jobs/scheduled/enqueue_reminders.rb b/jobs/scheduled/enqueue_reminders.rb
index 0602b07..0f7cfa2 100644
--- a/jobs/scheduled/enqueue_reminders.rb
+++ b/jobs/scheduled/enqueue_reminders.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 module Jobs
   class EnqueueReminders < Jobs::Scheduled
     every 1.day
diff --git a/jobs/unassign_bulk.rb b/jobs/unassign_bulk.rb
index 06cb82a..1a98531 100644
--- a/jobs/unassign_bulk.rb
+++ b/jobs/unassign_bulk.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 module Jobs
   class UnassignBulk < Jobs::Base
     def execute(args)
diff --git a/lib/discourse_assign/engine.rb b/lib/discourse_assign/engine.rb
index ddfdc43..2e2caa3 100644
--- a/lib/discourse_assign/engine.rb
+++ b/lib/discourse_assign/engine.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 module ::DiscourseAssign
   class Engine < ::Rails::Engine
     engine_name "discourse_assign"
diff --git a/lib/discourse_assign/helpers.rb b/lib/discourse_assign/helpers.rb
index 4c8b882..d325737 100644
--- a/lib/discourse_assign/helpers.rb
+++ b/lib/discourse_assign/helpers.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 module DiscourseAssign
   module Helpers
     def self.build_assigned_to_user(assigned_to_user_id, topic)
diff --git a/plugin.rb b/plugin.rb
index f46d6bd..e49f8d9 100644
--- a/plugin.rb
+++ b/plugin.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 # name: discourse-assign
 # about: Assign users to topics
 # version: 0.1
diff --git a/spec/components/topic_query_spec.rb b/spec/components/topic_query_spec.rb
index ded2972..8733612 100644
--- a/spec/components/topic_query_spec.rb
+++ b/spec/components/topic_query_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require 'rails_helper'
 
 describe TopicQuery do
diff --git a/spec/integration/assign_spec.rb b/spec/integration/assign_spec.rb
index d6e46bf..a359c40 100644
--- a/spec/integration/assign_spec.rb
+++ b/spec/integration/assign_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require 'rails_helper'
 
 describe 'integration tests' do
diff --git a/spec/jobs/regular/remind_user_spec.rb b/spec/jobs/regular/remind_user_spec.rb
index 5f9d93d..2c10808 100644
--- a/spec/jobs/regular/remind_user_spec.rb
+++ b/spec/jobs/regular/remind_user_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require 'rails_helper'
 
 RSpec.describe Jobs::RemindUser do
diff --git a/spec/jobs/scheduled/enqueue_reminders_spec.rb b/spec/jobs/scheduled/enqueue_reminders_spec.rb
index 8ff7abb..61765a6 100644
--- a/spec/jobs/scheduled/enqueue_reminders_spec.rb
+++ b/spec/jobs/scheduled/enqueue_reminders_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require 'rails_helper'
 
 RSpec.describe Jobs::EnqueueReminders do
diff --git a/spec/lib/pending_assigns_reminder_spec.rb b/spec/lib/pending_assigns_reminder_spec.rb
index c9143ad..6193490 100644
--- a/spec/lib/pending_assigns_reminder_spec.rb
+++ b/spec/lib/pending_assigns_reminder_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require 'rails_helper'
 
 RSpec.describe PendingAssignsReminder do
diff --git a/spec/lib/topic_assigner_spec.rb b/spec/lib/topic_assigner_spec.rb
index 1e0db91..b2b7da9 100644
--- a/spec/lib/topic_assigner_spec.rb
+++ b/spec/lib/topic_assigner_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require 'rails_helper'
 
 RSpec.describe TopicAssigner do
diff --git a/spec/requests/assign_controller_spec.rb b/spec/requests/assign_controller_spec.rb
index 07eded5..f2c425b 100644
--- a/spec/requests/assign_controller_spec.rb
+++ b/spec/requests/assign_controller_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require 'rails_helper'
 
 RSpec.describe DiscourseAssign::AssignController do
diff --git a/spec/serializers/topic_list_serializer_spec.rb b/spec/serializers/topic_list_serializer_spec.rb
index a3e57c2..adaa563 100644
--- a/spec/serializers/topic_list_serializer_spec.rb
+++ b/spec/serializers/topic_list_serializer_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require 'rails_helper'
 
 RSpec.describe TopicListSerializer do

GitHub sha: 8fca0f61

Approved #2