commit e71dcf557ae5c8ff6bede873b947b8ca416e2c9e parent 8b10f5352503da5de52bafe90fcdfa87ca4ae98b Author: Frederic Cambus <fred@statdns.com> Date: Tue, 13 Mar 2018 13:02:20 +0100 Clean up the data object declaration Diffstat:
M | src/motyl.rb | | | 14 | +++++++------- |
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/motyl.rb b/src/motyl.rb @@ -28,13 +28,13 @@ def status(message) end # Loading configuration -data = {} -data["version"] = "Motyl 1.00" -data["updated"] = Time.now.strftime("%Y-%m-%dT%XZ") -data["site"] = YAML.load_file("motyl.conf") -data["feed"] = {} -data["posts"] = [] -data["categories"] = {} +data = { + "version" => "Motyl 1.00", + "updated" => Time.now.strftime("%Y-%m-%dT%XZ"), + "site" => YAML.load_file("motyl.conf"), + "posts" => [], + "categories" => {} +} # Loading templates templates = {