From c3eac34afca95506bc39b2fe01a6129e1bcb1eb6 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 13 May 2019 10:48:15 +0800 Subject: [PATCH] Add frozen string literal comment to files. --- Gemfile | 2 ++ bin/pull_translations.rb | 1 + lib/math_renderer.rb | 2 ++ plugin.rb | 2 ++ spec/lib/math_renderer_spec.rb | 2 ++ spec/pretty_text_spec.rb | 2 ++ 6 files changed, 11 insertions(+) diff --git a/Gemfile b/Gemfile index 6ac5785..4ba4089 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source 'https://rubygems.org' group :development do diff --git a/bin/pull_translations.rb b/bin/pull_translations.rb index f2119f3..e8f21bc 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/lib/math_renderer.rb b/lib/math_renderer.rb index cb818a4..9ae0308 100644 --- a/lib/math_renderer.rb +++ b/lib/math_renderer.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # the idea here is to support server rendering # there is a node example and we could inject this in a post processing job class DiscourseMath::MathRenderer diff --git a/plugin.rb b/plugin.rb index 8b3624e..3d97c2b 100644 --- a/plugin.rb +++ b/plugin.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # name: discourse-math # about: Official mathjax plugin for Discourse # version: 0.9 diff --git a/spec/lib/math_renderer_spec.rb b/spec/lib/math_renderer_spec.rb index 19045e6..83ca1cd 100644 --- a/spec/lib/math_renderer_spec.rb +++ b/spec/lib/math_renderer_spec.rb @@ -1 +1,3 @@ +# frozen_string_literal: true + # TODO server rendering diff --git a/spec/pretty_text_spec.rb b/spec/pretty_text_spec.rb index a48682d..d032b5c 100644 --- a/spec/pretty_text_spec.rb +++ b/spec/pretty_text_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'rails_helper' describe PrettyText do