psych 2.0.17-java → 2.1.0-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +4 -11
  3. data/Rakefile +27 -119
  4. data/ext/psych/extconf.rb +1 -0
  5. data/ext/psych/yaml/loader.c +2 -2
  6. data/ext/psych/yaml/scanner.c +17 -17
  7. data/lib/psych.rb +14 -8
  8. data/lib/psych/class_loader.rb +1 -0
  9. data/lib/psych/coder.rb +1 -0
  10. data/lib/psych/core_ext.rb +1 -0
  11. data/lib/psych/deprecated.rb +1 -0
  12. data/lib/psych/exception.rb +1 -0
  13. data/lib/psych/handler.rb +1 -0
  14. data/lib/psych/handlers/document_stream.rb +1 -0
  15. data/lib/psych/handlers/recorder.rb +1 -0
  16. data/lib/psych/json/ruby_events.rb +1 -0
  17. data/lib/psych/json/stream.rb +1 -0
  18. data/lib/psych/json/tree_builder.rb +1 -0
  19. data/lib/psych/json/yaml_events.rb +1 -0
  20. data/lib/psych/nodes.rb +1 -0
  21. data/lib/psych/nodes/alias.rb +1 -0
  22. data/lib/psych/nodes/document.rb +1 -0
  23. data/lib/psych/nodes/mapping.rb +1 -0
  24. data/lib/psych/nodes/node.rb +1 -0
  25. data/lib/psych/nodes/scalar.rb +1 -0
  26. data/lib/psych/nodes/sequence.rb +1 -0
  27. data/lib/psych/nodes/stream.rb +1 -0
  28. data/lib/psych/omap.rb +1 -0
  29. data/lib/psych/parser.rb +1 -0
  30. data/lib/psych/scalar_scanner.rb +2 -1
  31. data/lib/psych/set.rb +1 -0
  32. data/lib/psych/stream.rb +1 -0
  33. data/lib/psych/streaming.rb +1 -0
  34. data/lib/psych/syntax_error.rb +1 -0
  35. data/lib/psych/tree_builder.rb +1 -0
  36. data/lib/psych/versions.rb +1 -0
  37. data/lib/psych/visitors.rb +1 -0
  38. data/lib/psych/visitors/depth_first.rb +1 -0
  39. data/lib/psych/visitors/emitter.rb +1 -0
  40. data/lib/psych/visitors/json_tree.rb +1 -0
  41. data/lib/psych/visitors/to_ruby.rb +1 -0
  42. data/lib/psych/visitors/visitor.rb +1 -0
  43. data/lib/psych/visitors/yaml_tree.rb +3 -2
  44. data/lib/psych/y.rb +1 -0
  45. data/lib/psych_jars.rb +1 -0
  46. data/test/psych/handlers/test_recorder.rb +1 -0
  47. data/test/psych/helper.rb +1 -0
  48. data/test/psych/json/test_stream.rb +1 -0
  49. data/test/psych/nodes/test_enumerable.rb +1 -0
  50. data/test/psych/test_alias_and_anchor.rb +1 -0
  51. data/test/psych/test_array.rb +1 -0
  52. data/test/psych/test_boolean.rb +1 -0
  53. data/test/psych/test_class.rb +1 -0
  54. data/test/psych/test_coder.rb +1 -0
  55. data/test/psych/test_date_time.rb +1 -0
  56. data/test/psych/test_deprecated.rb +1 -0
  57. data/test/psych/test_document.rb +1 -0
  58. data/test/psych/test_emitter.rb +19 -0
  59. data/test/psych/test_encoding.rb +1 -0
  60. data/test/psych/test_exception.rb +1 -0
  61. data/test/psych/test_hash.rb +1 -0
  62. data/test/psych/test_json_tree.rb +1 -0
  63. data/test/psych/test_merge_keys.rb +1 -0
  64. data/test/psych/test_nil.rb +1 -0
  65. data/test/psych/test_null.rb +1 -0
  66. data/test/psych/test_numeric.rb +1 -0
  67. data/test/psych/test_object.rb +1 -0
  68. data/test/psych/test_object_references.rb +1 -0
  69. data/test/psych/test_omap.rb +1 -0
  70. data/test/psych/test_parser.rb +1 -0
  71. data/test/psych/test_psych.rb +6 -0
  72. data/test/psych/test_safe_load.rb +1 -0
  73. data/test/psych/test_scalar.rb +1 -0
  74. data/test/psych/test_scalar_scanner.rb +5 -0
  75. data/test/psych/test_serialize_subclasses.rb +1 -0
  76. data/test/psych/test_set.rb +1 -0
  77. data/test/psych/test_stream.rb +1 -0
  78. data/test/psych/test_string.rb +5 -0
  79. data/test/psych/test_struct.rb +1 -0
  80. data/test/psych/test_symbol.rb +1 -0
  81. data/test/psych/test_tainted.rb +1 -0
  82. data/test/psych/test_to_yaml_properties.rb +1 -0
  83. data/test/psych/test_tree_builder.rb +1 -0
  84. data/test/psych/test_yaml.rb +1 -0
  85. data/test/psych/test_yamldbm.rb +1 -0
  86. data/test/psych/test_yamlstore.rb +1 -0
  87. data/test/psych/visitors/test_depth_first.rb +1 -0
  88. data/test/psych/visitors/test_emitter.rb +1 -0
  89. data/test/psych/visitors/test_to_ruby.rb +1 -0
  90. data/test/psych/visitors/test_yaml_tree.rb +7 -0
  91. metadata +27 -44
  92. data/.autotest +0 -18
  93. data/.gemtest +0 -0
  94. data/Manifest.txt +0 -114
  95. data/lib/psych.jar +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a5c4d910a52947718fe9c4e935a30110d1eef1f
4
- data.tar.gz: 52a1a614265c7dbc09f1170fa6d8d4f9d67dd27b
3
+ metadata.gz: e9dc0b94275e4a1293ff5f5d00f6a81d6f5a39c1
4
+ data.tar.gz: 680468b64f8d7b1b9b703f0adbd5249c2f9cd48b
5
5
  SHA512:
6
- metadata.gz: da729662069374b214233bd5074a06168791e4a8582f9c3e1752b5dc887415d2d095364cd171e781b30bd330f27181f18a50bf75329e753b087ecd6c3ffbadc4
7
- data.tar.gz: d332a0d3ab7924544ce6309156eff265843b1c795593b4ad8b48c0a65b688a4d3ba0d70de66534f40957824aec4a4eac92c65f5f3d834405c2eb7e9e996b3fa4
6
+ metadata.gz: 7cd7a891073f8c4469729780b92f90a7fe08277ae74b859b8d0c8a76180a016f223c4ed63908925cdd9accbdb29d277d2152ead31d2486008cfef338f88cb9a8
7
+ data.tar.gz: 3ac6acb3cdcc50b90870e2e0f5870470c8353725f06b75a9baa800beefd5dfc084ca9c43359f6c47c513dc320e1d38be2598ed778d45f15b748adfecbfb5888d
@@ -1,14 +1,7 @@
1
1
  rvm:
2
2
  - 2.0.0
3
- - 2.1.0
4
- - 2.2.0
3
+ - 2.1
4
+ - 2.2
5
+ - 2.3.0
5
6
  - ruby-head
6
- - rbx-2
7
- before_script:
8
- - gem install hoe
9
- - gem install rake-compiler
10
- - gem install minitest -v '~> 5.0'
11
- script: rake test
12
- matrix:
13
- allow_failures:
14
- - rvm: rbx-2
7
+ before_install: gem install bundler --no-document
data/Rakefile CHANGED
@@ -1,123 +1,31 @@
1
- # -*- ruby -*-
2
-
3
- require 'psych'
4
- require 'rubygems'
5
- require 'hoe'
6
-
7
- def java?
8
- RUBY_PLATFORM =~ /java/
9
- end
10
-
11
- class Hoe
12
- remove_const :RUBY_FLAGS
13
- flags = "-I#{%w(lib ext bin test).join(File::PATH_SEPARATOR)}"
14
- flags = "--1.9 " + flags if java?
15
- RUBY_FLAGS = flags
16
- end
17
-
18
- gem 'rake-compiler', '>= 0.4.1'
19
- gem 'minitest', '~> 5.0'
20
- require "rake/extensiontask"
21
-
22
- Hoe.plugin :doofus, :git, :gemspec
23
-
24
- $hoe = Hoe.spec 'psych' do
25
- license 'MIT'
26
- developer 'Aaron Patterson', 'aaron@tenderlovemaking.com'
27
-
28
- self.extra_rdoc_files = Dir['*.rdoc']
29
- self.history_file = 'CHANGELOG.rdoc'
30
- self.readme_file = 'README.rdoc'
31
- self.testlib = :minitest
32
-
33
- extra_dev_deps << ['rake-compiler', '>= 0.4.1']
34
- extra_dev_deps << ['minitest', '~> 5.0']
35
-
36
- self.spec_extras = {
37
- :required_ruby_version => '>= 1.9.2'
38
- }
39
-
40
- if java?
41
- require './lib/psych/versions.rb'
42
- extra_deps << ['jar-dependencies', '>= 0.1.7']
43
-
44
- # the jar declaration for jar-dependencies
45
- self.spec_extras[ 'requirements' ] = "jar org.yaml:snakeyaml, #{Psych::DEFAULT_SNAKEYAML_VERSION}"
46
- self.spec_extras[ 'platform' ] = 'java'
47
- # TODO: clean this section up.
48
- require "rake/javaextensiontask"
49
- Rake::JavaExtensionTask.new("psych", spec) do |ext|
50
- require 'maven/ruby/maven'
51
- # uses Mavenfile to write classpath into pkg/classpath
52
- # and tell maven via system properties the snakeyaml version
53
- # this is basically the same as running from the commandline:
54
- # rmvn dependency:build-classpath -Dsnakeyaml.version='use version from Psych::DEFAULT_SNAKEYAML_VERSION here'
55
- Maven::Ruby::Maven.new.exec( 'dependency:build-classpath', "-Dsnakeyaml.version=#{Psych::DEFAULT_SNAKEYAML_VERSION}", '-Dverbose=true')#, '--quiet' )
56
- ext.source_version = '1.7'
57
- ext.target_version = '1.7'
58
- ext.classpath = File.read('pkg/classpath')
59
- ext.ext_dir = 'ext/java'
60
- end
61
- else
62
- self.spec_extras[:extensions] = ["ext/psych/extconf.rb"]
63
- Rake::ExtensionTask.new "psych", spec do |ext|
64
- ext.lib_dir = File.join(*['lib', ENV['FAT_DIR']].compact)
65
- end
66
- end
67
- end
68
-
69
- def gem_build_path
70
- File.join 'pkg', $hoe.spec.full_name
71
- end
72
-
73
- def add_file_to_gem relative_path
74
- target_path = File.join gem_build_path, relative_path
75
- target_dir = File.dirname(target_path)
76
- mkdir_p target_dir unless File.directory?(target_dir)
77
- rm_f target_path
78
- safe_ln relative_path, target_path
79
- $hoe.spec.files.concat [relative_path]
80
- end
81
-
82
- if java?
83
- task gem_build_path => [:compile] do
84
- add_file_to_gem 'lib/psych.jar'
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList['test/**/test_*.rb']
8
+ end
9
+
10
+ if RUBY_PLATFORM =~ /java/
11
+ require 'rake/javaextensiontask'
12
+ Rake::JavaExtensionTask.new("psych") do |ext|
13
+ require 'maven/ruby/maven'
14
+ # uses Mavenfile to write classpath into pkg/classpath
15
+ # and tell maven via system properties the snakeyaml version
16
+ # this is basically the same as running from the commandline:
17
+ # rmvn dependency:build-classpath -Dsnakeyaml.version='use version from Psych::DEFAULT_SNAKEYAML_VERSION here'
18
+ Maven::Ruby::Maven.new.exec( 'dependency:build-classpath', "-Dsnakeyaml.version=#{Psych::DEFAULT_SNAKEYAML_VERSION}", '-Dverbose=true')#, '--quiet' )
19
+ ext.source_version = '1.7'
20
+ ext.target_version = '1.7'
21
+ ext.classpath = File.read('pkg/classpath')
22
+ ext.ext_dir = 'ext/java'
85
23
  end
86
- end
87
-
88
- Hoe.add_include_dirs('.:lib/psych')
89
-
90
- task :test => :compile
91
-
92
- task :hack_spec do
93
- $hoe.spec.extra_rdoc_files.clear
94
- end
95
- task 'core:spec' => [:hack_spec, 'gem:spec']
96
-
97
- desc "merge psych in to ruby trunk"
98
- namespace :merge do
99
- basedir = File.expand_path File.dirname __FILE__
100
- rubydir = File.join ENV['HOME'], 'git', 'ruby'
101
- mergedirs = {
102
- # From # To
103
- [basedir, 'ext', 'psych/'] => [rubydir, 'ext', 'psych/'],
104
- [basedir, 'lib/'] => [rubydir, 'ext', 'psych', 'lib/'],
105
- [basedir, 'test', 'psych/'] => [rubydir, 'test', 'psych/'],
106
- }
107
-
108
- rsync = 'rsync -av --exclude lib --exclude ".*" --exclude "*.o" --exclude Makefile --exclude mkmf.log --delete'
109
-
110
- task :to_ruby do
111
- mergedirs.each do |from, to|
112
- sh "#{rsync} #{File.join(*from)} #{File.join(*to)}"
113
- end
114
- end
115
-
116
- task :from_ruby do
117
- mergedirs.each do |from, to|
118
- sh "#{rsync} #{File.join(*to)} #{File.join(*from)}"
119
- end
24
+ else
25
+ require 'rake/extensiontask'
26
+ Rake::ExtensionTask.new("psych") do |ext|
27
+ ext.lib_dir = File.join(*['lib', ENV['FAT_DIR']].compact)
120
28
  end
121
29
  end
122
30
 
123
- # vim: syntax=ruby
31
+ task :default => [:compile, :test]
@@ -1,4 +1,5 @@
1
1
  # -*- coding: us-ascii -*-
2
+ # frozen_string_literal: false
2
3
  require 'mkmf'
3
4
  require 'fileutils'
4
5
 
@@ -239,8 +239,8 @@ yaml_parser_register_anchor(yaml_parser_t *parser,
239
239
  if (strcmp((char *)alias_data->anchor, (char *)anchor) == 0) {
240
240
  yaml_free(anchor);
241
241
  return yaml_parser_set_composer_error_context(parser,
242
- "found duplicate anchor; first occurence",
243
- alias_data->mark, "second occurence", data.mark);
242
+ "found duplicate anchor; first occurrence",
243
+ alias_data->mark, "second occurrence", data.mark);
244
244
  }
245
245
  }
246
246
 
@@ -1251,7 +1251,7 @@ yaml_parser_roll_indent(yaml_parser_t *parser, ptrdiff_t column,
1251
1251
 
1252
1252
  /*
1253
1253
  * Pop indentation levels from the indents stack until the current level
1254
- * becomes less or equal to the column. For each intendation level, append
1254
+ * becomes less or equal to the column. For each indentation level, append
1255
1255
  * the BLOCK-END token.
1256
1256
  */
1257
1257
 
@@ -1266,7 +1266,7 @@ yaml_parser_unroll_indent(yaml_parser_t *parser, ptrdiff_t column)
1266
1266
  if (parser->flow_level)
1267
1267
  return 1;
1268
1268
 
1269
- /* Loop through the intendation levels in the stack. */
1269
+ /* Loop through the indentation levels in the stack. */
1270
1270
 
1271
1271
  while (parser->indent > column)
1272
1272
  {
@@ -2775,15 +2775,15 @@ yaml_parser_scan_block_scalar(yaml_parser_t *parser, yaml_token_t *token,
2775
2775
 
2776
2776
  if (IS_DIGIT(parser->buffer))
2777
2777
  {
2778
- /* Check that the intendation is greater than 0. */
2778
+ /* Check that the indentation is greater than 0. */
2779
2779
 
2780
2780
  if (CHECK(parser->buffer, '0')) {
2781
2781
  yaml_parser_set_scanner_error(parser, "while scanning a block scalar",
2782
- start_mark, "found an intendation indicator equal to 0");
2782
+ start_mark, "found an indentation indicator equal to 0");
2783
2783
  goto error;
2784
2784
  }
2785
2785
 
2786
- /* Get the intendation level and eat the indicator. */
2786
+ /* Get the indentation level and eat the indicator. */
2787
2787
 
2788
2788
  increment = AS_DIGIT(parser->buffer);
2789
2789
 
@@ -2797,7 +2797,7 @@ yaml_parser_scan_block_scalar(yaml_parser_t *parser, yaml_token_t *token,
2797
2797
  {
2798
2798
  if (CHECK(parser->buffer, '0')) {
2799
2799
  yaml_parser_set_scanner_error(parser, "while scanning a block scalar",
2800
- start_mark, "found an intendation indicator equal to 0");
2800
+ start_mark, "found an indentation indicator equal to 0");
2801
2801
  goto error;
2802
2802
  }
2803
2803
 
@@ -2847,7 +2847,7 @@ yaml_parser_scan_block_scalar(yaml_parser_t *parser, yaml_token_t *token,
2847
2847
 
2848
2848
  end_mark = parser->mark;
2849
2849
 
2850
- /* Set the intendation level if it was specified. */
2850
+ /* Set the indentation level if it was specified. */
2851
2851
 
2852
2852
  if (increment) {
2853
2853
  indent = parser->indent >= 0 ? parser->indent+increment : increment;
@@ -2913,7 +2913,7 @@ yaml_parser_scan_block_scalar(yaml_parser_t *parser, yaml_token_t *token,
2913
2913
 
2914
2914
  if (!READ_LINE(parser, leading_break)) goto error;
2915
2915
 
2916
- /* Eat the following intendation spaces and line breaks. */
2916
+ /* Eat the following indentation spaces and line breaks. */
2917
2917
 
2918
2918
  if (!yaml_parser_scan_block_scalar_breaks(parser,
2919
2919
  &indent, &trailing_breaks, start_mark, &end_mark)) goto error;
@@ -2948,8 +2948,8 @@ error:
2948
2948
  }
2949
2949
 
2950
2950
  /*
2951
- * Scan intendation spaces and line breaks for a block scalar. Determine the
2952
- * intendation level if needed.
2951
+ * Scan indentation spaces and line breaks for a block scalar. Determine the
2952
+ * indentation level if needed.
2953
2953
  */
2954
2954
 
2955
2955
  static int
@@ -2961,11 +2961,11 @@ yaml_parser_scan_block_scalar_breaks(yaml_parser_t *parser,
2961
2961
 
2962
2962
  *end_mark = parser->mark;
2963
2963
 
2964
- /* Eat the intendation spaces and line breaks. */
2964
+ /* Eat the indentation spaces and line breaks. */
2965
2965
 
2966
2966
  while (1)
2967
2967
  {
2968
- /* Eat the intendation spaces. */
2968
+ /* Eat the indentation spaces. */
2969
2969
 
2970
2970
  if (!CACHE(parser, 1)) return 0;
2971
2971
 
@@ -2978,12 +2978,12 @@ yaml_parser_scan_block_scalar_breaks(yaml_parser_t *parser,
2978
2978
  if ((int)parser->mark.column > max_indent)
2979
2979
  max_indent = (int)parser->mark.column;
2980
2980
 
2981
- /* Check for a tab character messing the intendation. */
2981
+ /* Check for a tab character messing the indentation. */
2982
2982
 
2983
2983
  if ((!*indent || (int)parser->mark.column < *indent)
2984
2984
  && IS_TAB(parser->buffer)) {
2985
2985
  return yaml_parser_set_scanner_error(parser, "while scanning a block scalar",
2986
- start_mark, "found a tab character where an intendation space is expected");
2986
+ start_mark, "found a tab character where an indentation space is expected");
2987
2987
  }
2988
2988
 
2989
2989
  /* Have we found a non-empty line? */
@@ -3504,12 +3504,12 @@ yaml_parser_scan_plain_scalar(yaml_parser_t *parser, yaml_token_t *token)
3504
3504
  {
3505
3505
  if (IS_BLANK(parser->buffer))
3506
3506
  {
3507
- /* Check for tab character that abuse intendation. */
3507
+ /* Check for tab character that abuse indentation. */
3508
3508
 
3509
3509
  if (leading_blanks && (int)parser->mark.column < indent
3510
3510
  && IS_TAB(parser->buffer)) {
3511
3511
  yaml_parser_set_scanner_error(parser, "while scanning a plain scalar",
3512
- start_mark, "found a tab character that violate intendation");
3512
+ start_mark, "found a tab character that violate indentation");
3513
3513
  goto error;
3514
3514
  }
3515
3515
 
@@ -3542,7 +3542,7 @@ yaml_parser_scan_plain_scalar(yaml_parser_t *parser, yaml_token_t *token)
3542
3542
  if (!CACHE(parser, 1)) goto error;
3543
3543
  }
3544
3544
 
3545
- /* Check intendation level. */
3545
+ /* Check indentation level. */
3546
3546
 
3547
3547
  if (!parser->flow_level && (int)parser->mark.column < indent)
3548
3548
  break;
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: false
1
2
  case RUBY_ENGINE
2
3
  when 'jruby'
3
4
  require 'psych_jars'
@@ -223,11 +224,13 @@ require 'psych/class_loader'
223
224
 
224
225
  module Psych
225
226
  # The version is Psych you're using
226
- VERSION = '2.0.17'
227
+ VERSION = '2.1.0'
227
228
 
228
229
  # The version of libyaml Psych is using
229
230
  LIBYAML_VERSION = Psych.libyaml_version.join '.'
230
231
 
232
+ FALLBACK = Struct.new :to_ruby # :nodoc:
233
+
231
234
  ###
232
235
  # Load +yaml+ in to a Ruby data structure. If multiple documents are
233
236
  # provided, the object contained in the first document will be returned.
@@ -247,8 +250,8 @@ module Psych
247
250
  # ex.file # => 'file.txt'
248
251
  # ex.message # => "(file.txt): found character that cannot start any token"
249
252
  # end
250
- def self.load yaml, filename = nil
251
- result = parse(yaml, filename)
253
+ def self.load yaml, filename = nil, fallback = false
254
+ result = parse(yaml, filename, fallback)
252
255
  result ? result.to_ruby : result
253
256
  end
254
257
 
@@ -320,11 +323,11 @@ module Psych
320
323
  # end
321
324
  #
322
325
  # See Psych::Nodes for more information about YAML AST.
323
- def self.parse yaml, filename = nil
326
+ def self.parse yaml, filename = nil, fallback = false
324
327
  parse_stream(yaml, filename) do |node|
325
328
  return node
326
329
  end
327
- false
330
+ fallback
328
331
  end
329
332
 
330
333
  ###
@@ -465,9 +468,12 @@ module Psych
465
468
 
466
469
  ###
467
470
  # Load the document contained in +filename+. Returns the yaml contained in
468
- # +filename+ as a Ruby object
469
- def self.load_file filename
470
- File.open(filename, 'r:bom|utf-8') { |f| self.load f, filename }
471
+ # +filename+ as a Ruby object, or if the file is empty, it returns
472
+ # the specified default return value, which defaults to an empty Hash
473
+ def self.load_file filename, fallback = false
474
+ File.open(filename, 'r:bom|utf-8') { |f|
475
+ self.load f, filename, FALLBACK.new(fallback)
476
+ }
471
477
  end
472
478
 
473
479
  # :stopdoc:
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: false
1
2
  require 'psych/omap'
2
3
  require 'psych/set'
3
4
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: false
1
2
  module Psych
2
3
  ###
3
4
  # If an object defines +encode_with+, then an instance of Psych::Coder will
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: false
1
2
  class Object
2
3
  def self.yaml_tag url
3
4
  Psych.add_tag(url, self)
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: false
1
2
  require 'date'
2
3
 
3
4
  module Psych
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: false
1
2
  module Psych
2
3
  class Exception < RuntimeError
3
4
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: false
1
2
  module Psych
2
3
  ###
3
4
  # Psych::Handler is an abstract base class that defines the events used
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: false
1
2
  require 'psych/tree_builder'
2
3
 
3
4
  module Psych
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: false
1
2
  require 'psych/handler'
2
3
 
3
4
  module Psych
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: false
1
2
  module Psych
2
3
  module JSON
3
4
  module RubyEvents # :nodoc:
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: false
1
2
  require 'psych/json/ruby_events'
2
3
  require 'psych/json/yaml_events'
3
4
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: false
1
2
  require 'psych/json/yaml_events'
2
3
 
3
4
  module Psych