From d181e4aeeb00e80d621ee37c0d5f8ff9b080e676 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sun, 11 Apr 2010 21:10:11 -0700 Subject: [PATCH] Fix for a small change to the Sass API. --- lib/compass/stats.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compass/stats.rb b/lib/compass/stats.rb index 30f59093..e6c92927 100644 --- a/lib/compass/stats.rb +++ b/lib/compass/stats.rb @@ -11,7 +11,7 @@ module Compass def visit(node) self.prop_count += 1 if node.is_a?(Sass::Tree::PropNode) && !node.children.any? if node.is_a?(Sass::Tree::RuleNode) - self.rule_count += node.rules.map{|r| r.split(/,/)}.flatten.compact.size + self.rule_count += node.rule.map{|r| r.split(/,/)}.flatten.compact.size end self.mixin_def_count += 1 if node.is_a?(Sass::Tree::MixinDefNode) self.mixin_count += 1 if node.is_a?(Sass::Tree::MixinNode)