lib/compass/fontcustom.rb in compass-fontcustom-1.3.0 vs lib/compass/fontcustom.rb in compass-fontcustom-1.3.1

- old
+ new

@@ -1,32 +1,39 @@ require "compass" require "compass/fontcustom/version" +require "compass/fontcustom/util" require "compass/fontcustom/compass" require "compass/fontcustom/sass_extensions" require "compass/fontcustom/glyph_map" require "compass/fontcustom/font_importer" +require "compass/fontcustom/patches" +require "compass/fontcustom/deprecations" module Compass # This module registers the gem as a Compass framework source, # adds config properties to Compass and extends Sass' `load_paths`. module Fontcustom base_directory = File.expand_path('../../../', __FILE__) Compass::Frameworks.register('fontcustom', :path => base_directory) - Compass::Configuration.add_configuration_property(:fontcustom_hash, "enables/disables fontcustom file name hashing") do - true - end - Compass::Configuration.add_configuration_property(:fontcustom_input_paths, "Array of paths where to search for SVG files to build custom fonts from") do if defined? Rails Rails.application.config.assets.paths else [Compass.configuration.images_path.to_s] end end - Compass::Configuration.add_configuration_property(:fontcustom_fonts_path, "Path to put generated font files in") do - Compass.configuration.fonts_path.to_s + Compass::Configuration.add_configuration_property(:fontcustom_fonts_path, "(Deprecated) Path to put generated font files in") + + Compass::Configuration.add_configuration_property(:fontcustom_options, + 'Options passed to fontcustom when generating fonts') do + {} + end + + Compass::Configuration.add_configuration_property(:fontcustom_discard_manifest, + 'Remove manifest each time after fonts are compiled') do + false end Sass.load_paths << FontImporter.new end end \ No newline at end of file