psych 2.0.12 → 5.2.3

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 (115) hide show
  1. checksums.yaml +5 -5
  2. data/CONTRIBUTING.md +24 -0
  3. data/{ext/psych/yaml/LICENSE → LICENSE} +9 -7
  4. data/README.md +80 -0
  5. data/ext/psych/depend +14 -0
  6. data/ext/psych/extconf.rb +43 -28
  7. data/ext/psych/psych.c +6 -4
  8. data/ext/psych/psych.h +0 -3
  9. data/ext/psych/psych_emitter.c +165 -132
  10. data/ext/psych/psych_parser.c +298 -331
  11. data/ext/psych/psych_to_ruby.c +0 -5
  12. data/ext/psych/psych_yaml_tree.c +0 -13
  13. data/lib/psych/class_loader.rb +11 -8
  14. data/lib/psych/coder.rb +1 -0
  15. data/lib/psych/core_ext.rb +3 -19
  16. data/lib/psych/exception.rb +17 -2
  17. data/lib/psych/handler.rb +8 -2
  18. data/lib/psych/handlers/document_stream.rb +2 -1
  19. data/lib/psych/handlers/recorder.rb +2 -1
  20. data/lib/psych/json/ruby_events.rb +1 -0
  21. data/lib/psych/json/stream.rb +3 -2
  22. data/lib/psych/json/tree_builder.rb +2 -1
  23. data/lib/psych/json/yaml_events.rb +1 -0
  24. data/lib/psych/nodes/alias.rb +3 -0
  25. data/lib/psych/nodes/document.rb +3 -0
  26. data/lib/psych/nodes/mapping.rb +3 -0
  27. data/lib/psych/nodes/node.rb +25 -5
  28. data/lib/psych/nodes/scalar.rb +4 -1
  29. data/lib/psych/nodes/sequence.rb +3 -0
  30. data/lib/psych/nodes/stream.rb +3 -0
  31. data/lib/psych/nodes.rb +8 -7
  32. data/lib/psych/omap.rb +1 -0
  33. data/lib/psych/parser.rb +14 -0
  34. data/lib/psych/scalar_scanner.rb +41 -49
  35. data/lib/psych/set.rb +1 -0
  36. data/lib/psych/stream.rb +1 -0
  37. data/lib/psych/streaming.rb +1 -0
  38. data/lib/psych/syntax_error.rb +2 -1
  39. data/lib/psych/tree_builder.rb +48 -7
  40. data/lib/psych/versions.rb +10 -0
  41. data/lib/psych/visitors/depth_first.rb +1 -0
  42. data/lib/psych/visitors/emitter.rb +1 -0
  43. data/lib/psych/visitors/json_tree.rb +2 -1
  44. data/lib/psych/visitors/to_ruby.rb +64 -33
  45. data/lib/psych/visitors/visitor.rb +18 -3
  46. data/lib/psych/visitors/yaml_tree.rb +128 -149
  47. data/lib/psych/visitors.rb +7 -6
  48. data/lib/psych/y.rb +1 -0
  49. data/lib/psych.rb +360 -95
  50. metadata +36 -169
  51. data/.autotest +0 -18
  52. data/.gemtest +0 -0
  53. data/.travis.yml +0 -11
  54. data/CHANGELOG.rdoc +0 -562
  55. data/Manifest.txt +0 -112
  56. data/README.rdoc +0 -71
  57. data/Rakefile +0 -74
  58. data/ext/psych/yaml/api.c +0 -1415
  59. data/ext/psych/yaml/config.h +0 -10
  60. data/ext/psych/yaml/dumper.c +0 -394
  61. data/ext/psych/yaml/emitter.c +0 -2329
  62. data/ext/psych/yaml/loader.c +0 -459
  63. data/ext/psych/yaml/parser.c +0 -1370
  64. data/ext/psych/yaml/reader.c +0 -469
  65. data/ext/psych/yaml/scanner.c +0 -3583
  66. data/ext/psych/yaml/writer.c +0 -141
  67. data/ext/psych/yaml/yaml.h +0 -1971
  68. data/ext/psych/yaml/yaml_private.h +0 -664
  69. data/lib/psych/deprecated.rb +0 -85
  70. data/test/psych/handlers/test_recorder.rb +0 -25
  71. data/test/psych/helper.rb +0 -114
  72. data/test/psych/json/test_stream.rb +0 -109
  73. data/test/psych/nodes/test_enumerable.rb +0 -43
  74. data/test/psych/test_alias_and_anchor.rb +0 -96
  75. data/test/psych/test_array.rb +0 -57
  76. data/test/psych/test_boolean.rb +0 -36
  77. data/test/psych/test_class.rb +0 -36
  78. data/test/psych/test_coder.rb +0 -184
  79. data/test/psych/test_date_time.rb +0 -38
  80. data/test/psych/test_deprecated.rb +0 -214
  81. data/test/psych/test_document.rb +0 -46
  82. data/test/psych/test_emitter.rb +0 -93
  83. data/test/psych/test_encoding.rb +0 -259
  84. data/test/psych/test_exception.rb +0 -157
  85. data/test/psych/test_hash.rb +0 -94
  86. data/test/psych/test_json_tree.rb +0 -65
  87. data/test/psych/test_marshalable.rb +0 -54
  88. data/test/psych/test_merge_keys.rb +0 -180
  89. data/test/psych/test_nil.rb +0 -18
  90. data/test/psych/test_null.rb +0 -19
  91. data/test/psych/test_numeric.rb +0 -45
  92. data/test/psych/test_object.rb +0 -44
  93. data/test/psych/test_object_references.rb +0 -71
  94. data/test/psych/test_omap.rb +0 -75
  95. data/test/psych/test_parser.rb +0 -339
  96. data/test/psych/test_psych.rb +0 -168
  97. data/test/psych/test_safe_load.rb +0 -97
  98. data/test/psych/test_scalar.rb +0 -11
  99. data/test/psych/test_scalar_scanner.rb +0 -106
  100. data/test/psych/test_serialize_subclasses.rb +0 -38
  101. data/test/psych/test_set.rb +0 -49
  102. data/test/psych/test_stream.rb +0 -93
  103. data/test/psych/test_string.rb +0 -226
  104. data/test/psych/test_struct.rb +0 -49
  105. data/test/psych/test_symbol.rb +0 -25
  106. data/test/psych/test_tainted.rb +0 -130
  107. data/test/psych/test_to_yaml_properties.rb +0 -63
  108. data/test/psych/test_tree_builder.rb +0 -79
  109. data/test/psych/test_yaml.rb +0 -1288
  110. data/test/psych/test_yamldbm.rb +0 -193
  111. data/test/psych/test_yamlstore.rb +0 -85
  112. data/test/psych/visitors/test_depth_first.rb +0 -49
  113. data/test/psych/visitors/test_emitter.rb +0 -144
  114. data/test/psych/visitors/test_to_ruby.rb +0 -326
  115. data/test/psych/visitors/test_yaml_tree.rb +0 -173
metadata CHANGED
@@ -1,93 +1,62 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: psych
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.12
4
+ version: 5.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Patterson
8
- autorequire:
8
+ - SHIBATA Hiroshi
9
+ - Charles Oliver Nutter
10
+ autorequire:
9
11
  bindir: bin
10
12
  cert_chain: []
11
- date: 2015-01-28 00:00:00.000000000 Z
13
+ date: 2025-01-17 00:00:00.000000000 Z
12
14
  dependencies:
13
15
  - !ruby/object:Gem::Dependency
14
- name: rdoc
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '4.0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '4.0'
27
- - !ruby/object:Gem::Dependency
28
- name: rake-compiler
16
+ name: stringio
29
17
  requirement: !ruby/object:Gem::Requirement
30
18
  requirements:
31
19
  - - ">="
32
20
  - !ruby/object:Gem::Version
33
- version: 0.4.1
34
- type: :development
21
+ version: '0'
22
+ type: :runtime
35
23
  prerelease: false
36
24
  version_requirements: !ruby/object:Gem::Requirement
37
25
  requirements:
38
26
  - - ">="
39
27
  - !ruby/object:Gem::Version
40
- version: 0.4.1
41
- - !ruby/object:Gem::Dependency
42
- name: minitest
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '4.0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '4.0'
28
+ version: '0'
55
29
  - !ruby/object:Gem::Dependency
56
- name: hoe
30
+ name: date
57
31
  requirement: !ruby/object:Gem::Requirement
58
32
  requirements:
59
- - - "~>"
33
+ - - ">="
60
34
  - !ruby/object:Gem::Version
61
- version: '3.13'
62
- type: :development
35
+ version: '0'
36
+ type: :runtime
63
37
  prerelease: false
64
38
  version_requirements: !ruby/object:Gem::Requirement
65
39
  requirements:
66
- - - "~>"
40
+ - - ">="
67
41
  - !ruby/object:Gem::Version
68
- version: '3.13'
69
- description: |-
70
- Psych is a YAML parser and emitter. Psych leverages libyaml[http://pyyaml.org/wiki/LibYAML]
71
- for its YAML parsing and emitting capabilities. In addition to wrapping
72
- libyaml, Psych also knows how to serialize and de-serialize most Ruby objects
73
- to and from the YAML format.
42
+ version: '0'
43
+ description: |
44
+ Psych is a YAML parser and emitter. Psych leverages libyaml[https://pyyaml.org/wiki/LibYAML]
45
+ for its YAML parsing and emitting capabilities. In addition to wrapping libyaml,
46
+ Psych also knows how to serialize and de-serialize most Ruby objects to and from the YAML format.
74
47
  email:
75
48
  - aaron@tenderlovemaking.com
49
+ - hsbt@ruby-lang.org
50
+ - headius@headius.com
76
51
  executables: []
77
52
  extensions:
78
53
  - ext/psych/extconf.rb
79
54
  extra_rdoc_files:
80
- - CHANGELOG.rdoc
81
- - Manifest.txt
82
- - README.rdoc
55
+ - README.md
83
56
  files:
84
- - ".autotest"
85
- - ".gemtest"
86
- - ".travis.yml"
87
- - CHANGELOG.rdoc
88
- - Manifest.txt
89
- - README.rdoc
90
- - Rakefile
57
+ - CONTRIBUTING.md
58
+ - LICENSE
59
+ - README.md
91
60
  - ext/psych/depend
92
61
  - ext/psych/extconf.rb
93
62
  - ext/psych/psych.c
@@ -100,23 +69,10 @@ files:
100
69
  - ext/psych/psych_to_ruby.h
101
70
  - ext/psych/psych_yaml_tree.c
102
71
  - ext/psych/psych_yaml_tree.h
103
- - ext/psych/yaml/LICENSE
104
- - ext/psych/yaml/api.c
105
- - ext/psych/yaml/config.h
106
- - ext/psych/yaml/dumper.c
107
- - ext/psych/yaml/emitter.c
108
- - ext/psych/yaml/loader.c
109
- - ext/psych/yaml/parser.c
110
- - ext/psych/yaml/reader.c
111
- - ext/psych/yaml/scanner.c
112
- - ext/psych/yaml/writer.c
113
- - ext/psych/yaml/yaml.h
114
- - ext/psych/yaml/yaml_private.h
115
72
  - lib/psych.rb
116
73
  - lib/psych/class_loader.rb
117
74
  - lib/psych/coder.rb
118
75
  - lib/psych/core_ext.rb
119
- - lib/psych/deprecated.rb
120
76
  - lib/psych/exception.rb
121
77
  - lib/psych/handler.rb
122
78
  - lib/psych/handlers/document_stream.rb
@@ -141,6 +97,7 @@ files:
141
97
  - lib/psych/streaming.rb
142
98
  - lib/psych/syntax_error.rb
143
99
  - lib/psych/tree_builder.rb
100
+ - lib/psych/versions.rb
144
101
  - lib/psych/visitors.rb
145
102
  - lib/psych/visitors/depth_first.rb
146
103
  - lib/psych/visitors/emitter.rb
@@ -149,121 +106,31 @@ files:
149
106
  - lib/psych/visitors/visitor.rb
150
107
  - lib/psych/visitors/yaml_tree.rb
151
108
  - lib/psych/y.rb
152
- - test/psych/handlers/test_recorder.rb
153
- - test/psych/helper.rb
154
- - test/psych/json/test_stream.rb
155
- - test/psych/nodes/test_enumerable.rb
156
- - test/psych/test_alias_and_anchor.rb
157
- - test/psych/test_array.rb
158
- - test/psych/test_boolean.rb
159
- - test/psych/test_class.rb
160
- - test/psych/test_coder.rb
161
- - test/psych/test_date_time.rb
162
- - test/psych/test_deprecated.rb
163
- - test/psych/test_document.rb
164
- - test/psych/test_emitter.rb
165
- - test/psych/test_encoding.rb
166
- - test/psych/test_exception.rb
167
- - test/psych/test_hash.rb
168
- - test/psych/test_json_tree.rb
169
- - test/psych/test_marshalable.rb
170
- - test/psych/test_merge_keys.rb
171
- - test/psych/test_nil.rb
172
- - test/psych/test_null.rb
173
- - test/psych/test_numeric.rb
174
- - test/psych/test_object.rb
175
- - test/psych/test_object_references.rb
176
- - test/psych/test_omap.rb
177
- - test/psych/test_parser.rb
178
- - test/psych/test_psych.rb
179
- - test/psych/test_safe_load.rb
180
- - test/psych/test_scalar.rb
181
- - test/psych/test_scalar_scanner.rb
182
- - test/psych/test_serialize_subclasses.rb
183
- - test/psych/test_set.rb
184
- - test/psych/test_stream.rb
185
- - test/psych/test_string.rb
186
- - test/psych/test_struct.rb
187
- - test/psych/test_symbol.rb
188
- - test/psych/test_tainted.rb
189
- - test/psych/test_to_yaml_properties.rb
190
- - test/psych/test_tree_builder.rb
191
- - test/psych/test_yaml.rb
192
- - test/psych/test_yamldbm.rb
193
- - test/psych/test_yamlstore.rb
194
- - test/psych/visitors/test_depth_first.rb
195
- - test/psych/visitors/test_emitter.rb
196
- - test/psych/visitors/test_to_ruby.rb
197
- - test/psych/visitors/test_yaml_tree.rb
198
- homepage: http://github.com/tenderlove/psych
109
+ homepage: https://github.com/ruby/psych
199
110
  licenses:
200
111
  - MIT
201
- metadata: {}
202
- post_install_message:
112
+ metadata:
113
+ msys2_mingw_dependencies: libyaml
114
+ changelog_uri: https://github.com/ruby/psych/releases
115
+ post_install_message:
203
116
  rdoc_options:
204
117
  - "--main"
205
- - README.rdoc
118
+ - README.md
206
119
  require_paths:
207
120
  - lib
208
121
  required_ruby_version: !ruby/object:Gem::Requirement
209
122
  requirements:
210
123
  - - ">="
211
124
  - !ruby/object:Gem::Version
212
- version: 1.9.2
125
+ version: 2.5.0
213
126
  required_rubygems_version: !ruby/object:Gem::Requirement
214
127
  requirements:
215
128
  - - ">="
216
129
  - !ruby/object:Gem::Version
217
130
  version: '0'
218
131
  requirements: []
219
- rubyforge_project:
220
- rubygems_version: 2.4.5
221
- signing_key:
132
+ rubygems_version: 3.5.11
133
+ signing_key:
222
134
  specification_version: 4
223
135
  summary: Psych is a YAML parser and emitter
224
- test_files:
225
- - test/psych/handlers/test_recorder.rb
226
- - test/psych/json/test_stream.rb
227
- - test/psych/nodes/test_enumerable.rb
228
- - test/psych/test_alias_and_anchor.rb
229
- - test/psych/test_array.rb
230
- - test/psych/test_boolean.rb
231
- - test/psych/test_class.rb
232
- - test/psych/test_coder.rb
233
- - test/psych/test_date_time.rb
234
- - test/psych/test_deprecated.rb
235
- - test/psych/test_document.rb
236
- - test/psych/test_emitter.rb
237
- - test/psych/test_encoding.rb
238
- - test/psych/test_exception.rb
239
- - test/psych/test_hash.rb
240
- - test/psych/test_json_tree.rb
241
- - test/psych/test_marshalable.rb
242
- - test/psych/test_merge_keys.rb
243
- - test/psych/test_nil.rb
244
- - test/psych/test_null.rb
245
- - test/psych/test_numeric.rb
246
- - test/psych/test_object.rb
247
- - test/psych/test_object_references.rb
248
- - test/psych/test_omap.rb
249
- - test/psych/test_parser.rb
250
- - test/psych/test_psych.rb
251
- - test/psych/test_safe_load.rb
252
- - test/psych/test_scalar.rb
253
- - test/psych/test_scalar_scanner.rb
254
- - test/psych/test_serialize_subclasses.rb
255
- - test/psych/test_set.rb
256
- - test/psych/test_stream.rb
257
- - test/psych/test_string.rb
258
- - test/psych/test_struct.rb
259
- - test/psych/test_symbol.rb
260
- - test/psych/test_tainted.rb
261
- - test/psych/test_to_yaml_properties.rb
262
- - test/psych/test_tree_builder.rb
263
- - test/psych/test_yaml.rb
264
- - test/psych/test_yamldbm.rb
265
- - test/psych/test_yamlstore.rb
266
- - test/psych/visitors/test_depth_first.rb
267
- - test/psych/visitors/test_emitter.rb
268
- - test/psych/visitors/test_to_ruby.rb
269
- - test/psych/visitors/test_yaml_tree.rb
136
+ test_files: []
data/.autotest DELETED
@@ -1,18 +0,0 @@
1
- require "autotest/restart"
2
- require 'rbconfig'
3
-
4
- Autotest.add_hook :initialize do |at|
5
- at.find_directories = ARGV unless ARGV.empty?
6
- at.testlib = "minitest/autorun"
7
- end
8
-
9
- Autotest.add_hook :run_command do |at|
10
- at.unit_diff = 'cat'
11
- system "ruby -S rake compile"
12
- end
13
-
14
- Autotest.add_hook :ran_command do |at|
15
- File.open('/tmp/autotest.txt', 'wb') { |f|
16
- f.write(at.results.join)
17
- }
18
- end
data/.gemtest DELETED
File without changes
data/.travis.yml DELETED
@@ -1,11 +0,0 @@
1
- rvm:
2
- - 1.9.2
3
- - 1.9.3
4
- - 2.0.0
5
- - 2.1.0
6
- - ruby-head
7
- before_script:
8
- - gem install hoe
9
- - gem install rake-compiler
10
- - gem install minitest -v '~> 4.0'
11
- script: rake test