Sha256: 71121cb8d6cc9d3cf1d4a18ada17e0990c788fdb3d0ccbe92bb77af315b64551

Contents?: true

Size: 1.18 KB

Versions: 3

Compression:

Stored size: 1.18 KB

Contents

require "fontcustom/version"
require "fontcustom/error"
require "fontcustom/utility"
require "fontcustom/base"
require "fontcustom/manifest"
require "fontcustom/options"
require "fontcustom/generator/font"
require "fontcustom/generator/template"

module Fontcustom
  def gem_lib
    File.expand_path(File.join(File.dirname(__FILE__), "fontcustom"))
  end
  module_function :gem_lib

  ##
  # Hack to get Thor to show more helpful defaults in `fontcustom help`. These
  # are overwritten in Fontcustom::Options.
  EXAMPLE_OPTIONS = {
    :project_root => "`pwd`",
    :output => "PROJECT_ROOT/FONT_NAME",
    :config => "PROJECT_ROOT/fontcustom.yml -or- PROJECT_ROOT/config/fontcustom.yml",
    :templates => "css preview",
    :manifest => "CONFIG_DIR/.fontcustom-manifest.json -or- PROJECT_ROOT/.fontcustom-manifest.json"
  }

  DEFAULT_OPTIONS = {
    :project_root => nil,
    :input => nil,
    :output => nil,
    :config => nil,
    :templates => %w|css preview|,
    :font_name => "fontcustom",
    :css_selector => ".icon-{{glyph}}",
    :manifest => nil,
    :preprocessor_path => nil,
    :autowidth => false,
    :no_hash => false,
    :debug => false,
    :force => false,
    :quiet => false
  }
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fontcustom-1.3.0.beta3 lib/fontcustom.rb
fontcustom-1.3.0.beta2 lib/fontcustom.rb
fontcustom-1.3.0.beta lib/fontcustom.rb