summaryrefslogtreecommitdiff
path: root/ext/psych
Commit message (Collapse)AuthorAgeFilesLines
* Fix -Wundef warnings for patterns `#if HAVE`Benoit Daloze2021-05-041-1/+1
| | | | | | * See [Feature #17752] * Using this to detect them: git grep -P 'if\s+HAVE' | grep -Pv 'HAVE_LONG_LONG|/ChangeLog|HAVE_TYPEOF'
* dependency updates卜部昌平2021-04-131-5/+0
|
* Text files should end with a newlineNobuyoshi Nakada2021-03-301-1/+1
|
* Expose scheduler as public interface & bug fixes. (#3945)Samuel Williams2021-02-091-70/+115
| | | | | | | | | * Rename `rb_scheduler` to `rb_fiber_scheduler`. * Use public interface if available. * Use `rb_check_funcall` where possible. * Don't use `unblock` unless the fiber was non-blocking.
* [ruby/psych] Bump version to 3.3.0Hiroshi SHIBATA2020-12-231-1/+1
| | | | https://github.com/ruby/psych/commit/0abce07b90
* [ruby/psych] Optimize cache with `compare_by_identity`Marc-Andre Lafortune2020-12-232-2/+2
| | | | | Using `compare_by_identity` gives a 4x performance boost on cache hits. Benchmark in https://github.com/JuanitoFatas/fast-ruby/issues/189
* [ruby/psych] Make Ractor-ready.Marc-Andre Lafortune2020-12-233-6/+43
| | | | | | | Config is Ractor-local. Benchmarking reveals that using `Ractor.local_storage` for storing cache is similar to accessing a constant (~15% slower).
* [ruby/psych] Don't use instance variables directly for configMarc-Andre Lafortune2020-12-231-9/+9
|
* [ruby/psych] Avoid methods depending on bindingsMarc-Andre Lafortune2020-12-231-3/+5
| | | | Improves Ractor-readiness.
* [ruby/psych] Freeze constants.Marc-Andre Lafortune2020-12-232-3/+3
| | | | Improves Ractor-readiness.
* Strip trailing spaces [ci skip]Nobuyoshi Nakada2020-12-191-3/+3
|
* Merge Psych-3.2.1 from ruby/psychHiroshi SHIBATA2020-12-143-7/+24
|
* Appended a newline to suppress newline-eof warningNobuyoshi Nakada2020-10-061-1/+1
|
* [ruby/psych] Forward keyword arguments in load_file and load_streamJean Boussier2020-09-251-5/+5
| | | | https://github.com/ruby/psych/commit/4e1dd37f09
* [ruby/psych] Bump version to 3.2.0Hiroshi SHIBATA2020-09-251-1/+1
| | | | https://github.com/ruby/psych/commit/181a727c90
* [ruby/psych] Revert psych versionSzymonKowalczyk2020-09-251-1/+1
| | | | https://github.com/ruby/psych/commit/55a294fcd0
* [ruby/psych] Update SNAKEYAML CVE-2017-18640SzymonKowalczyk2020-09-251-2/+2
| | | | | to version 1.26 https://github.com/ruby/psych/commit/b2802135e7
* Remove private_iv_getCharles Oliver Nutter2020-09-252-13/+1
| | | | | | | | | | | | | | | | | | | | | The only remaining use of this function was to get the internal message object from an exception's hidden `mesg` instance variable to allow it to be dumped wiithout converting to a string. As discussed in #103, this exposes internal implementation details of CRuby, and ultimately does not provide any real utility to the user since they can't directly inspect this hidden variable. The test change here is to reflect CRuby behavior that denies equality if the internal message objects do not match, as is the case after the exception has been loaded and now has a simple String value. The impact to users is that exceptions with special hidden message objects will convert those objects to String during marshaling through YAML. I believe this only affects NameError and its descendants, since users can't set this field directly on their own exception types. Fixes #103.
* sed -i '/rmodule.h/d'卜部昌平2020-08-271-5/+0
|
* sed -i '/r_cast.h/d'卜部昌平2020-08-271-5/+0
|
* sed -i '\,2/extern.h,d'卜部昌平2020-08-271-5/+0
|
* Removed nonsense `rubygems_version` in input gemspec filesNobuyoshi Nakada2020-06-251-1/+0
| | | | | As it is ignored and set at building packages automatically, it is just nonsense to set in gemspec file for input.
* [ruby/psych] Fixup 05d7e818a6abe3ee1c56b6be92f086647d73141cHiroshi SHIBATA2020-06-231-1/+1
| | | | https://github.com/ruby/psych/commit/4e7794fc2c
* [ruby/psych] Bump version strings for header fileHiroshi SHIBATA2020-06-231-5/+5
| | | | https://github.com/ruby/psych/commit/68da645c7e
* [ruby/psych] Bump libyaml version to 0.2.5Hiroshi SHIBATA2020-06-239-192/+433
| | | | https://github.com/ruby/psych/commit/39996192cc
* [ruby/psych] Fix anchor lookup with symbolized namesJean Boussier2020-06-231-7/+7
| | | | https://github.com/ruby/psych/commit/ef74fc01e2
* Avoid requiring "psych/versions"Yusuke Endoh2020-06-091-5/+5
| | | | | | | | | | | | | | | | | | | | | This leads to double requiring "ext/psych/lib/psych/versions.rb" and ".ext/common/psych/versions.rb", which produces doxens of warnings during `make test-all`. http://rubyci.s3.amazonaws.com/ubuntu2004/ruby-master/log/20200608T123004Z.log.html.gz ``` [15092/20234] TestRDocOptions#test_init_with_encoding/home/chkbuild/chkbuild/tmp/build/20200608T123004Z/ruby/ext/psych/lib/psych.rb:233: warning: already initialized constant Psych::LIBYAML_VERSION /home/chkbuild/chkbuild/tmp/build/20200608T123004Z/ruby/.ext/common/psych.rb:233: warning: previous definition of LIBYAML_VERSION was here /home/chkbuild/chkbuild/tmp/build/20200608T123004Z/ruby/ext/psych/lib/psych.rb:235: warning: already initialized constant Psych::NOT_GIVEN /home/chkbuild/chkbuild/tmp/build/20200608T123004Z/ruby/.ext/common/psych.rb:235: warning: previous definition of NOT_GIVEN was here /home/chkbuild/chkbuild/tmp/build/20200608T123004Z/ruby/ext/psych/lib/psych.rb:271: warning: method redefined; discarding old load /home/chkbuild/chkbuild/tmp/build/20200608T123004Z/ruby/.ext/common/psych.rb:271: warning: previous definition of load was here ... ``` The same issue happened in fiddle.gemspec, and this change applies the same fix as [fiddle](https://github.com/ruby/fiddle/issues/34).
* [ruby/psych] Add LICENSE to the gemPo-Chuan Hsieh2020-06-051-1/+1
| | | | https://github.com/ruby/psych/commit/02919596fa
* [ruby/psych] Remove unnecessary version guard from versions.rbDavid Rodríguez2020-06-052-7/+5
| | | | | | | | | | | | | | | | | | | Removing it triggers the following warnings when running `bundle` under jruby from the root of the `psych` repo prints the following warnings: ``` /path/to/jruby-9.2.9.0/lib/ruby/gems/shared/gems/psych-3.1.0-java/lib/psych/versions.rb:7: warning: already initialized constant VERSION /path/to//jruby-9.2.9.0/lib/ruby/gems/shared/gems/psych-3.1.0-java/lib/psych/versions.rb:10: warning: already initialized constant DEFAULT_SNAKEYAML_VERSION ``` This is because bundler loads the versions file relatively from the local gemspec, and then internally loads the psych gem, causing the redefinition warnings. Instead, we modify the $LOAD_PATH so that when working locally on the `psych` repo, the local version of `psych` gets used. https://github.com/ruby/psych/commit/a3fc8191a7
* [ruby/psych] Fix ArgumentError with leading and trailing underscores in ↵Mark Thorn2020-06-051-1/+1
| | | | | | number strings. https://github.com/ruby/psych/commit/ac2d2c9b1b
* [ruby/psych] Fix gem installationDavid Rodríguez2020-06-051-1/+1
| | | | | | | | | | | | | | | | Current version is not installable because the gemspec is invalid, since it includes a `.travis.yml` file that no longer exists, so `rake install` fails like this: ``` $ rake install rake aborted! WARNING: See https://guides.rubygems.org/specification-reference/ for help ERROR: While executing gem ... (Gem::InvalidSpecificationException) [".travis.yml"] are not files ``` https://github.com/ruby/psych/commit/32b18ca7ca
* [ruby/psych] Implement `freeze` option for Pysch.loadJean Boussier2020-06-051-7/+11
| | | | https://github.com/ruby/psych/commit/7dae24894d
* [ruby/psych] Implement a freeze load optionJean Boussier2020-06-053-10/+11
| | | | https://github.com/ruby/psych/commit/04f97f7a56
* [ruby/psych] Refactor `symbolize_names`Jean Boussier2020-06-053-24/+15
| | | | https://github.com/ruby/psych/commit/3e472ab2d7
* sed -i 's|ruby/impl|ruby/internal|'卜部昌平2020-05-111-700/+700
| | | | To fix build failures.
* sed -i s|ruby/3|ruby/impl|g卜部昌平2020-05-111-700/+700
| | | | This shall fix compile errors.
* Suppress -Wshorten-64-to-32 warningsNobuyoshi Nakada2020-04-082-20/+20
|
* Merge pull request #2991 from shyouhei/ruby.h卜部昌平2020-04-081-0/+760
| | | Split ruby.h
* 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