diff options
86 files changed, 86 insertions, 0 deletions
diff --git a/ext/psych/extconf.rb b/ext/psych/extconf.rb index 65e83a3..be33d35 100644 --- a/ext/psych/extconf.rb +++ b/ext/psych/extconf.rb @@ -1,4 +1,5 @@ # -*- coding: us-ascii -*- +# frozen_string_literal: false require 'mkmf' require 'fileutils' diff --git a/lib/psych.rb b/lib/psych.rb index 1006998..f442e54 100644 --- a/lib/psych.rb +++ b/lib/psych.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false case RUBY_ENGINE when 'jruby' require 'psych_jars' diff --git a/lib/psych/class_loader.rb b/lib/psych/class_loader.rb index 46c6b93..ba756f7 100644 --- a/lib/psych/class_loader.rb +++ b/lib/psych/class_loader.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'psych/omap' require 'psych/set' diff --git a/lib/psych/coder.rb b/lib/psych/coder.rb index 2b830d2..26005f5 100644 --- a/lib/psych/coder.rb +++ b/lib/psych/coder.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Psych ### # If an object defines +encode_with+, then an instance of Psych::Coder will diff --git a/lib/psych/core_ext.rb b/lib/psych/core_ext.rb index 9c8134d..1a98279 100644 --- a/lib/psych/core_ext.rb +++ b/lib/psych/core_ext.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false class Object def self.yaml_tag url Psych.add_tag(url, self) diff --git a/lib/psych/deprecated.rb b/lib/psych/deprecated.rb index 8c310b3..165d210 100644 --- a/lib/psych/deprecated.rb +++ b/lib/psych/deprecated.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'date' module Psych diff --git a/lib/psych/exception.rb b/lib/psych/exception.rb index ce9d2ca..83c3d7f 100644 --- a/lib/psych/exception.rb +++ b/lib/psych/exception.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Psych class Exception < RuntimeError end diff --git a/lib/psych/handler.rb b/lib/psych/handler.rb index c55afe7..1ab5f73 100644 --- a/lib/psych/handler.rb +++ b/lib/psych/handler.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Psych ### # Psych::Handler is an abstract base class that defines the events used diff --git a/lib/psych/handlers/document_stream.rb b/lib/psych/handlers/document_stream.rb index e429993..c43b39e 100644 --- a/lib/psych/handlers/document_stream.rb +++ b/lib/psych/handlers/document_stream.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'psych/tree_builder' module Psych diff --git a/lib/psych/handlers/recorder.rb b/lib/psych/handlers/recorder.rb index 4eae62e..341b81d 100644 --- a/lib/psych/handlers/recorder.rb +++ b/lib/psych/handlers/recorder.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'psych/handler' module Psych diff --git a/lib/psych/json/ruby_events.rb b/lib/psych/json/ruby_events.rb index 6b73249..478eb66 100644 --- a/lib/psych/json/ruby_events.rb +++ b/lib/psych/json/ruby_events.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Psych module JSON module RubyEvents # :nodoc: diff --git a/lib/psych/json/stream.rb b/lib/psych/json/stream.rb index fe2a6e9..83b7e13 100644 --- a/lib/psych/json/stream.rb +++ b/lib/psych/json/stream.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'psych/json/ruby_events' require 'psych/json/yaml_events' diff --git a/lib/psych/json/tree_builder.rb b/lib/psych/json/tree_builder.rb index b799c93..2f94b8c 100644 --- a/lib/psych/json/tree_builder.rb +++ b/lib/psych/json/tree_builder.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'psych/json/yaml_events' module Psych diff --git a/lib/psych/json/yaml_events.rb b/lib/psych/json/yaml_events.rb index d054d9b..07f6473 100644 --- a/lib/psych/json/yaml_events.rb +++ b/lib/psych/json/yaml_events.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Psych module JSON module YAMLEvents # :nodoc: diff --git a/lib/psych/nodes.rb b/lib/psych/nodes.rb index f3b33fe..01573b5 100644 --- a/lib/psych/nodes.rb +++ b/lib/psych/nodes.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'psych/nodes/node' require 'psych/nodes/stream' require 'psych/nodes/document' diff --git a/lib/psych/nodes/alias.rb b/lib/psych/nodes/alias.rb index 5bd4df1..716a00d 100644 --- a/lib/psych/nodes/alias.rb +++ b/lib/psych/nodes/alias.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Psych module Nodes ### diff --git a/lib/psych/nodes/document.rb b/lib/psych/nodes/document.rb index 32014d6..7234fef 100644 --- a/lib/psych/nodes/document.rb +++ b/lib/psych/nodes/document.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Psych module Nodes ### diff --git a/lib/psych/nodes/mapping.rb b/lib/psych/nodes/mapping.rb index 5ba95ce..4c11df8 100644 --- a/lib/psych/nodes/mapping.rb +++ b/lib/psych/nodes/mapping.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Psych module Nodes ### diff --git a/lib/psych/nodes/node.rb b/lib/psych/nodes/node.rb index 83233a6..e3621dc 100644 --- a/lib/psych/nodes/node.rb +++ b/lib/psych/nodes/node.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'stringio' require 'psych/class_loader' require 'psych/scalar_scanner' diff --git a/lib/psych/nodes/scalar.rb b/lib/psych/nodes/scalar.rb index 1b1b25b..ee55705 100644 --- a/lib/psych/nodes/scalar.rb +++ b/lib/psych/nodes/scalar.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Psych module Nodes ### diff --git a/lib/psych/nodes/sequence.rb b/lib/psych/nodes/sequence.rb index 7e907fe..1096469 100644 --- a/lib/psych/nodes/sequence.rb +++ b/lib/psych/nodes/sequence.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Psych module Nodes ### diff --git a/lib/psych/nodes/stream.rb b/lib/psych/nodes/stream.rb index 7cf5e03..559b084 100644 --- a/lib/psych/nodes/stream.rb +++ b/lib/psych/nodes/stream.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Psych module Nodes ### diff --git a/lib/psych/omap.rb b/lib/psych/omap.rb index 6286270..233b945 100644 --- a/lib/psych/omap.rb +++ b/lib/psych/omap.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Psych class Omap < ::Hash end diff --git a/lib/psych/parser.rb b/lib/psych/parser.rb index 84085f1..242512f 100644 --- a/lib/psych/parser.rb +++ b/lib/psych/parser.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Psych ### # YAML event parser class. This class parses a YAML document and calls diff --git a/lib/psych/scalar_scanner.rb b/lib/psych/scalar_scanner.rb index 9300790..f519da1 100644 --- a/lib/psych/scalar_scanner.rb +++ b/lib/psych/scalar_scanner.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'strscan' module Psych diff --git a/lib/psych/set.rb b/lib/psych/set.rb index 6793a8e..f35be15 100644 --- a/lib/psych/set.rb +++ b/lib/psych/set.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Psych class Set < ::Hash end diff --git a/lib/psych/stream.rb b/lib/psych/stream.rb index 88c4c4c..2f63d7d 100644 --- a/lib/psych/stream.rb +++ b/lib/psych/stream.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Psych ### # Psych::Stream is a streaming YAML emitter. It will not buffer your YAML, diff --git a/lib/psych/streaming.rb b/lib/psych/streaming.rb index 9d94eb5..260f8a8 100644 --- a/lib/psych/streaming.rb +++ b/lib/psych/streaming.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Psych module Streaming module ClassMethods diff --git a/lib/psych/syntax_error.rb b/lib/psych/syntax_error.rb index e200ef0..db293b9 100644 --- a/lib/psych/syntax_error.rb +++ b/lib/psych/syntax_error.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'psych/exception' module Psych diff --git a/lib/psych/tree_builder.rb b/lib/psych/tree_builder.rb index c8f3447..d359c93 100644 --- a/lib/psych/tree_builder.rb +++ b/lib/psych/tree_builder.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'psych/handler' module Psych diff --git a/lib/psych/versions.rb b/lib/psych/versions.rb index 530d310..5f7652b 100644 --- a/lib/psych/versions.rb +++ b/lib/psych/versions.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Psych DEFAULT_SNAKEYAML_VERSION = '1.14'.freeze end diff --git a/lib/psych/visitors.rb b/lib/psych/visitors.rb index cc98b10..5dee4eb 100644 --- a/lib/psych/visitors.rb +++ b/lib/psych/visitors.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'psych/visitors/visitor' require 'psych/visitors/to_ruby' require 'psych/visitors/emitter' diff --git a/lib/psych/visitors/depth_first.rb b/lib/psych/visitors/depth_first.rb index c6eb814..2d74a21 100644 --- a/lib/psych/visitors/depth_first.rb +++ b/lib/psych/visitors/depth_first.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Psych module Visitors class DepthFirst < Psych::Visitors::Visitor diff --git a/lib/psych/visitors/emitter.rb b/lib/psych/visitors/emitter.rb index c886e50..f2ff9fd 100644 --- a/lib/psych/visitors/emitter.rb +++ b/lib/psych/visitors/emitter.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Psych module Visitors class Emitter < Psych::Visitors::Visitor diff --git a/lib/psych/visitors/json_tree.rb b/lib/psych/visitors/json_tree.rb index 0127ac8..f2f0215 100644 --- a/lib/psych/visitors/json_tree.rb +++ b/lib/psych/visitors/json_tree.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'psych/json/ruby_events' module Psych diff --git a/lib/psych/visitors/to_ruby.rb b/lib/psych/visitors/to_ruby.rb index 4c3591b..c061da2 100644 --- a/lib/psych/visitors/to_ruby.rb +++ b/lib/psych/visitors/to_ruby.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'psych/scalar_scanner' require 'psych/class_loader' require 'psych/exception' diff --git a/lib/psych/visitors/visitor.rb b/lib/psych/visitors/visitor.rb index 4d7772f..d97bf55 100644 --- a/lib/psych/visitors/visitor.rb +++ b/lib/psych/visitors/visitor.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Psych module Visitors class Visitor diff --git a/lib/psych/visitors/yaml_tree.rb b/lib/psych/visitors/yaml_tree.rb index 6ad30d2..e7c7a99 100644 --- a/lib/psych/visitors/yaml_tree.rb +++ b/lib/psych/visitors/yaml_tree.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'psych/tree_builder' require 'psych/scalar_scanner' require 'psych/class_loader' diff --git a/lib/psych/y.rb b/lib/psych/y.rb index d0e049d..82e05a7 100644 --- a/lib/psych/y.rb +++ b/lib/psych/y.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Kernel ### # An alias for Psych.dump_stream meant to be used with IRB. diff --git a/lib/psych_jars.rb b/lib/psych_jars.rb index 795c7ea..bd7ea04 100644 --- a/lib/psych_jars.rb +++ b/lib/psych_jars.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'psych/versions' require 'psych.jar' diff --git a/test/psych/handlers/test_recorder.rb b/test/psych/handlers/test_recorder.rb index 96b8eac..17c7c6d 100644 --- a/test/psych/handlers/test_recorder.rb +++ b/test/psych/handlers/test_recorder.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'psych/helper' require 'psych/handlers/recorder' diff --git a/test/psych/helper.rb b/test/psych/helper.rb index 3bbb459..498cdf8 100644 --- a/test/psych/helper.rb +++ b/test/psych/helper.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'minitest/autorun' require 'stringio' require 'tempfile' diff --git a/test/psych/json/test_stream.rb b/test/psych/json/test_stream.rb index b0c33e6..519c114 100644 --- a/test/psych/json/test_stream.rb +++ b/test/psych/json/test_stream.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'psych/helper' module Psych diff --git a/test/psych/nodes/test_enumerable.rb b/test/psych/nodes/test_enumerable.rb index 19cf94b..2f4e1f3 100644 --- a/test/psych/nodes/test_enumerable.rb +++ b/test/psych/nodes/test_enumerable.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'psych/helper' module Psych diff --git a/test/psych/test_alias_and_anchor.rb b/test/psych/test_alias_and_anchor.rb index 9e2c240..ed00960 100644 --- a/test/psych/test_alias_and_anchor.rb +++ b/test/psych/test_alias_and_anchor.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' class ObjectWithInstanceVariables diff --git a/test/psych/test_array.rb b/test/psych/test_array.rb index 960ffd7..f1e71fb 100644 --- a/test/psych/test_array.rb +++ b/test/psych/test_array.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' module Psych diff --git a/test/psych/test_boolean.rb b/test/psych/test_boolean.rb index b656f4f..b2803a6 100644 --- a/test/psych/test_boolean.rb +++ b/test/psych/test_boolean.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' module Psych diff --git a/test/psych/test_class.rb b/test/psych/test_class.rb index c7f964c..4e1fd4a 100644 --- a/test/psych/test_class.rb +++ b/test/psych/test_class.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' module Psych diff --git a/test/psych/test_coder.rb b/test/psych/test_coder.rb index e3213e2..e578d55 100644 --- a/test/psych/test_coder.rb +++ b/test/psych/test_coder.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' module Psych diff --git a/test/psych/test_date_time.rb b/test/psych/test_date_time.rb index 72150ad..433fbf3 100644 --- a/test/psych/test_date_time.rb +++ b/test/psych/test_date_time.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' require 'date' diff --git a/test/psych/test_deprecated.rb b/test/psych/test_deprecated.rb index fd2d329..a806f6b 100644 --- a/test/psych/test_deprecated.rb +++ b/test/psych/test_deprecated.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' module Psych diff --git a/test/psych/test_document.rb b/test/psych/test_document.rb index bd77d60..97de2e1 100644 --- a/test/psych/test_document.rb +++ b/test/psych/test_document.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' module Psych diff --git a/test/psych/test_emitter.rb b/test/psych/test_emitter.rb index 40826de..1c6b7fe 100644 --- a/test/psych/test_emitter.rb +++ b/test/psych/test_emitter.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# frozen_string_literal: false require_relative 'helper' diff --git a/test/psych/test_encoding.rb b/test/psych/test_encoding.rb index 544337d..13ca5db 100644 --- a/test/psych/test_encoding.rb +++ b/test/psych/test_encoding.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# frozen_string_literal: false require_relative 'helper' diff --git a/test/psych/test_exception.rb b/test/psych/test_exception.rb index 30dfb24..85fa78f 100644 --- a/test/psych/test_exception.rb +++ b/test/psych/test_exception.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' module Psych diff --git a/test/psych/test_hash.rb b/test/psych/test_hash.rb index e2a3129..b449ce4 100644 --- a/test/psych/test_hash.rb +++ b/test/psych/test_hash.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' module Psych diff --git a/test/psych/test_json_tree.rb b/test/psych/test_json_tree.rb index a23fc1a..8bb850b 100644 --- a/test/psych/test_json_tree.rb +++ b/test/psych/test_json_tree.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' module Psych diff --git a/test/psych/test_marshalable.rb b/test/psych/test_marshalable.rb index 7df74ee..544947a 100644 --- a/test/psych/test_marshalable.rb +++ b/test/psych/test_marshalable.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' require 'delegate' diff --git a/test/psych/test_merge_keys.rb b/test/psych/test_merge_keys.rb index 1620a6a..76245ca 100644 --- a/test/psych/test_merge_keys.rb +++ b/test/psych/test_merge_keys.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' module Psych diff --git a/test/psych/test_nil.rb b/test/psych/test_nil.rb index 3dbf562..3d4fa88 100644 --- a/test/psych/test_nil.rb +++ b/test/psych/test_nil.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' module Psych diff --git a/test/psych/test_null.rb b/test/psych/test_null.rb index 1725550..d8ccb70 100644 --- a/test/psych/test_null.rb +++ b/test/psych/test_null.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' module Psych diff --git a/test/psych/test_numeric.rb b/test/psych/test_numeric.rb index 5378b4a..9d8b74f 100644 --- a/test/psych/test_numeric.rb +++ b/test/psych/test_numeric.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' require 'bigdecimal' diff --git a/test/psych/test_object.rb b/test/psych/test_object.rb index 5e3ce82..ed1ccd9 100644 --- a/test/psych/test_object.rb +++ b/test/psych/test_object.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' module Psych diff --git a/test/psych/test_object_references.rb b/test/psych/test_object_references.rb index 273b466..1300bfc 100644 --- a/test/psych/test_object_references.rb +++ b/test/psych/test_object_references.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' module Psych diff --git a/test/psych/test_omap.rb b/test/psych/test_omap.rb index 36edc26..80791aa 100644 --- a/test/psych/test_omap.rb +++ b/test/psych/test_omap.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' module Psych diff --git a/test/psych/test_parser.rb b/test/psych/test_parser.rb index 0abe0dd..26aba05 100644 --- a/test/psych/test_parser.rb +++ b/test/psych/test_parser.rb @@ -1,4 +1,5 @@ # coding: utf-8 +# frozen_string_literal: false require_relative 'helper' diff --git a/test/psych/test_psych.rb b/test/psych/test_psych.rb index 05a9343..7de9e07 100644 --- a/test/psych/test_psych.rb +++ b/test/psych/test_psych.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' require 'stringio' diff --git a/test/psych/test_safe_load.rb b/test/psych/test_safe_load.rb index dd299c0..b69c54c 100644 --- a/test/psych/test_safe_load.rb +++ b/test/psych/test_safe_load.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'psych/helper' module Psych diff --git a/test/psych/test_scalar.rb b/test/psych/test_scalar.rb index e6b7697..4353ec3 100644 --- a/test/psych/test_scalar.rb +++ b/test/psych/test_scalar.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# frozen_string_literal: false require_relative 'helper' diff --git a/test/psych/test_scalar_scanner.rb b/test/psych/test_scalar_scanner.rb index e8e423c..7ad18c5 100644 --- a/test/psych/test_scalar_scanner.rb +++ b/test/psych/test_scalar_scanner.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' require 'date' diff --git a/test/psych/test_serialize_subclasses.rb b/test/psych/test_serialize_subclasses.rb index f597b7a..be209ed 100644 --- a/test/psych/test_serialize_subclasses.rb +++ b/test/psych/test_serialize_subclasses.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' module Psych diff --git a/test/psych/test_set.rb b/test/psych/test_set.rb index 921fe22..0eb999c 100644 --- a/test/psych/test_set.rb +++ b/test/psych/test_set.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' module Psych diff --git a/test/psych/test_stream.rb b/test/psych/test_stream.rb index 7e41178..1b05428 100644 --- a/test/psych/test_stream.rb +++ b/test/psych/test_stream.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' module Psych diff --git a/test/psych/test_string.rb b/test/psych/test_string.rb index a8ae55c..51aef40 100644 --- a/test/psych/test_string.rb +++ b/test/psych/test_string.rb @@ -1,4 +1,5 @@ # encoding: UTF-8 +# frozen_string_literal: false require_relative 'helper' module Psych diff --git a/test/psych/test_struct.rb b/test/psych/test_struct.rb index 8c7f251..b7968d3 100644 --- a/test/psych/test_struct.rb +++ b/test/psych/test_struct.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' class PsychStructWithIvar < Struct.new(:foo) diff --git a/test/psych/test_symbol.rb b/test/psych/test_symbol.rb index 558a672..a98881c 100644 --- a/test/psych/test_symbol.rb +++ b/test/psych/test_symbol.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' module Psych diff --git a/test/psych/test_tainted.rb b/test/psych/test_tainted.rb index 37fc5b2..8705833 100644 --- a/test/psych/test_tainted.rb +++ b/test/psych/test_tainted.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' module Psych diff --git a/test/psych/test_to_yaml_properties.rb b/test/psych/test_to_yaml_properties.rb index 724aab4..8a29b6a 100644 --- a/test/psych/test_to_yaml_properties.rb +++ b/test/psych/test_to_yaml_properties.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' module Psych diff --git a/test/psych/test_tree_builder.rb b/test/psych/test_tree_builder.rb index 7ad3ddd..09f1ee3 100644 --- a/test/psych/test_tree_builder.rb +++ b/test/psych/test_tree_builder.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' module Psych diff --git a/test/psych/test_yaml.rb b/test/psych/test_yaml.rb index e628175..f8e9e2f 100644 --- a/test/psych/test_yaml.rb +++ b/test/psych/test_yaml.rb @@ -1,4 +1,5 @@ # -*- coding: us-ascii; mode: ruby; ruby-indent-level: 4; tab-width: 4 -*- +# frozen_string_literal: false # vim:sw=4:ts=4 # $Id$ # diff --git a/test/psych/test_yamldbm.rb b/test/psych/test_yamldbm.rb index 62c88b7..71ee04f 100644 --- a/test/psych/test_yamldbm.rb +++ b/test/psych/test_yamldbm.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' require 'tmpdir' diff --git a/test/psych/test_yamlstore.rb b/test/psych/test_yamlstore.rb index 94f1330..a9ce652 100644 --- a/test/psych/test_yamlstore.rb +++ b/test/psych/test_yamlstore.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'helper' require 'yaml/store' require 'tmpdir' diff --git a/test/psych/visitors/test_depth_first.rb b/test/psych/visitors/test_depth_first.rb index 837c8e8..8072c26 100644 --- a/test/psych/visitors/test_depth_first.rb +++ b/test/psych/visitors/test_depth_first.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'psych/helper' module Psych diff --git a/test/psych/visitors/test_emitter.rb b/test/psych/visitors/test_emitter.rb index 780c953..9317855 100644 --- a/test/psych/visitors/test_emitter.rb +++ b/test/psych/visitors/test_emitter.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'psych/helper' module Psych diff --git a/test/psych/visitors/test_to_ruby.rb b/test/psych/visitors/test_to_ruby.rb index 19e5365..8878ea2 100644 --- a/test/psych/visitors/test_to_ruby.rb +++ b/test/psych/visitors/test_to_ruby.rb @@ -1,4 +1,5 @@ # coding: US-ASCII +# frozen_string_literal: false require 'psych/helper' module Psych diff --git a/test/psych/visitors/test_yaml_tree.rb b/test/psych/visitors/test_yaml_tree.rb index 40702bc..b3890bc 100644 --- a/test/psych/visitors/test_yaml_tree.rb +++ b/test/psych/visitors/test_yaml_tree.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'psych/helper' module Psych |