DEV: Set frozen_string_literal to true.

approved
#1

DEV: Set frozen_string_literal to true.

diff --git a/plugin.rb b/plugin.rb
index 3dcfbf1..5fe20d5 100644
--- a/plugin.rb
+++ b/plugin.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 # name: discourse-encrypt
 # about: Provides encrypted communication channels through Discourse.
 # version: 0.1
diff --git a/spec/models/post_spec.rb b/spec/models/post_spec.rb
index 3fd221f..efa93e3 100644
--- a/spec/models/post_spec.rb
+++ b/spec/models/post_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require 'rails_helper'
 
 describe Post do
diff --git a/spec/plugin_spec.rb b/spec/plugin_spec.rb
index 8ff518e..6886fa7 100644
--- a/spec/plugin_spec.rb
+++ b/spec/plugin_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require 'rails_helper'
 
 describe ::DiscourseEncrypt do
diff --git a/spec/requests/encrypt_controller_spec.rb b/spec/requests/encrypt_controller_spec.rb
index a42c7f0..fcc78d9 100644
--- a/spec/requests/encrypt_controller_spec.rb
+++ b/spec/requests/encrypt_controller_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require 'rails_helper'
 
 describe ::DiscourseEncrypt::EncryptController do
diff --git a/spec/serializers/basic_topic_serializer_spec.rb b/spec/serializers/basic_topic_serializer_spec.rb
index 8698164..6fd886a 100644
--- a/spec/serializers/basic_topic_serializer_spec.rb
+++ b/spec/serializers/basic_topic_serializer_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require 'rails_helper'
 
 describe BasicTopicSerializer do
diff --git a/spec/serializers/topic_serializers_spec.rb b/spec/serializers/topic_serializers_spec.rb
index a31ab45..ebca62b 100644
--- a/spec/serializers/topic_serializers_spec.rb
+++ b/spec/serializers/topic_serializers_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require 'rails_helper'
 
 [BasicTopicSerializer, ListableTopicSerializer, TopicListItemSerializer].each do |klass|
diff --git a/spec/serializers/topic_view_serializer_spec.rb b/spec/serializers/topic_view_serializer_spec.rb
index 7e7b3a3..6b0403a 100644
--- a/spec/serializers/topic_view_serializer_spec.rb
+++ b/spec/serializers/topic_view_serializer_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require 'rails_helper'
 
 describe TopicViewSerializer do

GitHub sha: 30f7bdd2

Approved #2