lib/fontist.rb in fontist-1.3.0 vs lib/fontist.rb in fontist-1.4.0
- old
+ new
@@ -10,10 +10,11 @@
require "fontist/font"
require "fontist/registry"
require "fontist/formulas"
require "fontist/formula"
require "fontist/system_font"
+require "fontist/fontist_font"
module Fontist
def self.ui
Fontist::Utils::UI
end
@@ -32,21 +33,25 @@
def self.fonts_path
Fontist.fontist_path.join("fonts")
end
+ def self.formulas_repo_path
+ Fontist.fontist_path.join("formulas")
+ end
+
+ def self.formulas_repo_url
+ "https://github.com/fontist/formulas.git"
+ end
+
def self.formulas_path
- Fontist.lib_path.join("fontist", "formulas")
+ Fontist.formulas_repo_path.join("Formulas")
end
-end
-# Loading formulas
-#
-# The formula loading behavior is dynamic, so what we are actualy
-# doing here is looking for formulas in the `./fontist/formulas` directory
-# then require thos as we go.
-#
-# There is a caviat, since the `Dir` method depends on absoulate path
-# so moving this loading up or somewhere else might not always ensure
-# the fontist related path helpers.
-#
-Dir[Fontist.formulas_path.join("**.rb").to_s].sort.each { |file| require file }
+ def self.downloads_path
+ Fontist.fontist_path.join("downloads")
+ end
+
+ def self.system_file_path
+ Fontist.lib_path.join("fontist", "system.yml")
+ end
+end