summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-12-23[ruby/psych] Avoid methods depending on bindingsMarc-Andre Lafortune
Improves Ractor-readiness.
2020-12-23[ruby/psych] Freeze constants.Marc-Andre Lafortune
Improves Ractor-readiness.
2020-12-21Strip trailing spaces [ci skip]Nobuyoshi Nakada
2020-12-14Bump version to 3.2.1Hiroshi SHIBATA
2020-12-14Merge pull request #459 from tbrisker/patch-1Hiroshi SHIBATA
Remove unneeded assignment and condition
2020-11-18Merge pull request #469 from marcandre/safety_firstAaron Patterson
Add `Psych.safe_load_file`. Tweak doc to provide `safe_` examples.
2020-11-12Add `Psych.safe_load_file`. Tweak doc to provide `safe_` examples.Marc-Andre Lafortune
2020-09-25Removed nonsense `rubygems_version` in input gemspec filesNobuyoshi Nakada
As it is ignored and set at building packages automatically, it is just nonsense to set in gemspec file for input.
2020-09-10Merge pull request #463 from Shopify/load-file-optionsAaron Patterson
Forward keyword arguments in load_file and load_stream
2020-09-10Forward keyword arguments in load_file and load_streamJean Boussier
2020-08-01Remove unneeded assignment and conditionTomer Brisker
Since we already `return fallback` if `result` is falsy, we don't need to check again if it's truthy and reassign the `to_ruby` result.
2020-07-18Bump version to 3.2.0Hiroshi SHIBATA
2020-07-16Merge pull request #458 from headius/remove_private_iv_getCharles Oliver Nutter
Remove private_iv_get
2020-07-16Remove private_iv_getCharles Oliver Nutter
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.
2020-07-16Merge pull request #457 from SzymonKowalczyk/masterCharles Oliver Nutter
Update SNAKEYAML CVE-2017-18640
2020-07-16Revert psych versionSzymonKowalczyk
2020-07-16Update SNAKEYAML CVE-2017-18640SzymonKowalczyk
to version 1.26
2020-06-23Fix remove warning & support multi-run test for ↵S-H-GAMELINKS
test/psych/visitors/test_to_ruby.rb
2020-06-23remove warning & support multi-run test for test/psych_test_yaml.rb (#2887)S.H
2020-06-23remove warning & support multi-run test for ↵S.H
test/psych/visitors/test_to_ruby.rb (#2881)
2020-06-23Merge pull request #456 from ruby/libyaml-0.2.5Hiroshi SHIBATA
Bump libyaml version to 0.2.5
2020-06-23Fixup 05d7e818a6abe3ee1c56b6be92f086647d73141cHiroshi SHIBATA
2020-06-23Bump version strings for header fileHiroshi SHIBATA
2020-06-23Bump libyaml version to 0.2.5Hiroshi SHIBATA
2020-06-08Merge pull request #455 from Shopify/fix-reference-symbolize-namesAaron Patterson
Fix anchor lookup with symbolized names
2020-06-08Fix anchor lookup with symbolized namesJean Boussier
2020-06-08Avoid requiring "psych/versions"Yusuke Endoh
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).
2020-06-05Suppress -Wshorten-64-to-32 warningsNobuyoshi Nakada
ruby/ruby@d8720eb7de9cd9d874b621f214c27022e17cc941
2020-06-05ext/psych/extconf.rb: braced VPATH is for nmake onlyNobuyoshi Nakada
ruby/ruby@75b644350a80bc31449b7cee741d309643dc27e1
2020-06-05Nmake needs `VPATH`Nobuyoshi Nakada
ruby/ruby@a593186a02714cb92ae2748c2b7c46a6c50b0977
2020-06-05Add dependency on bundled yaml.h when usingNobuyoshi Nakada
ruby/ruby@98006cea4fd517671dae508fade13203bc18301a
2020-06-03Merge pull request #438 from mthorn/masterAaron Patterson
Fix ArgumentError with leading and trailing underscores in number str…
2020-06-03Merge pull request #451 from ruby/libyaml-0-2-5Aaron Patterson
Fixing compatibility with libyaml 0.2.5
2020-06-03Fixing compatibility with libyaml 0.2.5Aaron Patterson
The main issue is that commas aren't allowed in local tags. libyaml was updated to follow the spec, and our tests were out of date. See: https://github.com/yaml/libyaml/issues/196
2020-05-07Merge pull request #433 from ↵Aaron Patterson
deivid-rodriguez/remove_unnecessary_check_on_version Remove unnecessary check on version
2020-04-23Merge pull request #449 from MSP-Greg/setup-ruby-pkgsHiroshi SHIBATA
Update workflows/windows.yml - use setup-ruby-pkgs
2020-04-22Update workflows/windows.yml - use setup-ruby-pkgsMSP-Greg
MSP-Greg/actions-ruby is deprecated...
2020-04-12Removed the old CI badgesHiroshi SHIBATA
2020-04-07Merge pull request #446 from sunpoet/masterHiroshi SHIBATA
Add LICENSE to the gem
2020-04-06Add LICENSE to the gemPo-Chuan Hsieh
2020-03-27Removed obsoleted configuration of AppVeyorHiroshi SHIBATA
2020-03-17Remove unnecessary version guard from versions.rbDavid Rodríguez
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.
2020-03-17Merge pull request #437 from deivid-rodriguez/fix_rake_installYuki Nishijima
Fix gem installation
2020-03-03Fix ArgumentError with leading and trailing underscores in number strings.Mark Thorn
2020-02-26Fix gem installationDavid Rodríguez
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 ```
2020-02-17Merge pull request #432 from MSP-Greg/actions-updateBenoit Daloze
Update Actions
2020-02-16appveyor.yml - remove 64 bit Rubies, they are now tested in ActionsMSP-Greg
2020-02-16Update ActionsMSP-Greg
1. Remove rvm where possible, add ruby-head, misc 2. Add mingw & mswin Windows testing
2020-02-16Merge pull request #435 from MSP-Greg/actions-jrubyBenoit Daloze
Actions ubuntu-jruby - remove rvm, use ruby/setup-ruby
2020-02-16ubuntu-jruby - remove rvm, use ruby/setup-rubyMSP-Greg