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"])
|
2011-11-17 23:40:42 +00:00
|
|
|
[File.join(ENV["HOME"], ".compass", "extensions")]
|
2011-04-29 13:50:11 +00:00
|
|
|
else
|
|
|
|
[]
|
|
|
|
end
|
2012-03-08 15:58:25 +00:00
|
|
|
rescue ArgumentError # If HOME is relative
|
|
|
|
[]
|
2011-04-29 13:50:11 +00:00
|
|
|
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
|
2012-02-02 21:59:20 +00:00
|
|
|
|
|
|
|
# for rails upgrade warnings in 0.12
|
|
|
|
require 'compass/app_integration/rails'
|