psych-shopifork 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.autotest +18 -0
- data/.gemtest +0 -0
- data/.travis.yml +9 -0
- data/CHANGELOG.rdoc +414 -0
- data/Manifest.txt +113 -0
- data/README.rdoc +71 -0
- data/Rakefile +72 -0
- data/ext/psych/depend +3 -0
- data/ext/psych/extconf.rb +36 -0
- data/ext/psych/psych.c +34 -0
- data/ext/psych/psych.h +20 -0
- data/ext/psych/psych_emitter.c +538 -0
- data/ext/psych/psych_emitter.h +8 -0
- data/ext/psych/psych_parser.c +579 -0
- data/ext/psych/psych_parser.h +6 -0
- data/ext/psych/psych_to_ruby.c +43 -0
- data/ext/psych/psych_to_ruby.h +8 -0
- data/ext/psych/psych_yaml_tree.c +24 -0
- data/ext/psych/psych_yaml_tree.h +8 -0
- data/ext/psych/yaml/LICENSE +19 -0
- data/ext/psych/yaml/api.c +1392 -0
- data/ext/psych/yaml/config.h +11 -0
- data/ext/psych/yaml/dumper.c +394 -0
- data/ext/psych/yaml/emitter.c +2335 -0
- data/ext/psych/yaml/loader.c +432 -0
- data/ext/psych/yaml/parser.c +1374 -0
- data/ext/psych/yaml/reader.c +465 -0
- data/ext/psych/yaml/scanner.c +3570 -0
- data/ext/psych/yaml/writer.c +141 -0
- data/ext/psych/yaml/yaml.h +1971 -0
- data/ext/psych/yaml/yaml_private.h +643 -0
- data/lib/psych.rb +497 -0
- data/lib/psych/class_loader.rb +101 -0
- data/lib/psych/coder.rb +94 -0
- data/lib/psych/core_ext.rb +35 -0
- data/lib/psych/deprecated.rb +85 -0
- data/lib/psych/exception.rb +13 -0
- data/lib/psych/handler.rb +249 -0
- data/lib/psych/handlers/document_stream.rb +22 -0
- data/lib/psych/handlers/recorder.rb +39 -0
- data/lib/psych/json/ruby_events.rb +19 -0
- data/lib/psych/json/stream.rb +16 -0
- data/lib/psych/json/tree_builder.rb +12 -0
- data/lib/psych/json/yaml_events.rb +29 -0
- data/lib/psych/nodes.rb +77 -0
- data/lib/psych/nodes/alias.rb +18 -0
- data/lib/psych/nodes/document.rb +60 -0
- data/lib/psych/nodes/mapping.rb +56 -0
- data/lib/psych/nodes/node.rb +55 -0
- data/lib/psych/nodes/scalar.rb +67 -0
- data/lib/psych/nodes/sequence.rb +81 -0
- data/lib/psych/nodes/stream.rb +37 -0
- data/lib/psych/omap.rb +4 -0
- data/lib/psych/parser.rb +51 -0
- data/lib/psych/scalar_scanner.rb +149 -0
- data/lib/psych/set.rb +4 -0
- data/lib/psych/stream.rb +37 -0
- data/lib/psych/streaming.rb +27 -0
- data/lib/psych/syntax_error.rb +21 -0
- data/lib/psych/tree_builder.rb +96 -0
- data/lib/psych/visitors.rb +6 -0
- data/lib/psych/visitors/depth_first.rb +26 -0
- data/lib/psych/visitors/emitter.rb +51 -0
- data/lib/psych/visitors/json_tree.rb +24 -0
- data/lib/psych/visitors/to_ruby.rb +372 -0
- data/lib/psych/visitors/visitor.rb +19 -0
- data/lib/psych/visitors/yaml_tree.rb +507 -0
- data/lib/psych/y.rb +9 -0
- data/test/psych/handlers/test_recorder.rb +25 -0
- data/test/psych/helper.rb +114 -0
- data/test/psych/json/test_stream.rb +109 -0
- data/test/psych/nodes/test_enumerable.rb +43 -0
- data/test/psych/test_alias_and_anchor.rb +96 -0
- data/test/psych/test_array.rb +57 -0
- data/test/psych/test_boolean.rb +36 -0
- data/test/psych/test_class.rb +36 -0
- data/test/psych/test_coder.rb +184 -0
- data/test/psych/test_date_time.rb +25 -0
- data/test/psych/test_deprecated.rb +214 -0
- data/test/psych/test_document.rb +46 -0
- data/test/psych/test_emitter.rb +94 -0
- data/test/psych/test_encoding.rb +254 -0
- data/test/psych/test_engine_manager.rb +47 -0
- data/test/psych/test_exception.rb +151 -0
- data/test/psych/test_hash.rb +44 -0
- data/test/psych/test_json_tree.rb +65 -0
- data/test/psych/test_merge_keys.rb +132 -0
- data/test/psych/test_nil.rb +18 -0
- data/test/psych/test_null.rb +19 -0
- data/test/psych/test_numeric.rb +45 -0
- data/test/psych/test_object.rb +44 -0
- data/test/psych/test_object_references.rb +67 -0
- data/test/psych/test_omap.rb +75 -0
- data/test/psych/test_parser.rb +339 -0
- data/test/psych/test_psych.rb +168 -0
- data/test/psych/test_safe_load.rb +97 -0
- data/test/psych/test_scalar.rb +11 -0
- data/test/psych/test_scalar_scanner.rb +106 -0
- data/test/psych/test_serialize_subclasses.rb +38 -0
- data/test/psych/test_set.rb +49 -0
- data/test/psych/test_stream.rb +93 -0
- data/test/psych/test_string.rb +153 -0
- data/test/psych/test_struct.rb +49 -0
- data/test/psych/test_symbol.rb +17 -0
- data/test/psych/test_tainted.rb +130 -0
- data/test/psych/test_to_yaml_properties.rb +63 -0
- data/test/psych/test_tree_builder.rb +79 -0
- data/test/psych/test_yaml.rb +1289 -0
- data/test/psych/test_yamldbm.rb +197 -0
- data/test/psych/test_yamlstore.rb +87 -0
- data/test/psych/visitors/test_depth_first.rb +49 -0
- data/test/psych/visitors/test_emitter.rb +144 -0
- data/test/psych/visitors/test_to_ruby.rb +326 -0
- data/test/psych/visitors/test_yaml_tree.rb +173 -0
- metadata +257 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MTEwODA4N2U4Yzc3YzU4OTc3ZTMwMDlkZjc4OWViN2YzNTkwODBhOA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
OTAzY2RlZDg3ZjZjMGNlODc0OWUyNjIyMjZjOGMxZTcyMGYxODZkYw==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
OTA0OGQzZmExOTE0ZjYwMTgzY2JlYzBkYTFhZjZjNWQyNmEwMThmODA4Y2Jk
|
10
|
+
YTUzNTVhMTA3OWIyNjk1Y2IwYmU4MWU4YzAyMmI3ODU4MTFjODNkYTM4OTA3
|
11
|
+
YjYzZTIwY2IwMzQxNGNmMTBjODEyNGZhZDUwNTRiYjQ3YTM4N2U=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NzBlYzk2NGNiNzI3YzdhNzM4YmZiMjk4MWMwYWViOTdlMjU1YmRmM2VjMjAz
|
14
|
+
Y2U4NTIxZTRkMmEwYjBhMThmZGZlMjJiM2M5NzIyMzI5NTVmZGQ4OGFiOGMx
|
15
|
+
Yjc1ZDgyN2IzMzYxOGZjYWY4ZDZkN2IyNjNiODA5Y2VhMmJmZDY=
|
data/.autotest
ADDED
@@ -0,0 +1,18 @@
|
|
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
ADDED
File without changes
|
data/.travis.yml
ADDED
data/CHANGELOG.rdoc
ADDED
@@ -0,0 +1,414 @@
|
|
1
|
+
Fri Sep 20 23:44:07 2013 Zachary Scott <e@zzak.io>
|
2
|
+
|
3
|
+
* ext/psych/yaml/yaml.h: [DOC] fix typo by @GreenGeorge [Fixes GH-161]
|
4
|
+
https://github.com/tenderlove/psych/pull/161
|
5
|
+
|
6
|
+
Fri Sep 6 02:37:22 2013 Aaron Patterson <aaron@tenderlovemaking.com>
|
7
|
+
|
8
|
+
* ext/psych/lib/psych/visitors/yaml_tree.rb: use double quotes when
|
9
|
+
strings start with special characters.
|
10
|
+
[Fixes GH-157] https://github.com/tenderlove/psych/issues/157
|
11
|
+
|
12
|
+
* test/psych/test_string.rb: test for change.
|
13
|
+
|
14
|
+
Thu Aug 29 02:40:45 2013 Aaron Patterson <aaron@tenderlovemaking.com>
|
15
|
+
|
16
|
+
* ext/psych/lib/psych/scalar_scanner.rb: invalid floats should be
|
17
|
+
treated as strings.
|
18
|
+
[Fixes GH-156] https://github.com/tenderlove/psych/issues/156
|
19
|
+
|
20
|
+
* test/psych/test_string.rb: test for change
|
21
|
+
|
22
|
+
Sat Jul 6 04:49:38 2013 Aaron Patterson <aaron@tenderlovemaking.com>
|
23
|
+
|
24
|
+
* ext/psych/lib/psych/visitors/yaml_tree.rb: register time objects so
|
25
|
+
they are referenced as ids during output.
|
26
|
+
* test/psych/test_date_time.rb: corresponding test.
|
27
|
+
|
28
|
+
Wed May 15 02:22:16 2013 Aaron Patterson <aaron@tenderlovemaking.com>
|
29
|
+
|
30
|
+
* ext/psych/lib/psych.rb: Adding Psych.safe_load for loading a user
|
31
|
+
defined, restricted subset of Ruby object types.
|
32
|
+
* ext/psych/lib/psych/class_loader.rb: A class loader for
|
33
|
+
encapsulating the logic for which objects are allowed to be
|
34
|
+
deserialized.
|
35
|
+
* ext/psych/lib/psych/deprecated.rb: Changes to use the class loader
|
36
|
+
* ext/psych/lib/psych/exception.rb: ditto
|
37
|
+
* ext/psych/lib/psych/json/stream.rb: ditto
|
38
|
+
* ext/psych/lib/psych/nodes/node.rb: ditto
|
39
|
+
* ext/psych/lib/psych/scalar_scanner.rb: ditto
|
40
|
+
* ext/psych/lib/psych/stream.rb: ditto
|
41
|
+
* ext/psych/lib/psych/streaming.rb: ditto
|
42
|
+
* ext/psych/lib/psych/visitors/json_tree.rb: ditto
|
43
|
+
* ext/psych/lib/psych/visitors/to_ruby.rb: ditto
|
44
|
+
* ext/psych/lib/psych/visitors/yaml_tree.rb: ditto
|
45
|
+
* ext/psych/psych_to_ruby.c: ditto
|
46
|
+
* test/psych/helper.rb: ditto
|
47
|
+
* test/psych/test_safe_load.rb: tests for restricted subset.
|
48
|
+
* test/psych/test_scalar_scanner.rb: ditto
|
49
|
+
* test/psych/visitors/test_to_ruby.rb: ditto
|
50
|
+
* test/psych/visitors/test_yaml_tree.rb: ditto
|
51
|
+
|
52
|
+
Sat Apr 6 02:54:08 2013 Aaron Patterson <aaron@tenderlovemaking.com>
|
53
|
+
|
54
|
+
* ext/psych/lib/psych/exception.rb: there should be only one exception
|
55
|
+
base class. Fixes tenderlove/psych #125
|
56
|
+
* ext/psych/lib/psych.rb: require the correct exception class
|
57
|
+
* ext/psych/lib/psych/syntax_error.rb: ditto
|
58
|
+
* ext/psych/lib/psych/visitors/to_ruby.rb: ditto
|
59
|
+
|
60
|
+
Sat Apr 6 02:06:04 2013 Aaron Patterson <aaron@tenderlovemaking.com>
|
61
|
+
|
62
|
+
* ext/psych/lib/psych/visitors/to_ruby.rb: correctly register
|
63
|
+
self-referential strings. Fixes tenderlove/psych #135
|
64
|
+
|
65
|
+
* test/psych/test_string.rb: appropriate test.
|
66
|
+
|
67
|
+
Fri Mar 1 09:15:00 2013 Zachary Scott <zachary@zacharyscott.net>
|
68
|
+
|
69
|
+
* lib/psych.rb: specify in rdoc what object is returned in parser
|
70
|
+
By Adam Stankiewicz [Github Fixes #133]
|
71
|
+
|
72
|
+
Fri Mar 1 03:22:00 2013 Zachary Scott <zachary@zacharyscott.net>
|
73
|
+
|
74
|
+
* lib/psych.rb: rdoc for Psych overview by Adam Stankiewicz
|
75
|
+
[Github Fixes #134]
|
76
|
+
|
77
|
+
Sun Feb 17 01:13:00 2013 Zachary Scott <zachary@zacharyscott.net>
|
78
|
+
|
79
|
+
* lib/psych/y.rb: Document Kernel#y by Adam Stankiewicz
|
80
|
+
[Github Fixes #127]
|
81
|
+
|
82
|
+
Fri Feb 8 08:53:27 2013 Aaron Patterson <aaron@tenderlovemaking.com>
|
83
|
+
|
84
|
+
* ext/psych/lib/psych/visitors/yaml_tree.rb: fixing string quotation
|
85
|
+
when dumping Ruby strings. Thanks Ingy
|
86
|
+
|
87
|
+
* test/psych/test_psych.rb: appropriate tests.
|
88
|
+
|
89
|
+
* test/psych/test_yaml.rb: ditto
|
90
|
+
|
91
|
+
Fri Feb 8 08:50:42 2013 Aaron Patterson <aaron@tenderlovemaking.com>
|
92
|
+
|
93
|
+
* ext/psych/lib/psych/visitors/yaml_tree.rb: change output reference
|
94
|
+
ids to be sequential numbers.
|
95
|
+
|
96
|
+
Thu Jan 17 10:48:56 2013 Aaron Patterson <aaron@tenderlovemaking.com>
|
97
|
+
|
98
|
+
* ext/psych/lib/psych/scalar_scanner.rb: use constants rather than
|
99
|
+
calculating Inf and NaN.
|
100
|
+
|
101
|
+
Sun Jan 13 16:40:00 2013 Zachary Scott <zachary@zacharyscott.net>
|
102
|
+
|
103
|
+
* ext/psych/yaml/scanner.c: Typos by James Dabbs [Github Fixes #118]
|
104
|
+
|
105
|
+
Sat Jan 12 08:58:47 2013 Aaron Patterson <aaron@tenderlovemaking.com>
|
106
|
+
|
107
|
+
* ext/psych/lib/psych/visitors/to_ruby.rb: merge key values that
|
108
|
+
contain something besides a hash should be left in tact.
|
109
|
+
|
110
|
+
* test/psych/test_merge_keys.rb: test for change
|
111
|
+
|
112
|
+
Thu Jan 10 04:23:07 2013 Aaron Patterson <aaron@tenderlovemaking.com>
|
113
|
+
|
114
|
+
* ext/psych/lib/psych/scalar_scanner.rb: strip trailing dots from
|
115
|
+
floats so that Float() will not raise an exception.
|
116
|
+
|
117
|
+
* test/psych/test_numeric.rb: test to ensure "1." can be loaded
|
118
|
+
|
119
|
+
* test/psych/test_string.rb: make sure "1." can round trip
|
120
|
+
|
121
|
+
Sat Nov 17 12:03:41 2012 Aaron Patterson <aaron@tenderlovemaking.com>
|
122
|
+
|
123
|
+
* ext/psych/lib/psych/scalar_scanner.rb: avoid raising exceptions when
|
124
|
+
parsing Floats and Integers. Thanks riffraff [ruby-core:44426]
|
125
|
+
* test/psych/test_numeric.rb: associated test
|
126
|
+
|
127
|
+
Sat Nov 17 11:26:36 2012 Aaron Patterson <aaron@tenderlovemaking.com>
|
128
|
+
|
129
|
+
* ext/psych/lib/psych/core_ext.rb: move Kernel#y so that it can
|
130
|
+
manually be required as 'psych/y'.
|
131
|
+
|
132
|
+
* ext/psych/lib/psych/y.rb: ditto
|
133
|
+
|
134
|
+
Tue Nov 6 09:37:57 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
135
|
+
|
136
|
+
* ruby.c (load_file_internal): set default source encoding as
|
137
|
+
UTF-8 instead of US-ASCII. [ruby-core:46021] [Feature #6679]
|
138
|
+
|
139
|
+
* parse.y (parser_initialize): set default parser encoding as
|
140
|
+
UTF-8 instead of US-ASCII.
|
141
|
+
|
142
|
+
Mon Oct 29 10:22:00 2012 Aaron Patterson <aaron@tenderlovemaking.com>
|
143
|
+
|
144
|
+
* ext/psych/lib/psych/handlers/recorder.rb: added a class for
|
145
|
+
recording YAML parse and emit events.
|
146
|
+
|
147
|
+
* ext/psych/lib/psych/handler.rb: adding a list of events so that
|
148
|
+
handler classes can more easily be meta-programmed.
|
149
|
+
|
150
|
+
* test/psych/handlers/test_recorder.rb: tests for the change.
|
151
|
+
|
152
|
+
Sun Oct 28 10:12:15 2012 Aaron Patterson <aaron@tenderlovemaking.com>
|
153
|
+
|
154
|
+
* ext/psych/lib/psych/visitors/yaml_tree.rb: `tree` should return the
|
155
|
+
same thing on every call.
|
156
|
+
|
157
|
+
* test/psych/visitors/test_yaml_tree.rb: related test.
|
158
|
+
|
159
|
+
Sun Oct 28 10:05:03 2012 Aaron Patterson <aaron@tenderlovemaking.com>
|
160
|
+
|
161
|
+
* ext/psych/lib/psych/visitors/yaml_tree.rb: YAML Tree object should
|
162
|
+
be able to take an emitter object as it's output.
|
163
|
+
|
164
|
+
* test/psych/visitors/test_yaml_tree.rb: related test.
|
165
|
+
|
166
|
+
Thu Jul 19 09:33:46 2012 Aaron Patterson <aaron@tenderlovemaking.com>
|
167
|
+
|
168
|
+
* ext/psych/emitter.c (initialize): allow a configuration object to be
|
169
|
+
passed to the constructor so that mutation isn't required after
|
170
|
+
instantiation.
|
171
|
+
|
172
|
+
* ext/psych/lib/psych/handler.rb: add configuration object
|
173
|
+
|
174
|
+
* ext/psych/lib/psych/visitors/emitter.rb: use configuration object if
|
175
|
+
extra configuration is present.
|
176
|
+
|
177
|
+
Fri May 18 01:28:21 2012 Aaron Patterson <aaron@tenderlovemaking.com>
|
178
|
+
|
179
|
+
* ext/psych/parser.c (transcode_string): fix encoding index names.
|
180
|
+
Thanks markizko for reporting.
|
181
|
+
|
182
|
+
Wed May 16 05:11:29 2012 Aaron Patterson <aaron@tenderlovemaking.com>
|
183
|
+
|
184
|
+
* ext/psych/lib/psych/visitors/to_ruby.rb: fix a bug with string
|
185
|
+
subclass dumping and loading.
|
186
|
+
|
187
|
+
* test/psych/test_array.rb: pertinent tests
|
188
|
+
|
189
|
+
* test/psych/test_string.rb: ditto
|
190
|
+
|
191
|
+
Wed May 16 01:31:21 2012 Aaron Patterson <aaron@tenderlovemaking.com>
|
192
|
+
|
193
|
+
* ext/psych/lib/psych/visitors/to_ruby.rb: convert omap tagged maps to
|
194
|
+
Psych::Omap objects rather than hashes. [Bug #6425]
|
195
|
+
|
196
|
+
* test/psych/test_omap.rb: pertinent test.
|
197
|
+
|
198
|
+
Wed May 16 01:15:45 2012 Aaron Patterson <aaron@tenderlovemaking.com>
|
199
|
+
|
200
|
+
* ext/psych/lib/psych/visitors/yaml_tree.rb: keep a reference to
|
201
|
+
custom coders so that GC does not impact dumped yaml reference ids.
|
202
|
+
|
203
|
+
Mon Apr 30 04:43:53 2012 Aaron Patterson <aaron@tenderlovemaking.com>
|
204
|
+
|
205
|
+
* ext/psych/lib/psych/json/yaml_events.rb: implicit styles should not
|
206
|
+
be changeable for JSON events.
|
207
|
+
|
208
|
+
Sat Apr 7 02:07:00 2012 Aaron Patterson <aaron@tenderlovemaking.com>
|
209
|
+
|
210
|
+
* ext/psych/parser.c: fall back to any encoding if the external
|
211
|
+
encoding is wrong. [ruby-core:44163]
|
212
|
+
* test/psych/test_encoding.rb: fix test
|
213
|
+
|
214
|
+
Fri Mar 9 06:29:22 2012 Aaron Patterson <aaron@tenderlovemaking.com>
|
215
|
+
|
216
|
+
* ext/psych/lib/psych.rb (load, parse): stop parsing or loading after
|
217
|
+
the first document has been parsed.
|
218
|
+
|
219
|
+
* test/psych/test_stream.rb: pertinent tests.
|
220
|
+
|
221
|
+
Fri Mar 9 06:17:05 2012 Aaron Patterson <aaron@tenderlovemaking.com>
|
222
|
+
|
223
|
+
* ext/psych/lib/psych.rb (parse_stream, load_stream): if a block is
|
224
|
+
given, documents will be yielded to the block as they are parsed.
|
225
|
+
[ruby-core:42404] [Bug #5978]
|
226
|
+
|
227
|
+
* ext/psych/lib/psych/handlers/document_stream.rb: add a handler that
|
228
|
+
yields documents as they are parsed
|
229
|
+
|
230
|
+
* test/psych/test_stream.rb: corresponding tests.
|
231
|
+
|
232
|
+
Tue Mar 6 02:31:20 2012 Aaron Patterson <aaron@tenderlovemaking.com>
|
233
|
+
|
234
|
+
* ext/psych/lib/psych/core_ext.rb: only extend Kernel if IRB is loaded
|
235
|
+
in order to stop method pollution.
|
236
|
+
|
237
|
+
Tue Feb 28 10:28:51 2012 Aaron Patterson <aaron@tenderlovemaking.com>
|
238
|
+
|
239
|
+
* ext/psych/lib/psych.rb: default open YAML files with utf8 external
|
240
|
+
encoding. [ruby-core:42967]
|
241
|
+
* test/psych/test_tainted.rb: ditto
|
242
|
+
|
243
|
+
Fri Feb 24 13:54:33 2012 Aaron Patterson <aaron@tenderlovemaking.com>
|
244
|
+
|
245
|
+
* ext/psych/parser.c: prevent a memory leak by protecting calls to
|
246
|
+
handler callbacks.
|
247
|
+
* test/psych/test_parser.rb: test to demonstrate leak.
|
248
|
+
|
249
|
+
Fri Feb 24 08:08:38 2012 Aaron Patterson <aaron@tenderlovemaking.com>
|
250
|
+
|
251
|
+
* ext/psych/parser.c: set parser encoding based on the YAML input
|
252
|
+
rather than user configuration.
|
253
|
+
* test/psych/test_encoding.rb: corresponding tests.
|
254
|
+
* test/psych/test_parser.rb: ditto
|
255
|
+
* test/psych/test_tainted.rb: ditto
|
256
|
+
|
257
|
+
Fri Feb 10 03:41:31 2012 Aaron Patterson <aaron@tenderlovemaking.com>
|
258
|
+
|
259
|
+
* ext/psych/parser.c: removed external encoding setter, allow parser
|
260
|
+
to be reused.
|
261
|
+
* ext/psych/lib/psych/parser.rb: added external encoding setter.
|
262
|
+
* test/psych/test_parser.rb: test parser reuse
|
263
|
+
|
264
|
+
Wed Jan 18 12:49:15 2012 Aaron Patterson <aaron@tenderlovemaking.com>
|
265
|
+
|
266
|
+
* ext/psych/lib/psych/visitors/to_ruby.rb: Added support for loading
|
267
|
+
subclasses of String with ivars
|
268
|
+
* ext/psych/lib/psych/visitors/yaml_tree.rb: Added support for dumping
|
269
|
+
subclasses of String with ivars
|
270
|
+
* test/psych/test_string.rb: corresponding tests
|
271
|
+
|
272
|
+
Sun Dec 18 12:42:48 2011 Aaron Patterson <aaron@tenderlovemaking.com>
|
273
|
+
|
274
|
+
* ext/psych/lib/psych/visitors/to_ruby.rb: BigDecimals can be restored
|
275
|
+
from YAML.
|
276
|
+
* ext/psych/lib/psych/visitors/yaml_tree.rb: BigDecimals can be dumped
|
277
|
+
to YAML.
|
278
|
+
* test/psych/test_numeric.rb: tests for BigDecimal serialization
|
279
|
+
|
280
|
+
Sun Dec 18 12:03:13 2011 Aaron Patterson <aaron@tenderlovemaking.com>
|
281
|
+
|
282
|
+
* ext/psych/lib/psych/scalar_scanner.rb: Strings that look like dates
|
283
|
+
should be treated as strings and not dates.
|
284
|
+
|
285
|
+
* test/psych/test_scalar_scanner.rb: corresponding tests.
|
286
|
+
|
287
|
+
Wed Dec 7 08:04:31 2011 Aaron Patterson <aaron@tenderlovemaking.com>
|
288
|
+
|
289
|
+
* ext/psych/lib/psych.rb (module Psych): parse and load methods take
|
290
|
+
an optional file name that is used when raising Psych::SyntaxError
|
291
|
+
exceptions
|
292
|
+
* ext/psych/lib/psych/syntax_error.rb (module Psych): allow nil file
|
293
|
+
names and handle nil file names in the exception message
|
294
|
+
* test/psych/test_exception.rb (module Psych): Tests for changes.
|
295
|
+
|
296
|
+
Wed Nov 30 09:09:37 2011 Aaron Patterson <aaron@tenderlovemaking.com>
|
297
|
+
|
298
|
+
* ext/psych/parser.c (parse): parse method can take an option file
|
299
|
+
name for use in exception messages.
|
300
|
+
* test/psych/test_parser.rb: corresponding tests.
|
301
|
+
|
302
|
+
Tue Nov 22 04:46:22 2011 Aaron Patterson <aaron@tenderlovemaking.com>
|
303
|
+
|
304
|
+
* ext/psych/lib/psych.rb: remove autoload from psych
|
305
|
+
* ext/psych/lib/psych/json.rb: ditto
|
306
|
+
|
307
|
+
Thu Nov 17 10:36:46 2011 Aaron Patterson <aaron@tenderlovemaking.com>
|
308
|
+
|
309
|
+
* ext/psych/lib/psych.rb (load_file): make sure opened yaml files are
|
310
|
+
also closed. [ruby-core:41088]
|
311
|
+
|
312
|
+
Wed Nov 9 04:52:16 2011 Aaron Patterson <aaron@tenderlovemaking.com>
|
313
|
+
|
314
|
+
* ext/psych/lib/psych/tree_builder.rb: dump complex numbers,
|
315
|
+
rationals, etc with reference ids.
|
316
|
+
* ext/psych/lib/psych/visitors/yaml_tree.rb: ditto
|
317
|
+
* ext/psych/lib/psych/visitors/to_ruby.rb: loading complex numbers,
|
318
|
+
rationals, etc with reference ids.
|
319
|
+
* test/psych/test_object_references.rb: corresponding tests
|
320
|
+
|
321
|
+
Mon Nov 7 20:31:52 2011 Aaron Patterson <aaron@tenderlovemaking.com>
|
322
|
+
|
323
|
+
* ext/psych/lib/psych/scalar_scanner.rb: make sure strings that look
|
324
|
+
like base 60 numbers are serialized as quoted strings.
|
325
|
+
* test/psych/test_string.rb: test for change.
|
326
|
+
|
327
|
+
Wed Oct 5 02:50:27 2011 Aaron Patterson <aaron@tenderlovemaking.com>
|
328
|
+
|
329
|
+
* ext/psych/lib/psych/syntax_error.rb: Add file, line, offset, and
|
330
|
+
message attributes during parse failure.
|
331
|
+
* ext/psych/parser.c: Update parser to raise exception with correct
|
332
|
+
values.
|
333
|
+
* test/psych/test_exception.rb: corresponding tests.
|
334
|
+
|
335
|
+
Wed Oct 5 01:52:16 2011 Aaron Patterson <aaron@tenderlovemaking.com>
|
336
|
+
|
337
|
+
* ext/psych/parser.c (parse): Use context_mark for indicating error
|
338
|
+
line and column.
|
339
|
+
|
340
|
+
Tue Oct 4 06:29:55 2011 Aaron Patterson <aaron@tenderlovemaking.com>
|
341
|
+
|
342
|
+
* ext/psych/lib/psych.rb: calling `yaml` rather than `to_yaml`.
|
343
|
+
* ext/psych/lib/psych/nodes/node.rb: Rename `to_yaml` to just `yaml`
|
344
|
+
in order to avoid YAML::ENGINE switching from replacing this method.
|
345
|
+
* test/psych/helper.rb: fix tests for method name change.
|
346
|
+
* test/psych/test_document.rb: ditto
|
347
|
+
* test/psych/visitors/test_emitter.rb: ditto
|
348
|
+
|
349
|
+
Tue Oct 4 06:20:19 2011 Aaron Patterson <aaron@tenderlovemaking.com>
|
350
|
+
|
351
|
+
* ext/psych/lib/psych/scalar_scanner.rb: Match values against the
|
352
|
+
floating point spec defined in YAML to avoid erronious parses.
|
353
|
+
* test/psych/test_numeric.rb: corresponding test.
|
354
|
+
|
355
|
+
Tue Oct 4 05:59:24 2011 Aaron Patterson <aaron@tenderlovemaking.com>
|
356
|
+
|
357
|
+
* ext/psych/lib/psych/visitors/to_ruby.rb: ToRuby visitor can be
|
358
|
+
constructed with a ScalarScanner.
|
359
|
+
* ext/psych/lib/psych/visitors/yaml_tree.rb: ScalarScanner can be
|
360
|
+
passed to the YAMLTree visitor.
|
361
|
+
|
362
|
+
Tue Oct 4 05:47:23 2011 Aaron Patterson <aaron@tenderlovemaking.com>
|
363
|
+
|
364
|
+
* ext/psych/lib/psych/visitors/to_ruby.rb: Define Regexp::NOENCODING
|
365
|
+
for 1.9.2 backwards compatibility.
|
366
|
+
* ext/psych/lib/psych/visitors/yaml_tree.rb: Fix Date string
|
367
|
+
generation for 1.9.2 backwards compatibility.
|
368
|
+
|
369
|
+
Fri Sep 2 04:05:25 2011 Aaron Patterson <aaron@tenderlovemaking.com>
|
370
|
+
|
371
|
+
* ext/psych/lib/psych/visitors/yaml_tree.rb: emit strings tagged as
|
372
|
+
ascii-8bit as binary in YAML.
|
373
|
+
* test/psych/test_string.rb: corresponding test.
|
374
|
+
|
375
|
+
Thu Aug 25 06:11:35 2011 Aaron Patterson <aaron@tenderlovemaking.com>
|
376
|
+
|
377
|
+
* ext/psych/lib/psych/nodes/node.rb: default `to_yaml` encoding to be
|
378
|
+
UTF-8.
|
379
|
+
* test/psych/test_encoding.rb: test yaml dump encoding.
|
380
|
+
|
381
|
+
Wed Jun 22 03:20:52 2011 Aaron Patterson <aaron@tenderlovemaking.com>
|
382
|
+
|
383
|
+
* ext/psych/lib/psych/visitors/to_ruby.rb: Fix cyclic references of
|
384
|
+
objects. Thanks to CvX for reporting the bug and a test case.
|
385
|
+
* test/psych/test_object.rb: test for cyclic object references.
|
386
|
+
|
387
|
+
Thu Jun 9 10:57:03 2011 Aaron Patterson <aaron@tenderlovemaking.com>
|
388
|
+
|
389
|
+
* ext/psych/lib/psych/visitors/to_ruby.rb: Hash subclasses can be read
|
390
|
+
from YAML files.
|
391
|
+
* ext/psych/lib/psych/visitors/yaml_tree.rb: Hash subclasses can be
|
392
|
+
dumped to YAML files.
|
393
|
+
* test/psych/test_hash.rb: corresponding test.
|
394
|
+
|
395
|
+
Thu Jun 9 09:18:51 2011 Aaron Patterson <aaron@tenderlovemaking.com>
|
396
|
+
|
397
|
+
* ext/psych/lib/psych/visitors/to_ruby.rb: Ruby modules can be loaded
|
398
|
+
from YAML files.
|
399
|
+
* ext/psych/lib/psych/visitors/yaml_tree.rb: Ruby modules can be
|
400
|
+
dumped to YAML files.
|
401
|
+
* test/psych/test_class.rb: corresponding test.
|
402
|
+
|
403
|
+
Thu Jun 9 09:05:04 2011 Aaron Patterson <aaron@tenderlovemaking.com>
|
404
|
+
|
405
|
+
* ext/psych/lib/psych/visitors/to_ruby.rb: Ruby classes can be loaded
|
406
|
+
from YAML files.
|
407
|
+
* ext/psych/lib/psych/visitors/yaml_tree.rb: Ruby classes can be
|
408
|
+
dumped to YAML files.
|
409
|
+
* test/psych/test_class.rb: corresponding test.
|
410
|
+
|
411
|
+
Mon Jun 6 09:39:43 2011 Aaron Patterson <aaron@tenderlovemaking.com>
|
412
|
+
|
413
|
+
* ext/psych/parser.c (parse): release event objects to plug memory
|
414
|
+
leak. Thanks Mark J. Titorenko!
|