summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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
2020-02-14Merge pull request #434 from deivid-rodriguez/fix_ciSHIBATA Hiroshi
Use `ruby/setup-ruby` to try fix CI
2020-02-14Use `ruby/setup-ruby` to try fix CIDavid Rodríguez
2020-01-08Merge pull request #429 from headius/detect_bad_snakeyamlCharles Oliver Nutter
Check for SnakeYAML version to confirm it's 1.21+
2020-01-08Check for SnakeYAML version to confirm it's 1.21+Charles Oliver Nutter
Fixes #428
2019-12-05Merge pull request #425 from ruby/use-actionsSHIBATA Hiroshi
Migrate JRuby tasks to GitHub Actions.
2019-12-05Remove call for failure of ActionsHiroshi SHIBATA
2019-12-05Migrate JRuby tasks to GitHub Actions.Hiroshi SHIBATA
2019-12-04Merge pull request #414 from Shopify/freeze-parsing-optionAaron Patterson
Freeze parsing option
2019-11-28Implement `freeze` option for Pysch.loadJean Boussier
2019-11-28Implement a freeze load optionJean Boussier