mirror of
https://github.com/jordansissel/fpm
synced 2025-04-19 13:18:03 +02:00
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 |
||
---|---|---|
.. | ||
fpm | ||
fpm.rb |