summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSHIBATA Hiroshi <hsbt@ruby-lang.org>2016-02-23 14:14:03 +0900
committerSHIBATA Hiroshi <hsbt@ruby-lang.org>2016-02-23 14:14:53 +0900
commit99e96cdc0e7ba5e7bf0040d366eaa5a6e442204e (patch)
tree6749a6d89a1aace82d645f221e8530901363a5fb /lib
parent0628044c5d8a64f4160747e00476b97402e2d565 (diff)
downloadpsych-99e96cdc0e7ba5e7bf0040d366eaa5a6e442204e.zip
Temporary disabled to frozen literal string.
ref. https://github.com/ruby/ruby/commit/3e92b635fb5422207b7bbdc924e292e51e21f040
Diffstat (limited to 'lib')
-rw-r--r--lib/psych.rb1
-rw-r--r--lib/psych/class_loader.rb1
-rw-r--r--lib/psych/coder.rb1
-rw-r--r--lib/psych/core_ext.rb1
-rw-r--r--lib/psych/deprecated.rb1
-rw-r--r--lib/psych/exception.rb1
-rw-r--r--lib/psych/handler.rb1
-rw-r--r--lib/psych/handlers/document_stream.rb1
-rw-r--r--lib/psych/handlers/recorder.rb1
-rw-r--r--lib/psych/json/ruby_events.rb1
-rw-r--r--lib/psych/json/stream.rb1
-rw-r--r--lib/psych/json/tree_builder.rb1
-rw-r--r--lib/psych/json/yaml_events.rb1
-rw-r--r--lib/psych/nodes.rb1
-rw-r--r--lib/psych/nodes/alias.rb1
-rw-r--r--lib/psych/nodes/document.rb1
-rw-r--r--lib/psych/nodes/mapping.rb1
-rw-r--r--lib/psych/nodes/node.rb1
-rw-r--r--lib/psych/nodes/scalar.rb1
-rw-r--r--lib/psych/nodes/sequence.rb1
-rw-r--r--lib/psych/nodes/stream.rb1
-rw-r--r--lib/psych/omap.rb1
-rw-r--r--lib/psych/parser.rb1
-rw-r--r--lib/psych/scalar_scanner.rb1
-rw-r--r--lib/psych/set.rb1
-rw-r--r--lib/psych/stream.rb1
-rw-r--r--lib/psych/streaming.rb1
-rw-r--r--lib/psych/syntax_error.rb1
-rw-r--r--lib/psych/tree_builder.rb1
-rw-r--r--lib/psych/versions.rb1
-rw-r--r--lib/psych/visitors.rb1
-rw-r--r--lib/psych/visitors/depth_first.rb1
-rw-r--r--lib/psych/visitors/emitter.rb1
-rw-r--r--lib/psych/visitors/json_tree.rb1
-rw-r--r--lib/psych/visitors/to_ruby.rb1
-rw-r--r--lib/psych/visitors/visitor.rb1
-rw-r--r--lib/psych/visitors/yaml_tree.rb1
-rw-r--r--lib/psych/y.rb1
-rw-r--r--lib/psych_jars.rb1
39 files changed, 39 insertions, 0 deletions
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'