summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2019-02-10 03:39:52 -0700
committerGitHub <noreply@github.com>2019-02-10 03:39:52 -0700
commitc55fc9fea20d57f14e9552073dab5a27a4728f71 (patch)
treeed57ea951b139345ad2e29ad3e57c4c4e2613b03 /features
parentb6a5b14f74ca75491d395d40ed455969e644a1a0 (diff)
resolves #3054 never mutate strings; add `frozen_string_literal: true` comment to source files (PR #3055)
- replace gsub! and sub! with gsub and sub, respectively - add `frozen_string_literal: true` magic comment to all Ruby source files - see https://www.mikeperham.com/2018/02/28/ruby-optimization-with-one-magic-comment/
Diffstat (limited to 'features')
-rw-r--r--features/step_definitions.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/features/step_definitions.rb b/features/step_definitions.rb
index ebaa9bac..e7aad806 100644
--- a/features/step_definitions.rb
+++ b/features/step_definitions.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: true
ASCIIDOCTOR_FEATURES_DIR = File.absolute_path __dir__
ASCIIDOCTOR_LIB_DIR = ENV['ASCIIDOCTOR_LIB_DIR'] || File.join(ASCIIDOCTOR_FEATURES_DIR, '../lib')