lib/licensee/license_meta.rb in licensee-9.10.0 vs lib/licensee/license_meta.rb in licensee-9.10.1

- old
+ new

@@ -21,9 +21,10 @@ # yaml - the raw YAML string # # returns a LicenseMeta with defaults set def from_yaml(yaml) return from_hash({}) if yaml.nil? || yaml.to_s.empty? + from_hash YAML.safe_load(yaml) end # Create a new LicenseMeta from a hash #