summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
06a4fcf)
Apparently we now have to supply a whitelist of permitted classes
to the load method.
- meta = YAML.load(metadata)
+ meta = YAML.load(metadata, permitted_classes: [Time])
timefmt = "%FT%T%z"
updatestr = updatetime.round.strftime(timefmt)
autoset = nil
timefmt = "%FT%T%z"
updatestr = updatetime.round.strftime(timefmt)
autoset = nil
if autoset
# Revalidate YAML
if autoset
# Revalidate YAML
- meta = YAML.load(metadata)
+ meta = YAML.load(metadata, permitted_classes: [Time])
unless meta[autoset] == updatetime.round
raise "failed to auto-insert " + autoset
end
unless meta[autoset] == updatetime.round
raise "failed to auto-insert " + autoset
end