fontist 0.4.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/macosx.yml +1 -1
- data/.github/workflows/ubuntu.yml +1 -1
- data/.gitignore +4 -2
- data/README.md +87 -25
- data/fontist.gemspec +1 -0
- data/lib/fontist.rb +30 -13
- data/lib/fontist/errors.rb +3 -1
- data/lib/fontist/font.rb +113 -0
- data/lib/fontist/font_formula.rb +123 -0
- data/lib/fontist/formula.rb +90 -0
- data/lib/fontist/formulas.rb +10 -5
- data/lib/fontist/formulas/andale_font.rb +80 -0
- data/lib/fontist/formulas/arial_black_font.rb +79 -0
- data/lib/fontist/formulas/cleartype_fonts.rb +227 -0
- data/lib/fontist/formulas/comic_font.rb +78 -0
- data/lib/fontist/formulas/courier_font.rb +68 -12
- data/lib/fontist/formulas/euphemia_font.rb +85 -0
- data/lib/fontist/formulas/georgia_font.rb +80 -0
- data/lib/fontist/formulas/impact_font.rb +78 -0
- data/lib/fontist/formulas/montserrat_font.rb +132 -0
- data/lib/fontist/formulas/ms_truetype_fonts.rb +125 -0
- data/lib/fontist/formulas/open_sans_fonts.rb +263 -0
- data/lib/fontist/formulas/overpass_font.rb +73 -0
- data/lib/fontist/formulas/source_fonts.rb +109 -0
- data/lib/fontist/formulas/stix_fonts.rb +108 -0
- data/lib/fontist/formulas/tahoma_font.rb +147 -0
- data/lib/fontist/formulas/webding_font.rb +78 -0
- data/lib/fontist/registry.rb +43 -0
- data/lib/fontist/{data/source.yml → system.yml} +5 -8
- data/lib/fontist/system_font.rb +19 -14
- data/lib/fontist/utils.rb +10 -0
- data/lib/fontist/utils/downloader.rb +79 -0
- data/lib/fontist/utils/dsl.rb +77 -0
- data/lib/fontist/utils/exe_extractor.rb +72 -0
- data/lib/fontist/utils/ui.rb +15 -0
- data/lib/fontist/utils/zip_extractor.rb +38 -0
- data/lib/fontist/version.rb +1 -1
- data/spec/fontist/font_formula_spec.rb +67 -0
- data/spec/fontist/font_spec.rb +113 -0
- data/spec/fontist/formula_spec.rb +67 -0
- data/spec/fontist/formulas/andale_font_spec.rb +29 -0
- data/spec/fontist/formulas/arial_black_font_spec.rb +29 -0
- data/spec/fontist/formulas/cleartype_fonts_spec.rb +38 -0
- data/spec/fontist/formulas/comic_font_spec.rb +29 -0
- data/spec/fontist/formulas/courier_font_spec.rb +18 -19
- data/spec/fontist/formulas/euphemia_font_spec.rb +29 -0
- data/spec/fontist/formulas/georgia_font_spec.rb +29 -0
- data/spec/fontist/formulas/impact_font_spec.rb +29 -0
- data/spec/fontist/formulas/montserrat_font_spec.rb +29 -0
- data/spec/fontist/formulas/ms_truetype_fonts_spec.rb +29 -0
- data/spec/fontist/formulas/open_sans_fonts_spec.rb +29 -0
- data/spec/fontist/formulas/overpass_font_spec.rb +29 -0
- data/spec/fontist/formulas/source_fonts_spec.rb +31 -0
- data/spec/fontist/formulas/stix_fonts_spec.rb +29 -0
- data/spec/fontist/formulas/tahoma_font_spec.rb +29 -0
- data/spec/fontist/formulas/webding_font_spec.rb +29 -0
- data/spec/fontist/registry_spec.rb +47 -0
- data/spec/fontist/system_font_spec.rb +12 -7
- data/spec/fontist/{downloader_spec.rb → utils/downloader_spec.rb} +6 -5
- data/spec/spec_helper.rb +4 -2
- data/spec/support/fontist_helper.rb +4 -2
- metadata +62 -27
- data/lib/fontist/data/formulas/courier.yml +0 -26
- data/lib/fontist/data/formulas/ms_system.yml +0 -68
- data/lib/fontist/data/formulas/ms_vista.yml +0 -118
- data/lib/fontist/data/formulas/source_font.yml +0 -163
- data/lib/fontist/downloader.rb +0 -70
- data/lib/fontist/finder.rb +0 -45
- data/lib/fontist/formula_finder.rb +0 -94
- data/lib/fontist/formulas/base.rb +0 -72
- data/lib/fontist/formulas/helpers/exe_extractor.rb +0 -45
- data/lib/fontist/formulas/helpers/zip_extractor.rb +0 -36
- data/lib/fontist/formulas/ms_system.rb +0 -29
- data/lib/fontist/formulas/ms_vista.rb +0 -42
- data/lib/fontist/formulas/source_font.rb +0 -25
- data/lib/fontist/installer.rb +0 -42
- data/lib/fontist/source.rb +0 -58
- data/spec/fontist/finder_spec.rb +0 -41
- data/spec/fontist/formula_finder_spec.rb +0 -54
- data/spec/fontist/formulas/ms_system_spec.rb +0 -31
- data/spec/fontist/formulas/ms_vista_spec.rb +0 -27
- data/spec/fontist/formulas/source_font_spec.rb +0 -18
- data/spec/fontist/installer_spec.rb +0 -48
- data/spec/fontist/source_spec.rb +0 -24
@@ -0,0 +1,29 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
RSpec.describe Fontist::Formulas::MontserratFont do
|
4
|
+
describe "initializing" do
|
5
|
+
it "builds the data dictionary" do
|
6
|
+
formula = Fontist::Formulas::MontserratFont.instance
|
7
|
+
|
8
|
+
expect(formula.fonts.count).to eq(2)
|
9
|
+
expect(formula.fonts.first[:name]).to eq("Montserrat")
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
describe "installation" do
|
14
|
+
context "with valid licence agreement", slow: true do
|
15
|
+
it "installs the valid fonts" do
|
16
|
+
name = "Montserrat"
|
17
|
+
confirmation = "yes"
|
18
|
+
|
19
|
+
stub_fontist_path_to_temp_path
|
20
|
+
paths = Fontist::Formulas::MontserratFont.fetch_font(
|
21
|
+
name, confirmation: confirmation
|
22
|
+
)
|
23
|
+
|
24
|
+
expect(Fontist::Font.find(name)).not_to be_empty
|
25
|
+
expect(paths.first).to include("fonts/#{name}-Thin.otf")
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
RSpec.describe Fontist::Formulas::MsTruetypeFonts do
|
4
|
+
describe "initializing" do
|
5
|
+
it "builds the data dictionary" do
|
6
|
+
formula = Fontist::Formulas::MsTruetypeFonts.instance
|
7
|
+
|
8
|
+
expect(formula.fonts.count).to eq(4)
|
9
|
+
expect(formula.fonts.first[:name]).to eq("Arial")
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
describe "installation" do
|
14
|
+
context "with valid licence agreement" do
|
15
|
+
it "installs the valid fonts", skip_in_windows: true do
|
16
|
+
name = "Arial"
|
17
|
+
confirmation = "yes"
|
18
|
+
|
19
|
+
stub_fontist_path_to_temp_path
|
20
|
+
paths = Fontist::Formulas::MsTruetypeFonts.fetch_font(
|
21
|
+
name, confirmation: confirmation
|
22
|
+
)
|
23
|
+
|
24
|
+
expect(Fontist::Font.find(name)).not_to be_empty
|
25
|
+
expect(paths.first).to include("fonts/#{name}.ttf")
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
RSpec.describe Fontist::Formulas::OpenSansFonts do
|
4
|
+
describe "initializing" do
|
5
|
+
it "builds the data dictionary" do
|
6
|
+
formula = Fontist::Formulas::OpenSansFonts.instance
|
7
|
+
|
8
|
+
expect(formula.fonts.count).to eq(1)
|
9
|
+
expect(formula.fonts.first[:name]).to eq("OpenSans")
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
describe "installation" do
|
14
|
+
context "with valid licence agreement", slow: true do
|
15
|
+
it "installs the valid fonts" do
|
16
|
+
name = "OpenSans"
|
17
|
+
confirmation = "yes"
|
18
|
+
|
19
|
+
stub_fontist_path_to_temp_path
|
20
|
+
paths = Fontist::Formulas::OpenSansFonts.fetch_font(
|
21
|
+
name, confirmation: confirmation
|
22
|
+
)
|
23
|
+
|
24
|
+
expect(Fontist::Font.find(name)).not_to be_empty
|
25
|
+
expect(paths.first).to include("fonts/#{name}-Light.ttf")
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
RSpec.describe Fontist::Formulas::OverpassFont do
|
4
|
+
describe "initializing" do
|
5
|
+
it "builds the data dictionary" do
|
6
|
+
formula = Fontist::Formulas::OverpassFont.instance
|
7
|
+
|
8
|
+
expect(formula.fonts.count).to eq(2)
|
9
|
+
expect(formula.fonts.first[:name]).to eq("Overpass")
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
describe "installation" do
|
14
|
+
context "with valid licence agreement" do
|
15
|
+
it "installs the valid fonts" do
|
16
|
+
name = "Overpass"
|
17
|
+
confirmation = "yes"
|
18
|
+
|
19
|
+
stub_fontist_path_to_temp_path
|
20
|
+
paths = Fontist::Formulas::OverpassFont.fetch_font(
|
21
|
+
name, confirmation: confirmation
|
22
|
+
)
|
23
|
+
|
24
|
+
expect(Fontist::Font.find(name)).not_to be_empty
|
25
|
+
expect(paths.first).to include("fonts/#{name.downcase}-bold-italic.otf")
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
RSpec.describe Fontist::Formulas::SourceFonts do
|
4
|
+
describe "initializing" do
|
5
|
+
it "builds the data dictionary" do
|
6
|
+
formula = Fontist::Formulas::SourceFonts.instance
|
7
|
+
|
8
|
+
expect(formula.fonts.count).to eq(33)
|
9
|
+
expect(formula.fonts.first[:name]).to eq("Source Code Pro")
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
describe "installation" do
|
14
|
+
context "with valid licence agreement", slow: true do
|
15
|
+
it "installs the valid fonts" do
|
16
|
+
name = "Source Code Pro"
|
17
|
+
confirmation = "yes"
|
18
|
+
|
19
|
+
stub_fontist_path_to_temp_path
|
20
|
+
paths = Fontist::Formulas::SourceFonts.fetch_font(
|
21
|
+
name, confirmation: confirmation
|
22
|
+
)
|
23
|
+
|
24
|
+
expect(Fontist::Font.find(name)).not_to be_empty
|
25
|
+
expect(paths).to include(
|
26
|
+
Fontist.fonts_path.join("SourceCodePro-Black.ttf").to_s
|
27
|
+
)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
RSpec.describe Fontist::Formulas::StixFont do
|
4
|
+
describe "initializing" do
|
5
|
+
it "builds the data dictionary" do
|
6
|
+
formula = Fontist::Formulas::StixFont.instance
|
7
|
+
|
8
|
+
expect(formula.fonts.count).to eq(2)
|
9
|
+
expect(formula.fonts.first[:name]).to eq("STIX Two Math")
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
describe "installation" do
|
14
|
+
context "with valid licence agreement" do
|
15
|
+
it "installs the valid fonts" do
|
16
|
+
name = "STIX Two Math"
|
17
|
+
confirmation = "yes"
|
18
|
+
|
19
|
+
stub_fontist_path_to_temp_path
|
20
|
+
paths = Fontist::Formulas::StixFont.fetch_font(
|
21
|
+
name, confirmation: confirmation
|
22
|
+
)
|
23
|
+
|
24
|
+
expect(Fontist::Font.find(name)).not_to be_empty
|
25
|
+
expect(paths.first).to include("fonts/STIX2Math.otf")
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
RSpec.describe Fontist::Formulas::TahomaFont do
|
4
|
+
describe "initializing" do
|
5
|
+
it "builds the data dictionary" do
|
6
|
+
formula = Fontist::Formulas::TahomaFont.instance
|
7
|
+
|
8
|
+
expect(formula.fonts.count).to eq(1)
|
9
|
+
expect(formula.fonts.first[:name]).to eq("Tahoma")
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
describe "installation" do
|
14
|
+
context "with valid licence agreement", slow: true do
|
15
|
+
it "installs the valid fonts", skip_in_windows: true do
|
16
|
+
name = "Tahoma"
|
17
|
+
confirmation = "yes"
|
18
|
+
|
19
|
+
stub_fontist_path_to_temp_path
|
20
|
+
paths = Fontist::Formulas::TahomaFont.fetch_font(
|
21
|
+
name, confirmation: confirmation
|
22
|
+
)
|
23
|
+
|
24
|
+
expect(Fontist::Font.find(name)).not_to be_empty
|
25
|
+
expect(paths.first).to include("fonts/#{name.downcase}.ttf")
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
RSpec.describe Fontist::Formulas::WebdingFont do
|
4
|
+
describe "initializing" do
|
5
|
+
it "builds the data dictionary" do
|
6
|
+
formula = Fontist::Formulas::WebdingFont.instance
|
7
|
+
|
8
|
+
expect(formula.fonts.count).to eq(1)
|
9
|
+
expect(formula.fonts.first[:name]).to eq("Webdings")
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
describe "installation" do
|
14
|
+
context "with valid licence agreement", slow: true do
|
15
|
+
it "installs the valid fonts", skip_in_windows: true do
|
16
|
+
name = "Webdings"
|
17
|
+
confirmation = "yes"
|
18
|
+
|
19
|
+
stub_fontist_path_to_temp_path
|
20
|
+
paths = Fontist::Formulas::WebdingFont.fetch_font(
|
21
|
+
name, confirmation: confirmation
|
22
|
+
)
|
23
|
+
|
24
|
+
expect(Fontist::Font.find(name)).not_to be_empty
|
25
|
+
expect(paths.first).to include("fonts/#{name}.TTF")
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
RSpec.describe Fontist::Registry do
|
4
|
+
describe ".register" do
|
5
|
+
context "with no key provided" do
|
6
|
+
it "registers a fontist formula with default key" do
|
7
|
+
Fontist::Registry.register(Fontist::Formulas::DemoFormula)
|
8
|
+
demo_formula = Fontist::Registry.formulas.demo_formula
|
9
|
+
|
10
|
+
expect(demo_formula.license).to eq("Vendor specific font licences")
|
11
|
+
expect(demo_formula.fonts.first.styles.first.type).to eq("Regular")
|
12
|
+
expect(demo_formula.installer).to eq("Fontist::Formulas::DemoFormula")
|
13
|
+
expect(demo_formula.homepage).to eq("https://github.com/fontist/fontist")
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
context "with custom key provided" do
|
18
|
+
it "registers the formula with this custom key" do
|
19
|
+
Fontist::Registry.register(Fontist::Formulas::DemoFormula, :custom_key)
|
20
|
+
|
21
|
+
expect(Fontist::Registry.formulas.custom_key).not_to be_nil
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
module Fontist
|
27
|
+
module Formulas
|
28
|
+
class DemoFormula < FontFormula
|
29
|
+
key :demo_formula
|
30
|
+
desc "Demo font formula"
|
31
|
+
homepage "https://github.com/fontist/fontist"
|
32
|
+
requires_license_agreement "Vendor specific font licences"
|
33
|
+
|
34
|
+
resource "demo-formula" do
|
35
|
+
urls [ "https://github.com/fontist/fontist" ]
|
36
|
+
sha256 "594e0f42e6581add4dead70c1dfb9"
|
37
|
+
file_size "1234567890"
|
38
|
+
end
|
39
|
+
|
40
|
+
provides_font "Demo font", match_styles_from_file: {
|
41
|
+
"Regular" => "demo-font.ttf",
|
42
|
+
"Italic" => "demo-fonti.ttf"
|
43
|
+
}
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -2,7 +2,7 @@ require "spec_helper"
|
|
2
2
|
|
3
3
|
RSpec.describe Fontist::SystemFont do
|
4
4
|
describe ".find" do
|
5
|
-
context "with a
|
5
|
+
context "with a valid existing font" do
|
6
6
|
it "returns the complete font path" do
|
7
7
|
name = "DejaVuSerif.ttf"
|
8
8
|
dejavu_ttf = Fontist::SystemFont.find(name, sources: [font_sources])
|
@@ -13,17 +13,22 @@ RSpec.describe Fontist::SystemFont do
|
|
13
13
|
end
|
14
14
|
|
15
15
|
context "with valid font name" do
|
16
|
-
it "returns the complete font path",
|
17
|
-
name = "
|
18
|
-
|
19
|
-
Fontist::Formulas::
|
16
|
+
it "returns the complete font path", slow: true do
|
17
|
+
name = "Calibri"
|
18
|
+
stub_fontist_path_to_temp_path
|
19
|
+
Fontist::Formulas::ClearTypeFonts.fetch_font(name, confirmation: "yes")
|
20
20
|
|
21
|
-
|
22
|
-
expect(
|
21
|
+
calbiri = Fontist::SystemFont.find(name, sources: [font_sources])
|
22
|
+
expect(calbiri.join("|").downcase).to include("#{name.downcase}.ttf")
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
26
26
|
context "with invalid font" do
|
27
|
+
it "returns nil for partial-not match" do
|
28
|
+
name = "Deje"
|
29
|
+
expect(Fontist::SystemFont.find(name)).to be_nil
|
30
|
+
end
|
31
|
+
|
27
32
|
it "returns nill to the caller" do
|
28
33
|
name = "invalid-font.ttf"
|
29
34
|
invalid_font = Fontist::SystemFont.find(name, sources: [font_sources])
|
@@ -1,8 +1,9 @@
|
|
1
1
|
require "spec_helper"
|
2
|
-
|
3
|
-
|
2
|
+
|
3
|
+
RSpec.describe Fontist::Utils::Downloader do
|
4
|
+
describe ".download" do
|
4
5
|
it "return the valid downloaded file" do
|
5
|
-
tempfile = Fontist::Downloader.download(
|
6
|
+
tempfile = Fontist::Utils::Downloader.download(
|
6
7
|
sample_file[:file],
|
7
8
|
sha: sample_file[:sha],
|
8
9
|
file_size: sample_file[:file_size],
|
@@ -14,12 +15,12 @@ RSpec.describe Fontist::Downloader do
|
|
14
15
|
|
15
16
|
it "raises an error for tempared file" do
|
16
17
|
expect{
|
17
|
-
Fontist::Downloader.download(
|
18
|
+
Fontist::Utils::Downloader.download(
|
18
19
|
sample_file[:file],
|
19
20
|
sha: sample_file[:sha] + "mm",
|
20
21
|
file_size: sample_file[:file_size]
|
21
22
|
)
|
22
|
-
}.to raise_error(Fontist::Errors::
|
23
|
+
}.to raise_error(Fontist::Errors::TamperedFileError)
|
23
24
|
end
|
24
25
|
end
|
25
26
|
|
data/spec/spec_helper.rb
CHANGED
@@ -11,8 +11,10 @@ RSpec.configure do |config|
|
|
11
11
|
# Disable RSpec exposing methods globally on `Module` and `main`
|
12
12
|
config.disable_monkey_patching!
|
13
13
|
|
14
|
-
# Skip the
|
15
|
-
|
14
|
+
# Skip the slow tests locally
|
15
|
+
unless ENV.fetch("TEST_ENV", "local").upcase === "CI"
|
16
|
+
config.filter_run_excluding slow: true
|
17
|
+
end
|
16
18
|
|
17
19
|
config.expect_with :rspec do |c|
|
18
20
|
c.syntax = :expect
|
@@ -1,7 +1,9 @@
|
|
1
1
|
module Fontist
|
2
2
|
module Helper
|
3
|
-
def
|
4
|
-
allow(Fontist).to receive(:fontist_path).and_return(
|
3
|
+
def stub_fontist_path_to_temp_path
|
4
|
+
allow(Fontist).to receive(:fontist_path).and_return(
|
5
|
+
Fontist.root_path.join("spec", "fixtures")
|
6
|
+
)
|
5
7
|
end
|
6
8
|
end
|
7
9
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fontist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-08-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: down
|
@@ -53,6 +53,20 @@ dependencies:
|
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: 2.3.0
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: thor
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 1.0.1
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 1.0.1
|
56
70
|
- !ruby/object:Gem::Dependency
|
57
71
|
name: pry
|
58
72
|
requirement: !ruby/object:Gem::Requirement
|
@@ -126,44 +140,65 @@ files:
|
|
126
140
|
- LICENSE.txt
|
127
141
|
- README.md
|
128
142
|
- Rakefile
|
129
|
-
- assets/fonts/.keep
|
130
143
|
- bin/console
|
131
144
|
- bin/rspec
|
132
145
|
- bin/setup
|
133
146
|
- fontist.gemspec
|
134
147
|
- lib/fontist.rb
|
135
|
-
- lib/fontist/data/formulas/courier.yml
|
136
|
-
- lib/fontist/data/formulas/ms_system.yml
|
137
|
-
- lib/fontist/data/formulas/ms_vista.yml
|
138
|
-
- lib/fontist/data/formulas/source_font.yml
|
139
|
-
- lib/fontist/data/source.yml
|
140
|
-
- lib/fontist/downloader.rb
|
141
148
|
- lib/fontist/errors.rb
|
142
|
-
- lib/fontist/
|
143
|
-
- lib/fontist/
|
149
|
+
- lib/fontist/font.rb
|
150
|
+
- lib/fontist/font_formula.rb
|
151
|
+
- lib/fontist/formula.rb
|
144
152
|
- lib/fontist/formulas.rb
|
145
|
-
- lib/fontist/formulas/
|
153
|
+
- lib/fontist/formulas/andale_font.rb
|
154
|
+
- lib/fontist/formulas/arial_black_font.rb
|
155
|
+
- lib/fontist/formulas/cleartype_fonts.rb
|
156
|
+
- lib/fontist/formulas/comic_font.rb
|
146
157
|
- lib/fontist/formulas/courier_font.rb
|
147
|
-
- lib/fontist/formulas/
|
148
|
-
- lib/fontist/formulas/
|
149
|
-
- lib/fontist/formulas/
|
150
|
-
- lib/fontist/formulas/
|
151
|
-
- lib/fontist/formulas/
|
152
|
-
- lib/fontist/
|
153
|
-
- lib/fontist/
|
158
|
+
- lib/fontist/formulas/euphemia_font.rb
|
159
|
+
- lib/fontist/formulas/georgia_font.rb
|
160
|
+
- lib/fontist/formulas/impact_font.rb
|
161
|
+
- lib/fontist/formulas/montserrat_font.rb
|
162
|
+
- lib/fontist/formulas/ms_truetype_fonts.rb
|
163
|
+
- lib/fontist/formulas/open_sans_fonts.rb
|
164
|
+
- lib/fontist/formulas/overpass_font.rb
|
165
|
+
- lib/fontist/formulas/source_fonts.rb
|
166
|
+
- lib/fontist/formulas/stix_fonts.rb
|
167
|
+
- lib/fontist/formulas/tahoma_font.rb
|
168
|
+
- lib/fontist/formulas/webding_font.rb
|
169
|
+
- lib/fontist/registry.rb
|
170
|
+
- lib/fontist/system.yml
|
154
171
|
- lib/fontist/system_font.rb
|
172
|
+
- lib/fontist/utils.rb
|
173
|
+
- lib/fontist/utils/downloader.rb
|
174
|
+
- lib/fontist/utils/dsl.rb
|
175
|
+
- lib/fontist/utils/exe_extractor.rb
|
176
|
+
- lib/fontist/utils/ui.rb
|
177
|
+
- lib/fontist/utils/zip_extractor.rb
|
155
178
|
- lib/fontist/version.rb
|
156
179
|
- spec/fixtures/fonts/DejaVuSerif.ttf
|
157
|
-
- spec/fontist/
|
158
|
-
- spec/fontist/
|
159
|
-
- spec/fontist/
|
180
|
+
- spec/fontist/font_formula_spec.rb
|
181
|
+
- spec/fontist/font_spec.rb
|
182
|
+
- spec/fontist/formula_spec.rb
|
183
|
+
- spec/fontist/formulas/andale_font_spec.rb
|
184
|
+
- spec/fontist/formulas/arial_black_font_spec.rb
|
185
|
+
- spec/fontist/formulas/cleartype_fonts_spec.rb
|
186
|
+
- spec/fontist/formulas/comic_font_spec.rb
|
160
187
|
- spec/fontist/formulas/courier_font_spec.rb
|
161
|
-
- spec/fontist/formulas/
|
162
|
-
- spec/fontist/formulas/
|
163
|
-
- spec/fontist/formulas/
|
164
|
-
- spec/fontist/
|
165
|
-
- spec/fontist/
|
188
|
+
- spec/fontist/formulas/euphemia_font_spec.rb
|
189
|
+
- spec/fontist/formulas/georgia_font_spec.rb
|
190
|
+
- spec/fontist/formulas/impact_font_spec.rb
|
191
|
+
- spec/fontist/formulas/montserrat_font_spec.rb
|
192
|
+
- spec/fontist/formulas/ms_truetype_fonts_spec.rb
|
193
|
+
- spec/fontist/formulas/open_sans_fonts_spec.rb
|
194
|
+
- spec/fontist/formulas/overpass_font_spec.rb
|
195
|
+
- spec/fontist/formulas/source_fonts_spec.rb
|
196
|
+
- spec/fontist/formulas/stix_fonts_spec.rb
|
197
|
+
- spec/fontist/formulas/tahoma_font_spec.rb
|
198
|
+
- spec/fontist/formulas/webding_font_spec.rb
|
199
|
+
- spec/fontist/registry_spec.rb
|
166
200
|
- spec/fontist/system_font_spec.rb
|
201
|
+
- spec/fontist/utils/downloader_spec.rb
|
167
202
|
- spec/fontist_spec.rb
|
168
203
|
- spec/spec_helper.rb
|
169
204
|
- spec/support/fontist_helper.rb
|