lib/compass/installers/base.rb in compass-edge-0.9.4 vs lib/compass/installers/base.rb in compass-edge-0.9.5.0
- old
+ new
@@ -14,11 +14,11 @@
@working_path = Dir.getwd
@options = options
self.logger = options[:logger]
end
- [:css_dir, :sass_dir, :images_dir, :javascripts_dir, :http_stylesheets_path].each do |dir|
+ [:css_dir, :sass_dir, :images_dir, :javascripts_dir, :http_stylesheets_path, :fonts_dir].each do |dir|
define_method dir do
Compass.configuration.send(dir)
end
define_method "#{dir}_without_default" do
Compass.configuration.send("#{dir}_without_default")
@@ -87,9 +87,13 @@
"#{images_dir}/#{to}"
end
installer :javascript do |to|
"#{javascripts_dir}/#{to}"
+ end
+
+ installer :font do |to|
+ "#{fonts_dir}/#{to}"
end
installer :file do |to|
"#{pattern_name_as_dir}#{to}"
end