lib/fontcustom/options.rb in fontcustom-1.0.1 vs lib/fontcustom/options.rb in fontcustom-1.1.0.pre

- old
+ new

@@ -1,21 +1,27 @@ +require "thor/core_ext/hash_with_indifferent_access" + module Fontcustom - DEFAULT_OPTIONS = { - :input => Dir.pwd, - :output => false, # used to assign default, if necessary - :config => false, - :templates => %w|css preview|, + # :output and :config are build from arguments + DEFAULT_OPTIONS = Thor::CoreExt::HashWithIndifferentAccess.new({ + :project_root => Dir.pwd, + :input => "", + :templates => %w|css preview|, :font_name => "fontcustom", :file_hash => true, :css_prefix => "icon-", - :font_face_path => false, + :preprocessor_font_path => "", :debug => false, :verbose => true - } + }) - DATA_MODEL = { + DATA_MODEL = Thor::CoreExt::HashWithIndifferentAccess.new({ :fonts => [], :templates => [], - :file_name => "", - :glyphs => [] - } + :glyphs => [], + :paths => { + :css_to_fonts => "", + :preprocessor_to_fonts => "", + :preview_to_css => "" + } + }) end