Skip to content
Snippets Groups Projects
Verified Commit 2c635eac authored by Stan Hu's avatar Stan Hu
Browse files

Use YAML.safe_load_file for Bullet exclusions

`YAML.load_file` in Psych v4, which is used by Ruby 3.1, defaults to
`YAML.safe_load_file` (https://github.com/ruby/psych/issues/533). This
change in behavior breaks the loading of Bullet exclusions
(https://github.com/flyerhzm/bullet#configuration) in Ruby 3.1+ and
up. Fix this by using `YAML.safe_load_file` with `Range` as a
permitted class.

Relates to #396231

Changelog: changed
parent 4a468053
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment