Skip to content

HTTPS clone URL

Subversion checkout URL

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