compass/lib/compass.rb
Chris Eppstein b13fd43a2e Require relative to the load path instead of using the more convoluted approach of File.join(File.dirname(__FILE__), ...).
Also, don't ever muck with the load paths or rubygems without first
trying to require the library without doing so.
2009-09-02 21:45:08 -07:00

22 lines
480 B
Ruby

module Compass
end
%w(dependencies sass_extensions core_ext version errors).each do |lib|
require "compass/#{lib}"
end
module Compass
extend Compass::Version
def base_directory
File.expand_path(File.join(File.dirname(__FILE__), '..'))
end
def lib_directory
File.expand_path(File.join(File.dirname(__FILE__)))
end
module_function :base_directory, :lib_directory
end
%w(configuration frameworks app_integration).each do |lib|
require "compass/#{lib}"
end