hsbt
3a78169e3f
* ext/psych/lib/psych.rb: [DOC] Fix a dead link in Psych by @rochefort [ci skip][fix GH-593]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-13 00:59:40 +00:00
hsbt
7a01bfcdba
* ext/psych/psych.gemspec: update gemspec for psych-2.0.5
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-03-28 00:23:13 +00:00
hsbt
e221c6cefc
* ext/psych/lib/psych.rb: Merge psych-2.0.5. bump version to
...
libyaml-0.1.6 for CVE-2014-2525.
* ext/psych/yaml/config.h: ditto.
* ext/psych/yaml/scanner.c: ditto.
* ext/psych/yaml/yaml_private.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-03-28 00:19:15 +00:00
tenderlove
db17d694ea
* ext/psych/lib/psych/visitors/yaml_tree.rb: support dumping Encoding
...
objects.
* ext/psych/lib/psych/visitors/to_ruby.rb: support loading Encoding
objects.
* test/psych/test_encoding.rb: add test
* ext/psych/lib/psych.rb: add version
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-03-01 02:09:53 +00:00
nobu
6ef6dab36d
ext/psych/yaml: suppress warnings
...
* ext/psych/yaml/emitter.c (WRITE_BREAK, PUT_BREAK): suppress
unused-value warnings.
* ext/psych/yaml/parser.c, ext/psych/yaml/scanner.c: suppress
unused-but-set-variable warnings.
* ext/psych/yaml/yaml_private.h (STACK_EMPTY): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-02-16 07:53:20 +00:00
nobu
897a42b063
yaml/api.c: fix typo
...
* ext/psych/yaml/api.c (yaml_emitter_delete): fix typo 'empty'
with 'emitter'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-02-12 09:01:28 +00:00
nobu
5c0d438fd3
* ext/psych/yaml/config.h (PACKAGE_VERSION): update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-02-05 01:17:31 +00:00
nobu
215b9e760a
yaml/yaml_private.h: include ruby/extconf.h
...
* ext/psych/yaml/yaml_private.h: need ruby/extconf.h for
HAVE_CONFIG_H.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-02-05 01:17:29 +00:00
nobu
990ba47c24
yaml/api.c, yaml/loader.c: integer overflow
...
* ext/psych/yaml/api.c (yaml_scalar_event_initialize): fix possible
integer overflow.
(yaml_document_add_scalar): ditto.
(yaml_document_add_sequence): ditto.
(yaml_document_add_mapping): ditto.
* ext/psych/yaml/loader.c (yaml_parser_load_scalar): ditto.
(yaml_parser_load_sequence): ditto.
(yaml_parser_load_mapping): ditto.
* ext/psych/yaml/scanner.c (yaml_parser_roll_indent): suppress
warnigs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-02-05 01:17:28 +00:00
nobu
0483b29a8b
yaml/emitter.c: constify, r37936
...
* ext/psych/yaml/emitter.c (yaml_emitter_write_indicator): constify.
* ext/psych/yaml/emitter.c (yaml_emitter_write_block_scalar_hints):
ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-02-05 01:17:26 +00:00
nobu
1af28b7b7e
* remove trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-02-05 01:04:25 +00:00
tenderlove
bfda9402a9
* ext/psych/lib/psych.rb: New release of psych.
...
* ext/psych/psych.gemspec: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-02-04 19:24:50 +00:00
tenderlove
e8132aa4d7
* ext/psych/yaml/emitter.c: merge libyaml 0.1.5
...
* ext/psych/yaml/loader.c: ditto
* ext/psych/yaml/parser.c: ditto
* ext/psych/yaml/reader.c: ditto
* ext/psych/yaml/scanner.c: ditto
* ext/psych/yaml/writer.c: ditto
* ext/psych/yaml/yaml_private.h: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-02-04 19:18:01 +00:00
hsbt
0558b8a5c4
* ext/psych/lib/psych.rb: fix typo by @jwworth [fix GH-500]
...
* lib/rake/file_list.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-19 05:48:33 +00:00
hsbt
d1ab866d4a
* ext/nkf/nkf-utf8/nkf.c: fix typo by @windwiny [fix GH-506]
...
* ext/openssl/ossl_ssl.c: ditto
* ext/psych/yaml/scanner.c: ditto
* ext/socket/init.c: ditto
* ext/socket/socket.c: ditto
* ext/tk/tcltklib.c: ditto
* ext/win32ole/win32ole.c: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-19 05:43:23 +00:00
tenderlove
b90076e85c
* ext/psych/lib/psych/visitors/yaml_tree.rb: dumping strings with
...
quotes should not have changed. [ruby-core:59316] [Bug #9300 ]
* ext/psych/lib/psych.rb: fixed missing require.
* test/psych/test_string.rb: test
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-09 00:56:45 +00:00
tenderlove
7c6e4f8f38
* ext/psych/lib/psych/visitors/to_ruby.rb: anonymous structs
...
should be able to roundtrip. Thanks @splattael!
* test/psych/test_object_references.rb: test for change
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-09 00:54:37 +00:00
charliesome
75f4731f90
* benchmark/bm_so_meteor_contest.rb: [DOC] Fix a few typos
...
* ext/fiddle/lib/fiddle/import.rb: ditto
* ext/psych/lib/psych.rb: ditto
* ext/psych/lib/psych/nodes/sequence.rb: ditto
* ext/tk/lib/multi-tk.rb: ditto
* ext/tk/lib/tcltk.rb: ditto
Closes GH-490
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-28 08:25:28 +00:00
a_matsuda
c0abb5e5c3
* ext/psych/yaml/emitter.c: Fix typo in the variable name
...
s/preceeded/preceded/
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14 01:19:06 +00:00
tenderlove
599c3a9245
* ext/psych/lib/psych.rb: psych version 2.0.2
...
* ext/psych/psych.gemspec: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-26 22:14:34 +00:00
tenderlove
079ff69ca0
* ext/psych/lib/psych/scalar_scanner.rb: fix support for negative
...
years.
* ext/psych/lib/psych/visitors/yaml_tree.rb: ditto
* test/psych/test_date_time.rb: test for change.
Fixes: https://github.com/tenderlove/psych/issues/168
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-26 21:41:48 +00:00
tenderlove
725d6f4970
* ext/psych/lib/psych/scalar_scanner.rb: fix regexp for matching TIME
...
strings.
* test/psych/test_date_time.rb: test for change.
Fixes: https://github.com/tenderlove/psych/issues/171
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-26 19:48:03 +00:00
tenderlove
9ae2651d19
* ext/psych/lib/psych/visitors/to_ruby.rb: process merge keys before
...
reviving objects. Fixes GH psych #168
* test/psych/test_merge_keys.rb: test for change
https://github.com/tenderlove/psych/issues/168
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-05 19:15:40 +00:00
tenderlove
06c6dcee25
* ext/psych/lib/psych/visitors/yaml_tree.rb: make less garbage when
...
testing if a string is binary.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-29 18:25:57 +00:00
tenderlove
e0c6dd91a4
* ext/psych/lib/psych/visitors/yaml_tree.rb: string subclasses should
...
not be considered to be binary. Fixes Psych / GH 166
https://github.com/tenderlove/psych/issues/166
* test/psych/test_string.rb: test for fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-29 18:10:24 +00:00
zzak
40424c2600
* ext/psych/yaml/yaml.h: [DOC] merge upstream typo fix by @GreenGeorge
...
https://github.com/tenderlove/psych/pull/161
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-09-20 14:51:35 +00:00
tenderlove
fed428007c
updating psych version
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-09-18 22:17:15 +00:00
tenderlove
8579a33966
* ext/psych/lib/psych/visitors/yaml_tree.rb: use double quotes when
...
strings start with special characters.
[Fixes GH-157] https://github.com/tenderlove/psych/issues/157
* test/psych/test_string.rb: test for change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-09-05 17:39:53 +00:00
tenderlove
48602d1dbf
* ext/psych/lib/psych/scalar_scanner.rb: invalid floats should be
...
treated as strings.
[Fixes GH-156] https://github.com/tenderlove/psych/issues/156
* test/psych/test_string.rb: test for change
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-28 17:42:38 +00:00
zzak
826df7f233
* ext/psych/lib/psych*: [DOC] Capitalize "Ruby" in documentation
...
Patch by Dave Worth https://github.com/ruby/ruby/pull/341
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-19 02:27:25 +00:00
tenderlove
c62aca26c5
* ext/psych/lib/psych/visitors/yaml_tree.rb: register time objects so
...
they are referenced as ids during output.
* test/psych/test_date_time.rb: corresponding test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-05 19:51:12 +00:00
ktsj
edb98f8b91
fix typos. Patch by k_takata.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-19 03:10:21 +00:00
tenderlove
a1cc022e79
* ext/psych/lib/psych/visitors/yaml_tree.rb: fix syntax error.
...
Thanks @spastorino! [ruby-core:55011]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-15 20:48:15 +00:00
nobu
ad6ae1db0a
yaml_tree.rb: fix warning message
...
* ext/psych/lib/psych/visitors/yaml_tree.rb: fix warning message.
Class.create does not exist.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-15 16:51:54 +00:00
tenderlove
4616913dc5
* ext/psych/lib/psych/visitors/yaml_tree.rb: only emit warnings when
...
-w is enabled.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-15 16:25:39 +00:00
tenderlove
3f51cff4f9
* ext/psych/lib/psych/visitors/yaml_tree.rb: adding backwards
...
compatible YAMLTree.new method
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-14 18:57:23 +00:00
tenderlove
7ceafcbdf5
* ext/psych/lib/psych.rb: Adding Psych.safe_load for loading a user
...
defined, restricted subset of Ruby object types.
* ext/psych/lib/psych/class_loader.rb: A class loader for
encapsulating the logic for which objects are allowed to be
deserialized.
* ext/psych/lib/psych/deprecated.rb: Changes to use the class loader
* ext/psych/lib/psych/exception.rb: ditto
* ext/psych/lib/psych/json/stream.rb: ditto
* ext/psych/lib/psych/nodes/node.rb: ditto
* ext/psych/lib/psych/scalar_scanner.rb: ditto
* ext/psych/lib/psych/stream.rb: ditto
* ext/psych/lib/psych/streaming.rb: ditto
* ext/psych/lib/psych/visitors/json_tree.rb: ditto
* ext/psych/lib/psych/visitors/to_ruby.rb: ditto
* ext/psych/lib/psych/visitors/yaml_tree.rb: ditto
* ext/psych/psych_to_ruby.c: ditto
* test/psych/helper.rb: ditto
* test/psych/test_safe_load.rb: tests for restricted subset.
* test/psych/test_scalar_scanner.rb: ditto
* test/psych/visitors/test_to_ruby.rb: ditto
* test/psych/visitors/test_yaml_tree.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-14 17:26:41 +00:00
tenderlove
0b8f727d7b
changing variable name
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-14 16:58:50 +00:00
akr
788b45da3e
* ext/-test-/debug/depend: New file.
...
* ext/-test-/exception/depend: Ditto.
* ext/-test-/printf/depend: Ditto.
* ext/-test-/string/depend: Ditto.
* ext/coverage/depend: Ditto.
* ext/io/console/depend: Ditto.
* ext/io/nonblock/depend: Ditto.
* ext/io/wait/depend: Ditto.
* ext/openssl/depend: Ditto.
* ext/pathname/depend: Ditto.
* ext/psych/depend: Ditto.
* ext/zlib/depend: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-14 10:48:08 +00:00
tenderlove
2a58706e2d
* ext/psych/lib/psych/visitors/yaml_tree.rb: fix symbol keys in coder
...
emission. Thanks @tjwallace
* test/psych/test_coder.rb: test for change
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-05 18:12:52 +00:00
tenderlove
476a62fbbe
* ext/psych/lib/psych/exception.rb: there should be only one exception
...
base class. Fixes tenderlove/psych #125
* ext/psych/lib/psych.rb: require the correct exception class
* ext/psych/lib/psych/syntax_error.rb: ditto
* ext/psych/lib/psych/visitors/to_ruby.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-05 17:55:53 +00:00
tenderlove
7a7bb64464
* ext/psych/lib/psych/visitors/to_ruby.rb: correctly register
...
self-referential strings. Fixes tenderlove/psych #135
* test/psych/test_string.rb: appropriate test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-05 17:11:21 +00:00
zzak
6213b8370c
* lib/psych.rb: specify in rdoc what object is returned in parser
...
By Adam Stankiewicz [Github tenderlove/psych#133 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-01 00:18:50 +00:00
zzak
9460a750e1
* ext/psych/lib/psych.rb: rdoc for Psych overview by Adam Stankiewicz
...
[Github tenderlove/psych#134 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-28 18:27:00 +00:00
zzak
e39caa7550
* ext/psych/lib/psych/y.rb: Document Kernel#y by Adam Stankiewicz
...
[Github tenderlove/psych#118 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-16 16:19:46 +00:00
tenderlove
1c836f811c
* ext/psych/lib/psych/visitors/yaml_tree.rb: fixing string quotation
...
when dumping Ruby strings. Thanks Ingy
* test/psych/test_psych.rb: appropriate tests.
* test/psych/test_yaml.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-07 23:54:29 +00:00
tenderlove
7a68f53dc6
* ext/psych/lib/psych/visitors/yaml_tree.rb: change output reference
...
ids to be sequential numbers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-07 23:52:01 +00:00
tenderlove
679a646e37
* ext/psych/lib/psych/scalar_scanner.rb: use constants rather than
...
calculating Inf and NaN.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-17 01:49:55 +00:00
zzak
c12d66f0d1
* ext/psych/yaml/scanner.c: Fix typos, patch by James Dabbs
...
[Github tenderlove/psych#118 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-13 07:47:10 +00:00
tenderlove
0a60805af5
* ext/psych/lib/psych/visitors/to_ruby.rb: merge key values that
...
contain something besides a hash should be left in tact.
* test/psych/test_merge_keys.rb: test for change
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-12 00:00:12 +00:00