Commit Graph

2 Commits

Author SHA1 Message Date
Daniel Doubrovkine (dB.) @dblockdotorg 30ab2a3cb0 Allow options on Mash.load (#474)
`Mash.load` uses the Ruby standard library to load Yaml-serialized files
into a Mash. The original implementation used `YAML.load` for this
purpose. However, that method is inherently unsafe so we switched to
using `YAML.safe_load`.

Safely loading Yaml files has many different domain-specific
configuration flags that we did not, by default, expose. This change
introduces the ability to configure the safe loading of Yaml files so
that all types of Yaml can be loaded when necessary using the flags from
the standard library.

This implementation preserves the backwards-compatibility with the prior
implementation so that it should not require updates from users of the
current `Mash.load` behavior. For those who this change affects, we
included upgrading documentation to ease the transition.
2019-03-22 14:04:22 -05:00
Arek Turlewicz 955d1713a4 Mash should load yaml file. 2018-08-15 10:50:30 +09:00