Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 250 lines (169 sloc) 9.571 kb
e82cf03 @tenderlove * ext/psych/emitter.c (initialize): allow a configuration object to be
authored
1 Thu Jul 19 09:33:46 2012 Aaron Patterson <aaron@tenderlovemaking.com>
2
3 * ext/psych/emitter.c (initialize): allow a configuration object to be
4 passed to the constructor so that mutation isn't required after
5 instantiation.
6
7 * ext/psych/lib/psych/handler.rb: add configuration object
8
9 * ext/psych/lib/psych/visitors/emitter.rb: use configuration object if
10 extra configuration is present.
11
0845b07 @tenderlove * ext/psych/parser.c (transcode_string): fix encoding index names.
authored
12 Fri May 18 01:28:21 2012 Aaron Patterson <aaron@tenderlovemaking.com>
13
14 * ext/psych/parser.c (transcode_string): fix encoding index names.
15 Thanks markizko for reporting.
16
620fc6d @tenderlove * ext/psych/lib/psych/visitors/to_ruby.rb: fix a bug with string
authored
17 Wed May 16 05:11:29 2012 Aaron Patterson <aaron@tenderlovemaking.com>
18
19 * ext/psych/lib/psych/visitors/to_ruby.rb: fix a bug with string
20 subclass dumping and loading.
21
22 * test/psych/test_array.rb: pertinent tests
23
24 * test/psych/test_string.rb: ditto
25
5be67a3 @tenderlove * ext/psych/lib/psych/visitors/to_ruby.rb: convert omap tagged maps to
authored
26 Wed May 16 01:31:21 2012 Aaron Patterson <aaron@tenderlovemaking.com>
27
28 * ext/psych/lib/psych/visitors/to_ruby.rb: convert omap tagged maps to
29 Psych::Omap objects rather than hashes. [Bug #6425]
30
31 * test/psych/test_omap.rb: pertinent test.
32
1606060 @tenderlove * ext/psych/lib/psych/visitors/yaml_tree.rb: keep a reference to
authored
33 Wed May 16 01:15:45 2012 Aaron Patterson <aaron@tenderlovemaking.com>
34
35 * ext/psych/lib/psych/visitors/yaml_tree.rb: keep a reference to
36 custom coders so that GC does not impact dumped yaml reference ids.
37
9316aa3 @tenderlove * ext/psych/lib/psych/json/yaml_events.rb: implicit styles should not
authored
38 Mon Apr 30 04:43:53 2012 Aaron Patterson <aaron@tenderlovemaking.com>
39
40 * ext/psych/lib/psych/json/yaml_events.rb: implicit styles should not
41 be changeable for JSON events.
42
62476ce @tenderlove * ext/psych/parser.c: fall back to any encoding if the external
authored
43 Sat Apr 7 02:07:00 2012 Aaron Patterson <aaron@tenderlovemaking.com>
44
45 * ext/psych/parser.c: fall back to any encoding if the external
46 encoding is wrong. [ruby-core:44163]
47 * test/psych/test_encoding.rb: fix test
48
f506d5e @tenderlove * ext/psych/lib/psych.rb (load, parse): stop parsing or loading after
authored
49 Fri Mar 9 06:29:22 2012 Aaron Patterson <aaron@tenderlovemaking.com>
50
51 * ext/psych/lib/psych.rb (load, parse): stop parsing or loading after
52 the first document has been parsed.
53
54 * test/psych/test_stream.rb: pertinent tests.
55
34d3b22 @tenderlove * ext/psych/lib/psych.rb (parse_stream, load_stream): if a block is
authored
56 Fri Mar 9 06:17:05 2012 Aaron Patterson <aaron@tenderlovemaking.com>
57
58 * ext/psych/lib/psych.rb (parse_stream, load_stream): if a block is
59 given, documents will be yielded to the block as they are parsed.
60 [ruby-core:42404] [Bug #5978]
61
62 * ext/psych/lib/psych/handlers/document_stream.rb: add a handler that
63 yields documents as they are parsed
64
65 * test/psych/test_stream.rb: corresponding tests.
66
6914073 @tenderlove * ext/psych/lib/psych/core_ext.rb: only extend Kernel if IRB is loaded
authored
67 Tue Mar 6 02:31:20 2012 Aaron Patterson <aaron@tenderlovemaking.com>
68
69 * ext/psych/lib/psych/core_ext.rb: only extend Kernel if IRB is loaded
70 in order to stop method pollution.
71
99b4689 @tenderlove * ext/psych/lib/psych.rb: default open YAML files with utf8 external
authored
72 Tue Feb 28 10:28:51 2012 Aaron Patterson <aaron@tenderlovemaking.com>
73
74 * ext/psych/lib/psych.rb: default open YAML files with utf8 external
75 encoding. [ruby-core:42967]
76 * test/psych/test_tainted.rb: ditto
77
3ef54d1 @tenderlove * ext/psych/parser.c: prevent a memory leak by protecting calls to
authored
78 Fri Feb 24 13:54:33 2012 Aaron Patterson <aaron@tenderlovemaking.com>
79
80 * ext/psych/parser.c: prevent a memory leak by protecting calls to
81 handler callbacks.
82 * test/psych/test_parser.rb: test to demonstrate leak.
83
9eb1264 @tenderlove * ext/psych/parser.c: set parser encoding based on the YAML input
authored
84 Fri Feb 24 08:08:38 2012 Aaron Patterson <aaron@tenderlovemaking.com>
85
86 * ext/psych/parser.c: set parser encoding based on the YAML input
87 rather than user configuration.
88 * test/psych/test_encoding.rb: corresponding tests.
89 * test/psych/test_parser.rb: ditto
90 * test/psych/test_tainted.rb: ditto
91
86e0260 @tenderlove * ext/psych/parser.c: removed external encoding setter, allow parser
authored
92 Fri Feb 10 03:41:31 2012 Aaron Patterson <aaron@tenderlovemaking.com>
93
94 * ext/psych/parser.c: removed external encoding setter, allow parser
95 to be reused.
96 * ext/psych/lib/psych/parser.rb: added external encoding setter.
97 * test/psych/test_parser.rb: test parser reuse
98
e2fcf9a @tenderlove * ext/psych/lib/psych/visitors/to_ruby.rb: Added support for loading
authored
99 Wed Jan 18 12:49:15 2012 Aaron Patterson <aaron@tenderlovemaking.com>
100
101 * ext/psych/lib/psych/visitors/to_ruby.rb: Added support for loading
102 subclasses of String with ivars
103 * ext/psych/lib/psych/visitors/yaml_tree.rb: Added support for dumping
104 subclasses of String with ivars
105 * test/psych/test_string.rb: corresponding tests
106
33ce865 @tenderlove * ext/psych/lib/psych/visitors/to_ruby.rb: BigDecimals can be restored
authored
107 Sun Dec 18 12:42:48 2011 Aaron Patterson <aaron@tenderlovemaking.com>
108
109 * ext/psych/lib/psych/visitors/to_ruby.rb: BigDecimals can be restored
110 from YAML.
111 * ext/psych/lib/psych/visitors/yaml_tree.rb: BigDecimals can be dumped
112 to YAML.
113 * test/psych/test_numeric.rb: tests for BigDecimal serialization
114
1caecdc @tenderlove * ext/psych/lib/psych/scalar_scanner.rb: Strings that look like dates
authored
115 Sun Dec 18 12:03:13 2011 Aaron Patterson <aaron@tenderlovemaking.com>
116
117 * ext/psych/lib/psych/scalar_scanner.rb: Strings that look like dates
118 should be treated as strings and not dates.
119
120 * test/psych/test_scalar_scanner.rb: corresponding tests.
121
40b1bc7 @tenderlove * ext/psych/lib/psych.rb (module Psych): parse and load methods take
authored
122 Wed Dec 7 08:04:31 2011 Aaron Patterson <aaron@tenderlovemaking.com>
123
124 * ext/psych/lib/psych.rb (module Psych): parse and load methods take
125 an optional file name that is used when raising Psych::SyntaxError
126 exceptions
127 * ext/psych/lib/psych/syntax_error.rb (module Psych): allow nil file
128 names and handle nil file names in the exception message
129 * test/psych/test_exception.rb (module Psych): Tests for changes.
130
7aad593 @tenderlove * ext/psych/parser.c (parse): parse method can take an option file
authored
131 Wed Nov 30 09:09:37 2011 Aaron Patterson <aaron@tenderlovemaking.com>
132
133 * ext/psych/parser.c (parse): parse method can take an option file
134 name for use in exception messages.
135 * test/psych/test_parser.rb: corresponding tests.
136
363fad7 @tenderlove * ext/psych/lib/psych.rb: remove autoload from psych
authored
137 Tue Nov 22 04:46:22 2011 Aaron Patterson <aaron@tenderlovemaking.com>
138
139 * ext/psych/lib/psych.rb: remove autoload from psych
140 * ext/psych/lib/psych/json.rb: ditto
141
312965d @tenderlove * ext/psych/lib/psych.rb (load_file): make sure opened yaml files are
authored
142 Thu Nov 17 10:36:46 2011 Aaron Patterson <aaron@tenderlovemaking.com>
143
144 * ext/psych/lib/psych.rb (load_file): make sure opened yaml files are
145 also closed. [ruby-core:41088]
146
d7713a2 @tenderlove * ext/psych/lib/psych/tree_builder.rb: dump complex numbers,
authored
147 Wed Nov 9 04:52:16 2011 Aaron Patterson <aaron@tenderlovemaking.com>
148
149 * ext/psych/lib/psych/tree_builder.rb: dump complex numbers,
150 rationals, etc with reference ids.
151 * ext/psych/lib/psych/visitors/yaml_tree.rb: ditto
152 * ext/psych/lib/psych/visitors/to_ruby.rb: loading complex numbers,
153 rationals, etc with reference ids.
154 * test/psych/test_object_references.rb: corresponding tests
155
8dd7448 @tenderlove * ext/psych/lib/psych/scalar_scanner.rb: make sure strings that look
authored
156 Mon Nov 7 20:31:52 2011 Aaron Patterson <aaron@tenderlovemaking.com>
157
158 * ext/psych/lib/psych/scalar_scanner.rb: make sure strings that look
159 like base 60 numbers are serialized as quoted strings.
160 * test/psych/test_string.rb: test for change.
161
524da34 @tenderlove adding more information to the syntax error exception
authored
162 Wed Oct 5 02:50:27 2011 Aaron Patterson <aaron@tenderlovemaking.com>
163
164 * ext/psych/lib/psych/syntax_error.rb: Add file, line, offset, and
165 message attributes during parse failure.
166 * ext/psych/parser.c: Update parser to raise exception with correct
167 values.
168 * test/psych/test_exception.rb: corresponding tests.
169
64f27ed @tenderlove Using context_mark from the parser struct for accuruate line / column
authored
170 Wed Oct 5 01:52:16 2011 Aaron Patterson <aaron@tenderlovemaking.com>
171
172 * ext/psych/parser.c (parse): Use context_mark for indicating error
173 line and column.
174
cda70ad @tenderlove Use `yaml` rather than `to_yaml` to avoid ENGINE changes removing this
authored
175 Tue Oct 4 06:29:55 2011 Aaron Patterson <aaron@tenderlovemaking.com>
176
177 * ext/psych/lib/psych.rb: calling `yaml` rather than `to_yaml`.
178 * ext/psych/lib/psych/nodes/node.rb: Rename `to_yaml` to just `yaml`
179 in order to avoid YAML::ENGINE switching from replacing this method.
180 * test/psych/helper.rb: fix tests for method name change.
181 * test/psych/test_document.rb: ditto
182 * test/psych/visitors/test_emitter.rb: ditto
183
2422a9f @tenderlove Avoid accepting incorrect floating point values.
authored
184 Tue Oct 4 06:20:19 2011 Aaron Patterson <aaron@tenderlovemaking.com>
185
186 * ext/psych/lib/psych/scalar_scanner.rb: Match values against the
187 floating point spec defined in YAML to avoid erronious parses.
188 * test/psych/test_numeric.rb: corresponding test.
189
68a91d5 @tenderlove * ext/psych/lib/psych/visitors/to_ruby.rb: ToRuby visitor can be
authored
190 Tue Oct 4 05:59:24 2011 Aaron Patterson <aaron@tenderlovemaking.com>
191
192 * ext/psych/lib/psych/visitors/to_ruby.rb: ToRuby visitor can be
193 constructed with a ScalarScanner.
194 * ext/psych/lib/psych/visitors/yaml_tree.rb: ScalarScanner can be
195 passed to the YAMLTree visitor.
196
89ff730 @tenderlove adding history from ruby-core
authored
197 Tue Oct 4 05:47:23 2011 Aaron Patterson <aaron@tenderlovemaking.com>
198
199 * ext/psych/lib/psych/visitors/to_ruby.rb: Define Regexp::NOENCODING
200 for 1.9.2 backwards compatibility.
201 * ext/psych/lib/psych/visitors/yaml_tree.rb: Fix Date string
202 generation for 1.9.2 backwards compatibility.
203
c9cd187 @tenderlove Strings tagged binary will be emitted as binary. Fixes #27
authored
204 Fri Sep 2 04:05:25 2011 Aaron Patterson <aaron@tenderlovemaking.com>
205
206 * ext/psych/lib/psych/visitors/yaml_tree.rb: emit strings tagged as
207 ascii-8bit as binary in YAML.
208 * test/psych/test_string.rb: corresponding test.
209
fe65329 @tenderlove * ext/psych/lib/psych/nodes/node.rb: default `to_yaml` encoding to be
authored
210 Thu Aug 25 06:11:35 2011 Aaron Patterson <aaron@tenderlovemaking.com>
211
212 * ext/psych/lib/psych/nodes/node.rb: default `to_yaml` encoding to be
213 UTF-8.
214 * test/psych/test_encoding.rb: test yaml dump encoding.
215
478a7ac @tenderlove fixing cyclic object reference handling. Thanks to @CvX for the test. f...
authored
216 Wed Jun 22 03:20:52 2011 Aaron Patterson <aaron@tenderlovemaking.com>
217
218 * ext/psych/lib/psych/visitors/to_ruby.rb: Fix cyclic references of
219 objects. Thanks to CvX for reporting the bug and a test case.
220 * test/psych/test_object.rb: test for cyclic object references.
221
ef6db4f @tenderlove bumping version and copying changelog from ruby core
authored
222 Thu Jun 9 10:57:03 2011 Aaron Patterson <aaron@tenderlovemaking.com>
ec8ae73 @tenderlove initial commit
authored
223
ef6db4f @tenderlove bumping version and copying changelog from ruby core
authored
224 * ext/psych/lib/psych/visitors/to_ruby.rb: Hash subclasses can be read
225 from YAML files.
226 * ext/psych/lib/psych/visitors/yaml_tree.rb: Hash subclasses can be
227 dumped to YAML files.
228 * test/psych/test_hash.rb: corresponding test.
229
230 Thu Jun 9 09:18:51 2011 Aaron Patterson <aaron@tenderlovemaking.com>
231
232 * ext/psych/lib/psych/visitors/to_ruby.rb: Ruby modules can be loaded
233 from YAML files.
234 * ext/psych/lib/psych/visitors/yaml_tree.rb: Ruby modules can be
235 dumped to YAML files.
236 * test/psych/test_class.rb: corresponding test.
237
238 Thu Jun 9 09:05:04 2011 Aaron Patterson <aaron@tenderlovemaking.com>
239
240 * ext/psych/lib/psych/visitors/to_ruby.rb: Ruby classes can be loaded
241 from YAML files.
242 * ext/psych/lib/psych/visitors/yaml_tree.rb: Ruby classes can be
243 dumped to YAML files.
244 * test/psych/test_class.rb: corresponding test.
245
246 Mon Jun 6 09:39:43 2011 Aaron Patterson <aaron@tenderlovemaking.com>
247
248 * ext/psych/parser.c (parse): release event objects to plug memory
249 leak. Thanks Mark J. Titorenko!
Something went wrong with that request. Please try again.