From f316dd013e73261aab60a2de3e0821dc951244cd Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sun, 25 Jan 2009 15:05:36 -0800 Subject: [PATCH] Centralize all the framework specific code into the frameworks directory. --- {lib/compass/frameworks => frameworks}/blueprint.rb | 0 {lib/compass/frameworks => frameworks}/compass.rb | 0 {lib/compass/frameworks => frameworks}/yui.rb | 0 lib/compass/frameworks.rb | 8 +++++--- 4 files changed, 5 insertions(+), 3 deletions(-) rename {lib/compass/frameworks => frameworks}/blueprint.rb (100%) rename {lib/compass/frameworks => frameworks}/compass.rb (100%) rename {lib/compass/frameworks => frameworks}/yui.rb (100%) diff --git a/lib/compass/frameworks/blueprint.rb b/frameworks/blueprint.rb similarity index 100% rename from lib/compass/frameworks/blueprint.rb rename to frameworks/blueprint.rb diff --git a/lib/compass/frameworks/compass.rb b/frameworks/compass.rb similarity index 100% rename from lib/compass/frameworks/compass.rb rename to frameworks/compass.rb diff --git a/lib/compass/frameworks/yui.rb b/frameworks/yui.rb similarity index 100% rename from lib/compass/frameworks/yui.rb rename to frameworks/yui.rb diff --git a/lib/compass/frameworks.rb b/lib/compass/frameworks.rb index 38d1df1b..e74c4529 100644 --- a/lib/compass/frameworks.rb +++ b/lib/compass/frameworks.rb @@ -22,6 +22,8 @@ module Compass end end -require File.join(File.dirname(__FILE__), 'frameworks', 'compass') -require File.join(File.dirname(__FILE__), 'frameworks', 'blueprint') -require File.join(File.dirname(__FILE__), 'frameworks', 'yui') +# Import all of the default frameworks. +default_frameworks_directory = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'frameworks')) +Dir.glob(File.join(default_frameworks_directory, "*.rb")).each do |framework| + require framework +end