From 651bcc997721862ed5f7929737dd55f17a6dfc65 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Thu, 19 Nov 2009 00:41:15 -0800 Subject: [PATCH] Allow vendored frameworks to override built-in frameworks to enable testing and development. --- lib/compass/frameworks.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/compass/frameworks.rb b/lib/compass/frameworks.rb index d11ff8fb..d856bcfe 100644 --- a/lib/compass/frameworks.rb +++ b/lib/compass/frameworks.rb @@ -28,7 +28,11 @@ module Compass end def register(name, *arguments) - ALL << Framework.new(name, *arguments) + if idx = ALL.index{|f| f.name.to_s == name.to_s} + ALL[idx] = Framework.new(name, *arguments) + else + ALL << Framework.new(name, *arguments) + end end def [](name)