tenderlove
8968bd14fa
* ext/psych/parser.c (parse): strings from psych have proper taint
...
markings.
* test/psych/test_tainted.rb: test for string taint
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-21 19:17:46 +00:00
akr
4520a3408a
* ext/psych/parser.c: parenthesize macro arguments.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-22 11:10:34 +00:00
tenderlove
18e3c52bc4
reverting r30628 since this seems like a bug in libyaml
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-22 22:43:41 +00:00
tenderlove
7b876e65ed
* ext/psych/parser.c (parse): fixing off-by-one error on line numbers
...
in parse exceptions. [ruby-core:34690]
* test/psych/test_parser.rb: test for error
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-22 02:23:12 +00:00
tenderlove
8dd3a4af66
* ext/psych/parser.c (parse): add the file name to the exception when
...
parse errors occur.
* test/psych/test_parser.rb: test for parse error file name
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-22 01:26:40 +00:00
tenderlove
0331314d27
* ext/psych/parser.c (parse): fix assertion error when reusing a
...
parser after an exception has been raised
* test/psych/test_parser.rb: test for assertion error
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-22 01:13:52 +00:00
tenderlove
0b38e9bc9d
* ext/psych/lib/psych/parser.rb (Mark): Adding a class to wrap
...
marker information
* ext/psych/parser.c (mark): Add a method to return the mark object
for the parser
* test/psych/test_parser.rb: tests for the Mark class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-17 19:44:31 +00:00
tenderlove
c1b29ff5c6
* ext/psych/lib/psych.rb: Adding Psych::Exception
...
* ext/psych/parser.c: Do not allow extern_encoding to be set twice
* test/psych/test_parser.rb: test
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-19 03:24:13 +00:00
tenderlove
15335f8aaa
* ext/psych/emitter.c: using xmalloc and xfree for memory allocation
...
* ext/psych/lib/psych/nodes/stream.rb: encoding should be read / write
* ext/psych/parser.c: supporting UTF-16 and UTF-16 + BOM
* test/psych/test_parser.rb: testing UTF-16 and UTF-16 + BOM
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-19 03:12:03 +00:00
mame
e181ae5391
* process.c: suppress warning for signed and unsigned type
...
inconsistency.
* ext/psych/parser.c: ditto.
* ext/sdbm/_sdbm.c: ditto.
* ext/syck/rubyext.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-17 13:21:17 +00:00
nobu
c20a118c50
* ext/psych/parser.c (PSYCH_TRANSCODE): get rid of bare use of gcc
...
extension.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-11 00:53:16 +00:00
nobu
60d460ead9
* ext/psych/parser.c: fixed broken indent.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-11 00:53:11 +00:00
tenderlove
0de068d03e
* ext/psych/parser.c (parse): Return strings encoded as
...
Encoding.default_internal if set.
* test/psych/test_encoding.rb: Tests for encoding change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-10 16:22:52 +00:00
tenderlove
b9617bf7cb
* ext/psych/parser.c: Fixing a segv in test-all. Thanks Yusuke!
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-10 23:50:50 +00:00
tenderlove
052f204dcb
* ext/psych/parser.c: parse raises a TypeError when nil is passed in.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-09 16:09:55 +00:00
nobu
f3b9acda21
* ext/psych/*.c: not executable.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-08 06:32:08 +00:00
naruse
e43b94231b
* ext/psych/{emitter,parser,psych}.c: move variable
...
declaration to the first of the block.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-29 18:58:22 +00:00
tenderlove
b9b923ca94
* ext/psych/*: importing Psych to trunk
...
* test/psych/*: ditto
* lib/psych/*: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-28 21:49:37 +00:00