lib/compass-sass.rb in capucine-0.1.2 vs lib/compass-sass.rb in capucine-0.1.5
- old
+ new
@@ -21,20 +21,21 @@
plugins_gems = []
plugins = settings.config['compass_plugins']
if plugins.size > 0
- plugins.each do |key, value|
- settings.config['compass_plugins_list'].push key
-
- if value and value.length > 0
- plugins_gems.push value
+ plugins.each do |p|
+ p = p.split('|')
+ settings.config['compass_plugins_list'].push p[0]
+ if p[1]
+ plugins_gems.push p[1]
else
- plugins_gems.push key
+ plugins_gems.push p[0]
end
end
end
+
config_ = settings.config
result = Capucine::Tools.render_template template_file, config_
f = File.open(output_file, 'w')
f.write(result)