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
data/CHANGELOG.rdoc DELETED
@@ -1,562 +0,0 @@
1
- Thu Jan 29 02:34:27 2015 Aaron Patterson <aaron@tenderlovemaking.com>
2
-
3
- * ext/psych/lib/psych/visitors/to_ruby.rb: fix parsing hashes with
4
- instance variables when it is referenced multiple times.
5
- * ext/psych/lib/psych.rb: bump version
6
- * ext/psych/psych.gemspec: bump version
7
- * test/psych/test_hash.rb: test for fix
8
-
9
- Fri Jan 9 07:13:55 2015 Aaron Patterson <aaron@tenderlovemaking.com>
10
-
11
- * ext/psych/lib/psych/visitors/to_ruby.rb: call `allocate` on hash
12
- subclasses. Fixes github.com/tenderlove/psych/issues/196
13
-
14
- * test/psych/test_hash.rb: test for change
15
-
16
- Fri Jan 9 06:58:43 2015 Aaron Patterson <aaron@tenderlovemaking.com>
17
-
18
- * ext/psych/lib/psych/visitors/to_ruby.rb: revive hashes with ivars
19
-
20
- * ext/psych/lib/psych/visitors/yaml_tree.rb: dump hashes with ivars.
21
- Fixes github.com/psych/issues/43
22
-
23
- * test/psych/test_hash.rb: test for change
24
-
25
- Sun Nov 23 13:11:24 2014 Sean Griffin <sean@thoughtbot.com>
26
-
27
- * lib/psych/visitors/to_ruby.rb: Allow loading any BasicObject that
28
- defines #marshal_load, fixes #100
29
- * lib/psych/visitors/yaml_tree.rb: Allow dumping any BasicObject that
30
- defines #marshal_dump
31
-
32
- Sat Aug 30 06:39:48 2014 Aaron Patterson <aaron@tenderlovemaking.com>
33
-
34
- * ext/psych/lib/psych/visitors/yaml_tree.rb: fix NameError dumping and
35
- loading. Fixes GH #85. Thanks @brentdax for the patch!
36
- * test/psych/test_exception.rb: test for fix
37
-
38
- Sat Aug 30 06:23:40 2014 Aaron Patterson <aaron@tenderlovemaking.com>
39
-
40
- * ext/psych/lib/psych/scalar_scanner.rb: fix loading strings that
41
- look like integers but have a newline. Fixes GH #189
42
- * test/psych/test_string.rb: test for fix
43
-
44
- Sat Aug 30 06:10:39 2014 Aaron Patterson <aaron@tenderlovemaking.com>
45
-
46
- * ext/psych/lib/psych/visitors/to_ruby.rb: merge keys with a hash
47
- should merge the hash in to the parent.
48
- * test/psych/test_merge_keys.rb: test for change. Fixes GH #202
49
-
50
- Sat Aug 30 06:00:26 2014 Aaron Patterson <aaron@tenderlovemaking.com>
51
-
52
- * ext/psych/lib/psych/visitors/to_ruby.rb: quoted "<<" strings
53
- should not be treated as merge keys.
54
- * ext/psych/lib/psych/visitors/yaml_tree.rb: hashes with keys
55
- containing "<<" should roundtrip.
56
- * test/psych/test_merge_keys.rb: test for change. Fixes GH #203
57
-
58
- Wed Aug 6 03:41:21 2014 Aaron Patterson <aaron@tenderlovemaking.com>
59
-
60
- * ext/psych/lib/psych/visitors/to_ruby.rb: backwards compatibility for
61
- hashes emitted by Syck. Github #198
62
- * test/psych/test_hash.rb: test for change.
63
-
64
- Fri Jun 6 07:41:41 2014 Aaron Patterson <aaron@tenderlovemaking.com>
65
-
66
- * ext/psych/lib/psych/visitors/yaml_tree.rb: dump empty symbols with a
67
- tag so that they can be parsed on input. [Bug #9873] [ruby-core:62825]
68
- * test/psych/test_symbol.rb: test for change
69
-
70
- Sun May 25 11:35:41 2014 Zachary Scott <e@zzak.io>
71
-
72
- * test/psych/*: YAML::ENGINE was removed in [Bug #8344]
73
-
74
- 2014-03-27 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
75
-
76
- * ext/psych/yaml/scanner.c: merge libyaml 0.1.6
77
- * ext/psych/yaml/yaml_private.h: ditto
78
-
79
- Sat Mar 1 11:08:00 2014 Aaron Patterson <aaron@tenderlovemaking.com>
80
-
81
- * ext/psych/lib/psych/visitors/yaml_tree.rb: support dumping Encoding
82
- objects.
83
-
84
- * ext/psych/lib/psych/visitors/to_ruby.rb: support loading Encoding
85
- objects.
86
-
87
- * test/psych/test_encoding.rb: add test
88
-
89
- * ext/psych/lib/psych.rb: add version
90
-
91
- Wed Feb 5 10:11:36 2014 Zachary Scott <e@zzak.io>
92
-
93
- * ext/psych/yaml/config.h: bump libyaml to 0.1.5
94
-
95
- Wed Feb 5 04:16:41 2014 Aaron Patterson <aaron@tenderlovemaking.com>
96
-
97
- * ext/psych/yaml/emitter.c: merge libyaml 0.1.5
98
- * ext/psych/yaml/loader.c: ditto
99
- * ext/psych/yaml/parser.c: ditto
100
- * ext/psych/yaml/reader.c: ditto
101
- * ext/psych/yaml/scanner.c: ditto
102
- * ext/psych/yaml/writer.c: ditto
103
- * ext/psych/yaml/yaml_private.h: ditto
104
-
105
- Thu Jan 9 09:55:20 2014 Aaron Patterson <aaron@tenderlovemaking.com>
106
-
107
- * ext/psych/lib/psych/visitors/yaml_tree.rb: dumping strings with
108
- quotes should not have changed. [ruby-core:59316] [Bug #9300]
109
-
110
- * ext/psych/lib/psych.rb: fixed missing require.
111
-
112
- * test/psych/test_string.rb: test
113
-
114
- Wed Nov 27 06:40:18 2013 Aaron Patterson <aaron@tenderlovemaking.com>
115
-
116
- * ext/psych/lib/psych/scalar_scanner.rb: fix support for negative
117
- years.
118
- * ext/psych/lib/psych/visitors/yaml_tree.rb: ditto
119
- * test/psych/test_date_time.rb: test for change.
120
- Fixes: https://github.com/tenderlove/psych/issues/168
121
-
122
- Wed Nov 27 04:46:55 2013 Aaron Patterson <aaron@tenderlovemaking.com>
123
-
124
- * ext/psych/lib/psych/scalar_scanner.rb: fix regexp for matching TIME
125
- strings.
126
- * test/psych/test_date_time.rb: test for change.
127
- Fixes: https://github.com/tenderlove/psych/issues/171
128
-
129
- Wed Nov 6 04:14:25 2013 Aaron Patterson <aaron@tenderlovemaking.com>
130
-
131
- * ext/psych/lib/psych/visitors/to_ruby.rb: process merge keys before
132
- reviving objects. Fixes GH psych #168
133
- * test/psych/test_merge_keys.rb: test for change
134
- https://github.com/tenderlove/psych/issues/168
135
-
136
- Wed Oct 30 03:25:10 2013 Aaron Patterson <aaron@tenderlovemaking.com>
137
-
138
- * ext/psych/lib/psych/visitors/yaml_tree.rb: make less garbage when
139
- testing if a string is binary.
140
-
141
- Wed Oct 30 03:08:24 2013 Aaron Patterson <aaron@tenderlovemaking.com>
142
-
143
- * ext/psych/lib/psych/visitors/yaml_tree.rb: string subclasses should
144
- not be considered to be binary. Fixes Psych / GH 166
145
- https://github.com/tenderlove/psych/issues/166
146
-
147
- * test/psych/test_string.rb: test for fix
148
-
149
- Fri Sep 20 23:44:07 2013 Zachary Scott <e@zzak.io>
150
-
151
- * ext/psych/yaml/yaml.h: [DOC] fix typo by @GreenGeorge [Fixes GH-161]
152
- https://github.com/tenderlove/psych/pull/161
153
-
154
- Fri Sep 6 02:37:22 2013 Aaron Patterson <aaron@tenderlovemaking.com>
155
-
156
- * ext/psych/lib/psych/visitors/yaml_tree.rb: use double quotes when
157
- strings start with special characters.
158
- [Fixes GH-157] https://github.com/tenderlove/psych/issues/157
159
-
160
- * test/psych/test_string.rb: test for change.
161
-
162
- Thu Aug 29 02:40:45 2013 Aaron Patterson <aaron@tenderlovemaking.com>
163
-
164
- * ext/psych/lib/psych/scalar_scanner.rb: invalid floats should be
165
- treated as strings.
166
- [Fixes GH-156] https://github.com/tenderlove/psych/issues/156
167
-
168
- * test/psych/test_string.rb: test for change
169
-
170
- Sat Jul 6 04:49:38 2013 Aaron Patterson <aaron@tenderlovemaking.com>
171
-
172
- * ext/psych/lib/psych/visitors/yaml_tree.rb: register time objects so
173
- they are referenced as ids during output.
174
- * test/psych/test_date_time.rb: corresponding test.
175
-
176
- Wed May 15 02:22:16 2013 Aaron Patterson <aaron@tenderlovemaking.com>
177
-
178
- * ext/psych/lib/psych.rb: Adding Psych.safe_load for loading a user
179
- defined, restricted subset of Ruby object types.
180
- * ext/psych/lib/psych/class_loader.rb: A class loader for
181
- encapsulating the logic for which objects are allowed to be
182
- deserialized.
183
- * ext/psych/lib/psych/deprecated.rb: Changes to use the class loader
184
- * ext/psych/lib/psych/exception.rb: ditto
185
- * ext/psych/lib/psych/json/stream.rb: ditto
186
- * ext/psych/lib/psych/nodes/node.rb: ditto
187
- * ext/psych/lib/psych/scalar_scanner.rb: ditto
188
- * ext/psych/lib/psych/stream.rb: ditto
189
- * ext/psych/lib/psych/streaming.rb: ditto
190
- * ext/psych/lib/psych/visitors/json_tree.rb: ditto
191
- * ext/psych/lib/psych/visitors/to_ruby.rb: ditto
192
- * ext/psych/lib/psych/visitors/yaml_tree.rb: ditto
193
- * ext/psych/psych_to_ruby.c: ditto
194
- * test/psych/helper.rb: ditto
195
- * test/psych/test_safe_load.rb: tests for restricted subset.
196
- * test/psych/test_scalar_scanner.rb: ditto
197
- * test/psych/visitors/test_to_ruby.rb: ditto
198
- * test/psych/visitors/test_yaml_tree.rb: ditto
199
-
200
- Sat Apr 6 02:54:08 2013 Aaron Patterson <aaron@tenderlovemaking.com>
201
-
202
- * ext/psych/lib/psych/exception.rb: there should be only one exception
203
- base class. Fixes tenderlove/psych #125
204
- * ext/psych/lib/psych.rb: require the correct exception class
205
- * ext/psych/lib/psych/syntax_error.rb: ditto
206
- * ext/psych/lib/psych/visitors/to_ruby.rb: ditto
207
-
208
- Sat Apr 6 02:06:04 2013 Aaron Patterson <aaron@tenderlovemaking.com>
209
-
210
- * ext/psych/lib/psych/visitors/to_ruby.rb: correctly register
211
- self-referential strings. Fixes tenderlove/psych #135
212
-
213
- * test/psych/test_string.rb: appropriate test.
214
-
215
- Fri Mar 1 09:15:00 2013 Zachary Scott <zachary@zacharyscott.net>
216
-
217
- * lib/psych.rb: specify in rdoc what object is returned in parser
218
- By Adam Stankiewicz [Github Fixes #133]
219
-
220
- Fri Mar 1 03:22:00 2013 Zachary Scott <zachary@zacharyscott.net>
221
-
222
- * lib/psych.rb: rdoc for Psych overview by Adam Stankiewicz
223
- [Github Fixes #134]
224
-
225
- Sun Feb 17 01:13:00 2013 Zachary Scott <zachary@zacharyscott.net>
226
-
227
- * lib/psych/y.rb: Document Kernel#y by Adam Stankiewicz
228
- [Github Fixes #127]
229
-
230
- Fri Feb 8 08:53:27 2013 Aaron Patterson <aaron@tenderlovemaking.com>
231
-
232
- * ext/psych/lib/psych/visitors/yaml_tree.rb: fixing string quotation
233
- when dumping Ruby strings. Thanks Ingy
234
-
235
- * test/psych/test_psych.rb: appropriate tests.
236
-
237
- * test/psych/test_yaml.rb: ditto
238
-
239
- Fri Feb 8 08:50:42 2013 Aaron Patterson <aaron@tenderlovemaking.com>
240
-
241
- * ext/psych/lib/psych/visitors/yaml_tree.rb: change output reference
242
- ids to be sequential numbers.
243
-
244
- Thu Jan 17 10:48:56 2013 Aaron Patterson <aaron@tenderlovemaking.com>
245
-
246
- * ext/psych/lib/psych/scalar_scanner.rb: use constants rather than
247
- calculating Inf and NaN.
248
-
249
- Sun Jan 13 16:40:00 2013 Zachary Scott <zachary@zacharyscott.net>
250
-
251
- * ext/psych/yaml/scanner.c: Typos by James Dabbs [Github Fixes #118]
252
-
253
- Sat Jan 12 08:58:47 2013 Aaron Patterson <aaron@tenderlovemaking.com>
254
-
255
- * ext/psych/lib/psych/visitors/to_ruby.rb: merge key values that
256
- contain something besides a hash should be left in tact.
257
-
258
- * test/psych/test_merge_keys.rb: test for change
259
-
260
- Thu Jan 10 04:23:07 2013 Aaron Patterson <aaron@tenderlovemaking.com>
261
-
262
- * ext/psych/lib/psych/scalar_scanner.rb: strip trailing dots from
263
- floats so that Float() will not raise an exception.
264
-
265
- * test/psych/test_numeric.rb: test to ensure "1." can be loaded
266
-
267
- * test/psych/test_string.rb: make sure "1." can round trip
268
-
269
- Sat Nov 17 12:03:41 2012 Aaron Patterson <aaron@tenderlovemaking.com>
270
-
271
- * ext/psych/lib/psych/scalar_scanner.rb: avoid raising exceptions when
272
- parsing Floats and Integers. Thanks riffraff [ruby-core:44426]
273
- * test/psych/test_numeric.rb: associated test
274
-
275
- Sat Nov 17 11:26:36 2012 Aaron Patterson <aaron@tenderlovemaking.com>
276
-
277
- * ext/psych/lib/psych/core_ext.rb: move Kernel#y so that it can
278
- manually be required as 'psych/y'.
279
-
280
- * ext/psych/lib/psych/y.rb: ditto
281
-
282
- Tue Nov 6 09:37:57 2012 NARUSE, Yui <naruse@ruby-lang.org>
283
-
284
- * ruby.c (load_file_internal): set default source encoding as
285
- UTF-8 instead of US-ASCII. [ruby-core:46021] [Feature #6679]
286
-
287
- * parse.y (parser_initialize): set default parser encoding as
288
- UTF-8 instead of US-ASCII.
289
-
290
- Mon Oct 29 10:22:00 2012 Aaron Patterson <aaron@tenderlovemaking.com>
291
-
292
- * ext/psych/lib/psych/handlers/recorder.rb: added a class for
293
- recording YAML parse and emit events.
294
-
295
- * ext/psych/lib/psych/handler.rb: adding a list of events so that
296
- handler classes can more easily be meta-programmed.
297
-
298
- * test/psych/handlers/test_recorder.rb: tests for the change.
299
-
300
- Sun Oct 28 10:12:15 2012 Aaron Patterson <aaron@tenderlovemaking.com>
301
-
302
- * ext/psych/lib/psych/visitors/yaml_tree.rb: `tree` should return the
303
- same thing on every call.
304
-
305
- * test/psych/visitors/test_yaml_tree.rb: related test.
306
-
307
- Sun Oct 28 10:05:03 2012 Aaron Patterson <aaron@tenderlovemaking.com>
308
-
309
- * ext/psych/lib/psych/visitors/yaml_tree.rb: YAML Tree object should
310
- be able to take an emitter object as it's output.
311
-
312
- * test/psych/visitors/test_yaml_tree.rb: related test.
313
-
314
- Thu Jul 19 09:33:46 2012 Aaron Patterson <aaron@tenderlovemaking.com>
315
-
316
- * ext/psych/emitter.c (initialize): allow a configuration object to be
317
- passed to the constructor so that mutation isn't required after
318
- instantiation.
319
-
320
- * ext/psych/lib/psych/handler.rb: add configuration object
321
-
322
- * ext/psych/lib/psych/visitors/emitter.rb: use configuration object if
323
- extra configuration is present.
324
-
325
- Fri May 18 01:28:21 2012 Aaron Patterson <aaron@tenderlovemaking.com>
326
-
327
- * ext/psych/parser.c (transcode_string): fix encoding index names.
328
- Thanks markizko for reporting.
329
-
330
- Wed May 16 05:11:29 2012 Aaron Patterson <aaron@tenderlovemaking.com>
331
-
332
- * ext/psych/lib/psych/visitors/to_ruby.rb: fix a bug with string
333
- subclass dumping and loading.
334
-
335
- * test/psych/test_array.rb: pertinent tests
336
-
337
- * test/psych/test_string.rb: ditto
338
-
339
- Wed May 16 01:31:21 2012 Aaron Patterson <aaron@tenderlovemaking.com>
340
-
341
- * ext/psych/lib/psych/visitors/to_ruby.rb: convert omap tagged maps to
342
- Psych::Omap objects rather than hashes. [Bug #6425]
343
-
344
- * test/psych/test_omap.rb: pertinent test.
345
-
346
- Wed May 16 01:15:45 2012 Aaron Patterson <aaron@tenderlovemaking.com>
347
-
348
- * ext/psych/lib/psych/visitors/yaml_tree.rb: keep a reference to
349
- custom coders so that GC does not impact dumped yaml reference ids.
350
-
351
- Mon Apr 30 04:43:53 2012 Aaron Patterson <aaron@tenderlovemaking.com>
352
-
353
- * ext/psych/lib/psych/json/yaml_events.rb: implicit styles should not
354
- be changeable for JSON events.
355
-
356
- Sat Apr 7 02:07:00 2012 Aaron Patterson <aaron@tenderlovemaking.com>
357
-
358
- * ext/psych/parser.c: fall back to any encoding if the external
359
- encoding is wrong. [ruby-core:44163]
360
- * test/psych/test_encoding.rb: fix test
361
-
362
- Fri Mar 9 06:29:22 2012 Aaron Patterson <aaron@tenderlovemaking.com>
363
-
364
- * ext/psych/lib/psych.rb (load, parse): stop parsing or loading after
365
- the first document has been parsed.
366
-
367
- * test/psych/test_stream.rb: pertinent tests.
368
-
369
- Fri Mar 9 06:17:05 2012 Aaron Patterson <aaron@tenderlovemaking.com>
370
-
371
- * ext/psych/lib/psych.rb (parse_stream, load_stream): if a block is
372
- given, documents will be yielded to the block as they are parsed.
373
- [ruby-core:42404] [Bug #5978]
374
-
375
- * ext/psych/lib/psych/handlers/document_stream.rb: add a handler that
376
- yields documents as they are parsed
377
-
378
- * test/psych/test_stream.rb: corresponding tests.
379
-
380
- Tue Mar 6 02:31:20 2012 Aaron Patterson <aaron@tenderlovemaking.com>
381
-
382
- * ext/psych/lib/psych/core_ext.rb: only extend Kernel if IRB is loaded
383
- in order to stop method pollution.
384
-
385
- Tue Feb 28 10:28:51 2012 Aaron Patterson <aaron@tenderlovemaking.com>
386
-
387
- * ext/psych/lib/psych.rb: default open YAML files with utf8 external
388
- encoding. [ruby-core:42967]
389
- * test/psych/test_tainted.rb: ditto
390
-
391
- Fri Feb 24 13:54:33 2012 Aaron Patterson <aaron@tenderlovemaking.com>
392
-
393
- * ext/psych/parser.c: prevent a memory leak by protecting calls to
394
- handler callbacks.
395
- * test/psych/test_parser.rb: test to demonstrate leak.
396
-
397
- Fri Feb 24 08:08:38 2012 Aaron Patterson <aaron@tenderlovemaking.com>
398
-
399
- * ext/psych/parser.c: set parser encoding based on the YAML input
400
- rather than user configuration.
401
- * test/psych/test_encoding.rb: corresponding tests.
402
- * test/psych/test_parser.rb: ditto
403
- * test/psych/test_tainted.rb: ditto
404
-
405
- Fri Feb 10 03:41:31 2012 Aaron Patterson <aaron@tenderlovemaking.com>
406
-
407
- * ext/psych/parser.c: removed external encoding setter, allow parser
408
- to be reused.
409
- * ext/psych/lib/psych/parser.rb: added external encoding setter.
410
- * test/psych/test_parser.rb: test parser reuse
411
-
412
- Wed Jan 18 12:49:15 2012 Aaron Patterson <aaron@tenderlovemaking.com>
413
-
414
- * ext/psych/lib/psych/visitors/to_ruby.rb: Added support for loading
415
- subclasses of String with ivars
416
- * ext/psych/lib/psych/visitors/yaml_tree.rb: Added support for dumping
417
- subclasses of String with ivars
418
- * test/psych/test_string.rb: corresponding tests
419
-
420
- Sun Dec 18 12:42:48 2011 Aaron Patterson <aaron@tenderlovemaking.com>
421
-
422
- * ext/psych/lib/psych/visitors/to_ruby.rb: BigDecimals can be restored
423
- from YAML.
424
- * ext/psych/lib/psych/visitors/yaml_tree.rb: BigDecimals can be dumped
425
- to YAML.
426
- * test/psych/test_numeric.rb: tests for BigDecimal serialization
427
-
428
- Sun Dec 18 12:03:13 2011 Aaron Patterson <aaron@tenderlovemaking.com>
429
-
430
- * ext/psych/lib/psych/scalar_scanner.rb: Strings that look like dates
431
- should be treated as strings and not dates.
432
-
433
- * test/psych/test_scalar_scanner.rb: corresponding tests.
434
-
435
- Wed Dec 7 08:04:31 2011 Aaron Patterson <aaron@tenderlovemaking.com>
436
-
437
- * ext/psych/lib/psych.rb (module Psych): parse and load methods take
438
- an optional file name that is used when raising Psych::SyntaxError
439
- exceptions
440
- * ext/psych/lib/psych/syntax_error.rb (module Psych): allow nil file
441
- names and handle nil file names in the exception message
442
- * test/psych/test_exception.rb (module Psych): Tests for changes.
443
-
444
- Wed Nov 30 09:09:37 2011 Aaron Patterson <aaron@tenderlovemaking.com>
445
-
446
- * ext/psych/parser.c (parse): parse method can take an option file
447
- name for use in exception messages.
448
- * test/psych/test_parser.rb: corresponding tests.
449
-
450
- Tue Nov 22 04:46:22 2011 Aaron Patterson <aaron@tenderlovemaking.com>
451
-
452
- * ext/psych/lib/psych.rb: remove autoload from psych
453
- * ext/psych/lib/psych/json.rb: ditto
454
-
455
- Thu Nov 17 10:36:46 2011 Aaron Patterson <aaron@tenderlovemaking.com>
456
-
457
- * ext/psych/lib/psych.rb (load_file): make sure opened yaml files are
458
- also closed. [ruby-core:41088]
459
-
460
- Wed Nov 9 04:52:16 2011 Aaron Patterson <aaron@tenderlovemaking.com>
461
-
462
- * ext/psych/lib/psych/tree_builder.rb: dump complex numbers,
463
- rationals, etc with reference ids.
464
- * ext/psych/lib/psych/visitors/yaml_tree.rb: ditto
465
- * ext/psych/lib/psych/visitors/to_ruby.rb: loading complex numbers,
466
- rationals, etc with reference ids.
467
- * test/psych/test_object_references.rb: corresponding tests
468
-
469
- Mon Nov 7 20:31:52 2011 Aaron Patterson <aaron@tenderlovemaking.com>
470
-
471
- * ext/psych/lib/psych/scalar_scanner.rb: make sure strings that look
472
- like base 60 numbers are serialized as quoted strings.
473
- * test/psych/test_string.rb: test for change.
474
-
475
- Wed Oct 5 02:50:27 2011 Aaron Patterson <aaron@tenderlovemaking.com>
476
-
477
- * ext/psych/lib/psych/syntax_error.rb: Add file, line, offset, and
478
- message attributes during parse failure.
479
- * ext/psych/parser.c: Update parser to raise exception with correct
480
- values.
481
- * test/psych/test_exception.rb: corresponding tests.
482
-
483
- Wed Oct 5 01:52:16 2011 Aaron Patterson <aaron@tenderlovemaking.com>
484
-
485
- * ext/psych/parser.c (parse): Use context_mark for indicating error
486
- line and column.
487
-
488
- Tue Oct 4 06:29:55 2011 Aaron Patterson <aaron@tenderlovemaking.com>
489
-
490
- * ext/psych/lib/psych.rb: calling `yaml` rather than `to_yaml`.
491
- * ext/psych/lib/psych/nodes/node.rb: Rename `to_yaml` to just `yaml`
492
- in order to avoid YAML::ENGINE switching from replacing this method.
493
- * test/psych/helper.rb: fix tests for method name change.
494
- * test/psych/test_document.rb: ditto
495
- * test/psych/visitors/test_emitter.rb: ditto
496
-
497
- Tue Oct 4 06:20:19 2011 Aaron Patterson <aaron@tenderlovemaking.com>
498
-
499
- * ext/psych/lib/psych/scalar_scanner.rb: Match values against the
500
- floating point spec defined in YAML to avoid erronious parses.
501
- * test/psych/test_numeric.rb: corresponding test.
502
-
503
- Tue Oct 4 05:59:24 2011 Aaron Patterson <aaron@tenderlovemaking.com>
504
-
505
- * ext/psych/lib/psych/visitors/to_ruby.rb: ToRuby visitor can be
506
- constructed with a ScalarScanner.
507
- * ext/psych/lib/psych/visitors/yaml_tree.rb: ScalarScanner can be
508
- passed to the YAMLTree visitor.
509
-
510
- Tue Oct 4 05:47:23 2011 Aaron Patterson <aaron@tenderlovemaking.com>
511
-
512
- * ext/psych/lib/psych/visitors/to_ruby.rb: Define Regexp::NOENCODING
513
- for 1.9.2 backwards compatibility.
514
- * ext/psych/lib/psych/visitors/yaml_tree.rb: Fix Date string
515
- generation for 1.9.2 backwards compatibility.
516
-
517
- Fri Sep 2 04:05:25 2011 Aaron Patterson <aaron@tenderlovemaking.com>
518
-
519
- * ext/psych/lib/psych/visitors/yaml_tree.rb: emit strings tagged as
520
- ascii-8bit as binary in YAML.
521
- * test/psych/test_string.rb: corresponding test.
522
-
523
- Thu Aug 25 06:11:35 2011 Aaron Patterson <aaron@tenderlovemaking.com>
524
-
525
- * ext/psych/lib/psych/nodes/node.rb: default `to_yaml` encoding to be
526
- UTF-8.
527
- * test/psych/test_encoding.rb: test yaml dump encoding.
528
-
529
- Wed Jun 22 03:20:52 2011 Aaron Patterson <aaron@tenderlovemaking.com>
530
-
531
- * ext/psych/lib/psych/visitors/to_ruby.rb: Fix cyclic references of
532
- objects. Thanks to CvX for reporting the bug and a test case.
533
- * test/psych/test_object.rb: test for cyclic object references.
534
-
535
- Thu Jun 9 10:57:03 2011 Aaron Patterson <aaron@tenderlovemaking.com>
536
-
537
- * ext/psych/lib/psych/visitors/to_ruby.rb: Hash subclasses can be read
538
- from YAML files.
539
- * ext/psych/lib/psych/visitors/yaml_tree.rb: Hash subclasses can be
540
- dumped to YAML files.
541
- * test/psych/test_hash.rb: corresponding test.
542
-
543
- Thu Jun 9 09:18:51 2011 Aaron Patterson <aaron@tenderlovemaking.com>
544
-
545
- * ext/psych/lib/psych/visitors/to_ruby.rb: Ruby modules can be loaded
546
- from YAML files.
547
- * ext/psych/lib/psych/visitors/yaml_tree.rb: Ruby modules can be
548
- dumped to YAML files.
549
- * test/psych/test_class.rb: corresponding test.
550
-
551
- Thu Jun 9 09:05:04 2011 Aaron Patterson <aaron@tenderlovemaking.com>
552
-
553
- * ext/psych/lib/psych/visitors/to_ruby.rb: Ruby classes can be loaded
554
- from YAML files.
555
- * ext/psych/lib/psych/visitors/yaml_tree.rb: Ruby classes can be
556
- dumped to YAML files.
557
- * test/psych/test_class.rb: corresponding test.
558
-
559
- Mon Jun 6 09:39:43 2011 Aaron Patterson <aaron@tenderlovemaking.com>
560
-
561
- * ext/psych/parser.c (parse): release event objects to plug memory
562
- leak. Thanks Mark J. Titorenko!
data/Manifest.txt DELETED
@@ -1,112 +0,0 @@
1
- .autotest
2
- .travis.yml
3
- CHANGELOG.rdoc
4
- Manifest.txt
5
- README.rdoc
6
- Rakefile
7
- ext/psych/depend
8
- ext/psych/extconf.rb
9
- ext/psych/psych.c
10
- ext/psych/psych.h
11
- ext/psych/psych_emitter.c
12
- ext/psych/psych_emitter.h
13
- ext/psych/psych_parser.c
14
- ext/psych/psych_parser.h
15
- ext/psych/psych_to_ruby.c
16
- ext/psych/psych_to_ruby.h
17
- ext/psych/psych_yaml_tree.c
18
- ext/psych/psych_yaml_tree.h
19
- ext/psych/yaml/LICENSE
20
- ext/psych/yaml/api.c
21
- ext/psych/yaml/config.h
22
- ext/psych/yaml/dumper.c
23
- ext/psych/yaml/emitter.c
24
- ext/psych/yaml/loader.c
25
- ext/psych/yaml/parser.c
26
- ext/psych/yaml/reader.c
27
- ext/psych/yaml/scanner.c
28
- ext/psych/yaml/writer.c
29
- ext/psych/yaml/yaml.h
30
- ext/psych/yaml/yaml_private.h
31
- lib/psych.rb
32
- lib/psych/class_loader.rb
33
- lib/psych/coder.rb
34
- lib/psych/core_ext.rb
35
- lib/psych/deprecated.rb
36
- lib/psych/exception.rb
37
- lib/psych/handler.rb
38
- lib/psych/handlers/document_stream.rb
39
- lib/psych/handlers/recorder.rb
40
- lib/psych/json/ruby_events.rb
41
- lib/psych/json/stream.rb
42
- lib/psych/json/tree_builder.rb
43
- lib/psych/json/yaml_events.rb
44
- lib/psych/nodes.rb
45
- lib/psych/nodes/alias.rb
46
- lib/psych/nodes/document.rb
47
- lib/psych/nodes/mapping.rb
48
- lib/psych/nodes/node.rb
49
- lib/psych/nodes/scalar.rb
50
- lib/psych/nodes/sequence.rb
51
- lib/psych/nodes/stream.rb
52
- lib/psych/omap.rb
53
- lib/psych/parser.rb
54
- lib/psych/scalar_scanner.rb
55
- lib/psych/set.rb
56
- lib/psych/stream.rb
57
- lib/psych/streaming.rb
58
- lib/psych/syntax_error.rb
59
- lib/psych/tree_builder.rb
60
- lib/psych/visitors.rb
61
- lib/psych/visitors/depth_first.rb
62
- lib/psych/visitors/emitter.rb
63
- lib/psych/visitors/json_tree.rb
64
- lib/psych/visitors/to_ruby.rb
65
- lib/psych/visitors/visitor.rb
66
- lib/psych/visitors/yaml_tree.rb
67
- lib/psych/y.rb
68
- test/psych/handlers/test_recorder.rb
69
- test/psych/helper.rb
70
- test/psych/json/test_stream.rb
71
- test/psych/nodes/test_enumerable.rb
72
- test/psych/test_alias_and_anchor.rb
73
- test/psych/test_array.rb
74
- test/psych/test_boolean.rb
75
- test/psych/test_class.rb
76
- test/psych/test_coder.rb
77
- test/psych/test_date_time.rb
78
- test/psych/test_deprecated.rb
79
- test/psych/test_document.rb
80
- test/psych/test_emitter.rb
81
- test/psych/test_encoding.rb
82
- test/psych/test_exception.rb
83
- test/psych/test_hash.rb
84
- test/psych/test_json_tree.rb
85
- test/psych/test_merge_keys.rb
86
- test/psych/test_nil.rb
87
- test/psych/test_null.rb
88
- test/psych/test_numeric.rb
89
- test/psych/test_object.rb
90
- test/psych/test_object_references.rb
91
- test/psych/test_omap.rb
92
- test/psych/test_parser.rb
93
- test/psych/test_psych.rb
94
- test/psych/test_safe_load.rb
95
- test/psych/test_scalar.rb
96
- test/psych/test_scalar_scanner.rb
97
- test/psych/test_serialize_subclasses.rb
98
- test/psych/test_set.rb
99
- test/psych/test_stream.rb
100
- test/psych/test_string.rb
101
- test/psych/test_struct.rb
102
- test/psych/test_symbol.rb
103
- test/psych/test_tainted.rb
104
- test/psych/test_to_yaml_properties.rb
105
- test/psych/test_tree_builder.rb
106
- test/psych/test_yaml.rb
107
- test/psych/test_yamldbm.rb
108
- test/psych/test_yamlstore.rb
109
- test/psych/visitors/test_depth_first.rb
110
- test/psych/visitors/test_emitter.rb
111
- test/psych/visitors/test_to_ruby.rb
112
- test/psych/visitors/test_yaml_tree.rb