Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load gem specifications using YAML's safe loading
On older rubies, YAML.load _is_ the unsafe load method. At some point, Ruby 3.1.0 / Psych 4(?) made two renames: * YAML.load -> YAML.unsafe_load * YAML.safe_load -> YAML.load A quick test is to try converting a gem. This would fail if `YAML.load` was the "safe" method because it would fail with this message: Tried to load unspecified class: Gem::Specification (Psych::DisallowedClass `fpm -s gem -t empty rails` will crash on Ruby 3.1.0 prior to this commit. Fixes #1895 Add necessary classes to safely load yaml from gem specs
- Loading branch information