summaryrefslogtreecommitdiff
path: root/test/psych/test_coder.rb
Commit message (Collapse)AuthorAgeFilesLines
* Only ignore current failures in JRubyDavid Rodríguez2022-10-071-0/+6
| | | | | This way we should be able to prevent new regressions from being introduced.
* test/psych/test_coder.rb: Suppress non-parenthesis warningsYusuke Endoh2021-06-071-3/+3
| | | | | | | http://rubyci.s3.amazonaws.com/debian9/ruby-master/log/20210518T093002Z.log.html.gz ``` /home/chkbuild/chkbuild/tmp/build/20210518T093002Z/ruby/test/psych/test_coder.rb:277: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator ```
* Make the test pass with the old libyamlYusuke Endoh2021-05-171-3/+3
| | | | | I have no idea what result is right, but it fails with libyaml 0.1.7 (bundled with Ubuntu 18.04) anyway.
* assert_equal accepts an expected value as the first argumentYusuke Endoh2021-05-171-15/+15
|
* Introduce `Psych.unsafe_load`Aaron Patterson2021-05-131-7/+7
| | | | | | | | | | | | | | In future versions of Psych, the `load` method will be mostly the same as the `safe_load` method. In other words, the `load` method won't allow arbitrary object deserialization (which can be used to escalate to an RCE). People that need to load *trusted* documents can use the `unsafe_load` method. This commit introduces the `unsafe_load` method so that people can incrementally upgrade. For example, if they try to upgrade to 4.0.0 and something breaks, they can downgrade, audit callsites, change to `safe_load` or `unsafe_load` as required, and then upgrade to 4.0.0 smoothly.
* feat: allow scalars and sequences to be styled when dumpedJeremy Ebler2021-02-071-0/+121
|
* make frozen_string_literal: truefrozenSHIBATA Hiroshi2017-06-191-1/+1
|
* Temporary disabled to frozen literal string.SHIBATA Hiroshi2016-02-231-0/+1
| | | | ref. https://github.com/ruby/ruby/commit/3e92b635fb5422207b7bbdc924e292e51e21f040
* * ext/psych/lib/psych/visitors/yaml_tree.rb: register nodes whenAaron Patterson2015-02-061-0/+22
| | | | | | dumping objects with custom coders. [ruby-core:66215] [Bug #10496] * test/psych/test_coder.rb: test for fix
* Merge pull request #122 from tjwallace/fix_coder_emit_hashAaron Patterson2013-04-051-2/+2
|\ | | | | Fix case when map includes a symbol key in #emit_coder
| * Fix case when map includes a symbol key in #emit_coderJeff Wallace2013-01-301-2/+2
| | | | | | | | Mimic what is done in #visit_Hash. Fixes #107.
* | sync with ruby trunkAaron Patterson2013-04-051-1/+1
|/
* pulling in changes from ruby coreAaron Patterson2011-03-291-1/+1
|
* syncing up with ruby trunkAaron Patterson2011-01-211-0/+15
|
* merging from ruby to psychAaron Patterson2010-04-091-0/+25
|
* * test/psych/*: switching tests to use relative require. [ruby-core:29104]Aaron Patterson2010-03-291-1/+1
|
* adding a test helper superclassAaron Patterson2010-03-261-3/+2
|
* adding represent_map to the coderAaron Patterson2010-02-201-0/+18
|
* yaml as sequence is workingAaron Patterson2010-02-201-0/+18
|
* represent scalar workscoderAaron Patterson2010-02-021-0/+30
|
* classes can be emitted as scalar and mapAaron Patterson2010-01-261-0/+79