2009-05-19 18:27:29 +00:00
|
|
|
module Compass
|
2009-01-25 19:28:11 +00:00
|
|
|
end
|
|
|
|
|
2011-06-29 11:05:26 +00:00
|
|
|
%w(dependencies util browser_support sass_extensions version errors quick_cache logger).each do |lib|
|
2009-09-03 02:47:01 +00:00
|
|
|
require "compass/#{lib}"
|
2008-08-23 17:00:46 +00:00
|
|
|
end
|
|
|
|
|
2011-02-17 07:30:11 +00:00
|
|
|
require 'sass/callbacks'
|
|
|
|
|
2008-08-23 17:00:46 +00:00
|
|
|
module Compass
|
|
|
|
def base_directory
|
|
|
|
File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
|
|
|
end
|
2009-02-01 22:17:07 +00:00
|
|
|
def lib_directory
|
|
|
|
File.expand_path(File.join(File.dirname(__FILE__)))
|
|
|
|
end
|
2011-03-21 16:29:43 +00:00
|
|
|
def shared_extension_paths
|
2011-04-29 13:50:11 +00:00
|
|
|
@shared_extension_paths ||= begin
|
|
|
|
if ENV["HOME"] && File.directory?(ENV["HOME"])
|
|
|
|
[File.expand_path("~/.compass/extensions")]
|
|
|
|
else
|
|
|
|
[]
|
|
|
|
end
|
|
|
|
end
|
2011-03-21 16:29:43 +00:00
|
|
|
end
|
|
|
|
module_function :base_directory, :lib_directory, :shared_extension_paths
|
2010-11-29 22:33:57 +00:00
|
|
|
extend QuickCache
|
2008-08-23 17:00:46 +00:00
|
|
|
end
|
|
|
|
|
2011-03-23 05:29:51 +00:00
|
|
|
%w(configuration frameworks app_integration actions compiler).each do |lib|
|
2009-09-03 02:47:01 +00:00
|
|
|
require "compass/#{lib}"
|
|
|
|
end
|