[loki-editor commit] r664 - trunk

0 views
Skip to first unread message

codesite...@google.com

unread,
Dec 4, 2008, 2:41:52 PM12/4/08
to loki-c...@googlegroups.com
Author: enaeseth
Date: Thu Dec 4 11:38:33 2008
New Revision: 664

Modified:
trunk/Rakefile

Log:
Making the loading of theme specs during build give better feedback when
errors happen.

Modified: trunk/Rakefile
==============================================================================
--- trunk/Rakefile (original)
+++ trunk/Rakefile Thu Dec 4 11:38:33 2008
@@ -130,10 +130,15 @@

spec_dest = paths.build('themes', theme.name, "#{theme.name}.json")
spec_src = File.join(theme.path, "#{theme.name}.yaml")
- sources = [dest, paths.plugins]
+ sources = [paths.plugins]
sources << spec_src if File.exists?(spec_src)
file spec_dest => sources do
- spec = YAML.load_file(src) rescue {}
+ spec = if File.exists?(spec_src)
+ YAML.load_file(spec_src)
+ else
+ {}
+ end
+
spec['name'] ||= theme.name.capitalize
spec['parent'] = nil unless spec.has_key?('parent')
spec['processed_plugins'] = Loki.plugins

Reply all
Reply to author
Forward
0 new messages