aboutsummaryrefslogtreecommitdiffstats
path: root/ext/psych
Commit message (Collapse)AuthorAgeFilesLines
* ext/psych/extconf.rb: braced VPATH is for nmake onlyNobuyoshi Nakada2019-12-051-1/+1
|
* Nmake needs `VPATH`Nobuyoshi Nakada2019-11-291-2/+3
|
* Add dependency on bundled yaml.h when usingNobuyoshi Nakada2019-11-292-1/+6
|
* Revert "Update dependencies"Vít Ondruch2019-11-221-45/+0
| | | | | | | | This reverts commit e1b234148829f65bea9f5ecc7018beb782ea6023. This allows to build Psych against system libyaml again on Fedora. [Bug #16359]
* Update dependenciesNobuyoshi Nakada2019-11-181-0/+45
|
* [ruby/psych] Add a note about safe_loadAaron Patterson2019-11-121-0/+4
| | | | https://github.com/ruby/psych/commit/0910ae5575
* [ruby/psych] Remove taint supportJeremy Evans2019-11-122-20/+2
| | | | | | | | | | | | Ruby 2.7 deprecates taint and it no longer has an effect. The lack of taint support should not cause a problem in previous Ruby versions. I'm not sure if the untaint calls in deduplicate are still needed after the removal of tainting in the parser. If they are not needed, they should be removed. https://github.com/ruby/psych/commit/73c1a2b4e0
* [ruby/psych] Set required_ruby_version to 2.4.0Jean Boussier2019-11-121-1/+1
| | | | https://github.com/ruby/psych/commit/4f1746a3c6
* ext/psych/yaml/api.c: Suppress a "variable set but not used" warningYusuke Endoh2019-08-241-1/+3
| | | | | | | | | | | ``` compiling ../.././ext/psych/yaml/api.c ../.././ext/psych/yaml/api.c: In function 'yaml_document_delete': ../.././ext/psych/yaml/api.c:1122:7: warning: variable 'context' set but not used [-Wunused-but-set-variable] } context; ^~~~~~~ ``` https://rubyci.org/logs/rubyci.s3.amazonaws.com/ubuntu1604/ruby-master/log/20190824T093004Z.log.html.gz
* ext/psych/yaml/loader.c: Cast the difference of pointers to intYusuke Endoh2019-08-051-3/+3
| | | | | instead of casting a pointer to int. Follow up of 39622232c7542d062f79277a11f6b8b6b6cfd994.
* Suppress warnings of bundled libyaml.Hiroshi SHIBATA2019-08-042-4/+4
|
* yaml few build warning fixesDavid Carlier2019-08-041-5/+5
| | | | Closes: https://github.com/ruby/ruby/pull/2283
* [ruby/psych] Get rid of C90 featureNobuyoshi Nakada2019-07-251-1/+2
| | | | | | | | | | | | | | | For ruby 2.6 and earlier. https://travis-ci.org/ruby/psych/jobs/562435717#L245-L248 ``` ../../../../ext/psych/psych_parser.c: In function ‘make_exception’: ../../../../ext/psych/psych_parser.c:87:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] VALUE ePsychSyntaxError = rb_const_get(mPsych, rb_intern("SyntaxError")); ^ ``` https://github.com/ruby/psych/commit/aa457443b8
* [ruby/psych] Deduplicate hash keys if they're stringsJean Boussier2019-07-251-1/+23
| | | | https://github.com/ruby/psych/commit/0414982ffd
* [ruby/psych] Drop to support fat gem support.Hiroshi SHIBATA2019-07-251-5/+1
| | | | | | ref. https://github.com/ruby/bigdecimal/pull/149 https://github.com/ruby/psych/commit/25ae263252
* [ruby/psych] Do not use add_development_dependency.Hiroshi SHIBATA2019-07-251-5/+0
| | | | https://github.com/ruby/psych/commit/939754237f
* Include ruby/assert.h in ruby/ruby.h so that assertions can be thereNobuyoshi Nakada2019-07-141-0/+5
|
* Do not allocate a string to check if a scalar is an integerJean Boussier2019-06-251-9/+7
|
* Remove string_cache in ScalarScannerJean Boussier2019-06-251-10/+1
|
* Reduce string allocations in scalar_scannerJean Boussier2019-06-251-17/+15
|
* Removed CHANGELOG from rdoc files.SHIBATA Hiroshi2019-06-251-1/+1
|
* Retired to write CHANGELOG.rdoc. Because It has no update from 2015.SHIBATA Hiroshi2019-06-251-1/+1
|
* Dump Hash ivars before elementsAaron Patterson2019-06-251-9/+9
| | | | | When the Hash is revived, the ivars will be set before elements. This is for the case when the hash setter depends on ivars set on the hash.
* Round trip exception backtracesAaron Patterson2019-06-252-0/+5
| | | | This commit allows exception backtraces to round trip
* Refactor exception dumpingAaron Patterson2019-06-251-28/+17
|
* Dumping the backtrace never worked, so remove itAaron Patterson2019-06-251-14/+10
| | | | Dumping the backtrace for exceptions never worked, so lets remove it.
* Make psych.so deterministicJeremy Evans2019-06-021-1/+1
| | | | Fixes Ruby Bug #15890
* syntax error can move, so do not cacheAaron Patterson2019-04-231-2/+2
|
* Removed moving toplevel header since r12501nobu2019-02-081-5/+5
| | | | | | | Moving public headers was 12-years ago, no depend files would expect ruby.h in the top source directory now. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Bump version to psych 3.1.0.hsbt2018-12-182-3/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge upstream from ruby/psychhsbt2018-12-041-9/+24
| | | | | | * https://github.com/ruby/psych/pull/379 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Make rubygems follow the upstream of psychnobu2018-11-111-12/+12
| | | | | | And merge psych again. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revert "Merge psych from upstream."mame2018-11-101-12/+12
| | | | | | | | This reverts commit db3101ff301b8e6f52170df0891f4fc35579354f. This caused build error: http://ci.rvm.jp/results/trunk-test@ruby-sky3/1452708 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge psych from upstream.hsbt2018-11-101-12/+12
| | | | | | * https://github.com/ruby/psych/pull/378 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge Pysch-3.1.0.pre2 from ruby/psych.hsbt2018-10-203-7/+22
| | | | | | * Added deprecated warnings for the new interface of keyword argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Re-try to add workaround for warningskazu2018-09-011-1/+1
| | | | | | | | | ``` .../ext/psych/lib/psych/versions.rb:4: warning: already initialized constant Psych::VERSION .../.ext/common/psych/versions.rb:4: warning: previous definition of VERSION was here ``` git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revert "Try to add workaround for warnings"kazu2018-08-311-1/+1
| | | | | | This reverts commit a5e5cfa3f650d4e78fb50e2df15c102ab56fca3c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Try to add workaround for warningskazu2018-08-311-1/+1
| | | | | | | | | ``` .../ext/psych/lib/psych/versions.rb:4: warning: already initialized constant Psych::VERSION .../.ext/common/psych/versions.rb:4: warning: previous definition of VERSION was here ``` git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge psych-3.1.0.pre1.hsbt2018-08-2712-116/+196
| | | | | | | | | * Update bundled libyaml-0.2.1 from 0.1.7. https://github.com/ruby/psych/pull/368 * Unify Psych's API: To use keyword arguments with method call. https://github.com/ruby/psych/pull/358 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge Pysch 3.0.3.pre1.hsbt2018-04-2812-11/+47
| | | | | | | | | I added the following additional commits from 3.0.3.pre1: * https://github.com/ruby/psych/pull/356 * https://github.com/ruby/psych/pull/357 * https://github.com/ruby/psych/pull/359 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* no ID cache in Init functionsnobu2018-02-162-0/+2
| | | | | | Init functions are called only once, cache is useless. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/psych/.gitignore: removed stale file [ci skip]nobu2018-01-261-11/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge psych-3.0.2 from ruby/psych.hsbt2017-12-193-9/+19
| | | | | | | | | | | It version changed fallback option to keywoad argument on `Yaml.load` method. It break backword compatiblity. see detailed discuttion: https://github.com/ruby/psych/issues/340 From: SHIBATA Hiroshi <hsbt@ruby-lang.org> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge psych-3.0.0.hsbt2017-12-014-6/+15
| | | | | | See NEWS file for this update details. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* psych_parser.c: fix compile errornobu2017-11-271-3/+3
| | | | | | | * ext/psych/psych_parser.c (parse): fix declarations after statement, which cause compile error on mswin. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge psych-3.0.0.beta4 from upstream.hsbt2017-11-278-27/+123
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* null byte at Psych::Emitter.hsbt2017-10-312-8/+8
| | | | | | | Check null byte. Patched by tommy (Masahiro Tomita). [Bug #13993][ruby-dev:50285] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix a typo [ci skip]kazu2017-10-221-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* kill "discards ‘const’ qualifier" warningkosaki2017-10-211-1/+1
| | | | | | | | | | | Kill following warning. ../../../ext/psych/yaml/emitter.c: In function ‘yaml_emitter_write_block_scalar_hints’: ../../../ext/psych/yaml/emitter.c:2196:20: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default] chomp_hint = "-"; ^ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* kill "discards ‘const’ qualifier" warningkosaki2017-10-211-2/+2
| | | | | | | | | | | Kill following warning. ../../../ext/psych/yaml/emitter.c: In function ‘yaml_emitter_write_folded_scalar’: ../../../ext/psych/yaml/emitter.c:2283:5: warning: passing argument 2 of ‘yaml_emitter_write_indicator’ discards ‘const’ qualifier from pointer target type [enabled by default] if (!yaml_emitter_write_indicator(emitter, ">", 1, 0, 0)) ^ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e