<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/psych/test_psych.rb, branch v3_3_11</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/psych] Fix RestrictedYAMLTree allowing the Symbol class should allow all symbols</title>
<updated>2023-01-23T02:07:23+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>jean.boussier@gmail.com</email>
</author>
<published>2023-01-22T14:04:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8fded5f5d12be958ca803627a541e5a5d9323586'/>
<id>8fded5f5d12be958ca803627a541e5a5d9323586</id>
<content type='text'>
Ref: https://github.com/ruby/psych/pull/495

That's how it works for `safe_load`:
```ruby
&gt;&gt; YAML.safe_load(':foo', permitted_classes: [Symbol])
=&gt; :foo
```

So `safe_dump` should mirror that.

https://github.com/ruby/psych/commit/592a75a656
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Ref: https://github.com/ruby/psych/pull/495

That's how it works for `safe_load`:
```ruby
&gt;&gt; YAML.safe_load(':foo', permitted_classes: [Symbol])
=&gt; :foo
```

So `safe_dump` should mirror that.

https://github.com/ruby/psych/commit/592a75a656
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/psych] Fix the test that does not work with libyaml-0.1.7</title>
<updated>2021-06-07T23:12:27+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2021-06-07T13:56:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8c87efaa8a45166ed977294330c32a4b186b8e7b'/>
<id>8c87efaa8a45166ed977294330c32a4b186b8e7b</id>
<content type='text'>
https://github.com/ruby/psych/commit/542cf9754f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/psych/commit/542cf9754f
</pre>
</div>
</content>
</entry>
<entry>
<title>Do not use YAML module in tests of Psych</title>
<updated>2021-06-07T10:24:20+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2021-06-07T10:24:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=bb4a10208c8564a6c080a0de14ef6a5884c6173c'/>
<id>bb4a10208c8564a6c080a0de14ef6a5884c6173c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use assert_raise instead of assert_raises</title>
<updated>2021-06-07T10:21:41+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2021-06-07T10:21:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d7146dfd7dbe370ec9b7d6fde75bf1066bf7ed57'/>
<id>d7146dfd7dbe370ec9b7d6fde75bf1066bf7ed57</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/psych] Implement YAML.safe_dump to make safe_load more usable.</title>
<updated>2021-06-07T10:15:14+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>jean.boussier@gmail.com</email>
</author>
<published>2021-05-19T14:07:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=fd6225c7a974e5154099c9f7be82bebd44a19116'/>
<id>fd6225c7a974e5154099c9f7be82bebd44a19116</id>
<content type='text'>
In case where Psych is used as a two way serializers,
e.g. to serialize some cache or config, it is preferable
to have the same restrictions on both load and dump.

Otherwise you might dump and persist some objects payloads
that you later won't be able to read.

https://github.com/ruby/psych/commit/441958396f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In case where Psych is used as a two way serializers,
e.g. to serialize some cache or config, it is preferable
to have the same restrictions on both load and dump.

Otherwise you might dump and persist some objects payloads
that you later won't be able to read.

https://github.com/ruby/psych/commit/441958396f
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/psych] remove deprecated interface</title>
<updated>2021-05-17T02:20:46+00:00</updated>
<author>
<name>Aaron Patterson</name>
<email>tenderlove@ruby-lang.org</email>
</author>
<published>2021-05-11T20:49:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=42b20bdbfe770053e02948e9577bdd412a8c98cf'/>
<id>42b20bdbfe770053e02948e9577bdd412a8c98cf</id>
<content type='text'>
https://github.com/ruby/psych/commit/0767227051
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/psych/commit/0767227051
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/psych] Introduce `Psych.unsafe_load`</title>
<updated>2021-05-17T02:20:45+00:00</updated>
<author>
<name>Aaron Patterson</name>
<email>tenderlove@ruby-lang.org</email>
</author>
<published>2021-05-10T16:50:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c7c2ad5749f7f0767ef38be160f4b391228396c1'/>
<id>c7c2ad5749f7f0767ef38be160f4b391228396c1</id>
<content type='text'>
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.

https://github.com/ruby/psych/commit/cb50aa8d3f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.

https://github.com/ruby/psych/commit/cb50aa8d3f
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/psych] Fix symabolize_name with non-string keys</title>
<updated>2021-05-17T02:20:45+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>jean.boussier@gmail.com</email>
</author>
<published>2021-02-25T17:36:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a3ceed50b877e57554ec825d7fefe066c81ff0ee'/>
<id>a3ceed50b877e57554ec825d7fefe066c81ff0ee</id>
<content type='text'>
https://github.com/ruby/psych/commit/1c5c29e81f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/psych/commit/1c5c29e81f
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/psych] Use assert_raise instead of assert_raises</title>
<updated>2021-05-10T10:09:43+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2021-05-10T10:09:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ab785b28e2f3cc879906aeaee0358c0de478499e'/>
<id>ab785b28e2f3cc879906aeaee0358c0de478499e</id>
<content type='text'>
https://github.com/ruby/psych/commit/e6ad12b4e1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/psych/commit/e6ad12b4e1
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/psych] Use pend instead of skip</title>
<updated>2021-05-10T09:53:56+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2021-05-10T08:54:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=bae9a21e40a65c0eaacebfd4b3c3a8de08892c74'/>
<id>bae9a21e40a65c0eaacebfd4b3c3a8de08892c74</id>
<content type='text'>
https://github.com/ruby/psych/commit/efd2a62c9a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/psych/commit/efd2a62c9a
</pre>
</div>
</content>
</entry>
</feed>
