From 47b2f24ddc8ea1f7501c4a89031d06b064ac1628 Mon Sep 17 00:00:00 2001 From: Laurent Sansonetti Date: Sun, 9 Jun 2013 20:28:01 +0200 Subject: [PATCH] allow hash keys to be symbols --- lib/motion/project/plist.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/motion/project/plist.rb b/lib/motion/project/plist.rb index a9313fb1..c5328ec0 100644 --- a/lib/motion/project/plist.rb +++ b/lib/motion/project/plist.rb @@ -46,6 +46,7 @@ EOS when Hash str << indent_line("", indent) plist.each do |key, val| + key = key.to_s if key.is_a?(Symbol) raise "Hash key must be a string" unless key.is_a?(String) str << indent_line("#{key}", indent + 1) cat_element(val, str, indent + 1)