fontist 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fontist/errors.rb +1 -0
- data/lib/fontist/formulas/tahoma_font.rb +9 -10
- data/lib/fontist/utils/downloader.rb +2 -0
- data/lib/fontist/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0eabd37a359d5d16263d7aacc3e3c4ed215619eb257d20bbe9c1505786a4ba70
|
4
|
+
data.tar.gz: 491a3dbdf9b4d2a2b1d74b3f07bb11d65e238bcf87f316d1d48b9707739d8202
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9921980bec05a202f13786302e859f2f7660492ff8db9339c02a7088989d6bb0478139cf1846c05e9967272914c3a87822e827a658c5046ca1611f7ed0588b0
|
7
|
+
data.tar.gz: 2ac883da0ac5488ae0d58fa81da7473e40dfeb610a91bdc1286059c1edad816f99e892ec19a5e4ee57df835af8a27ba511c6359062cf8dba15b9d0fb07ba1619
|
data/lib/fontist/errors.rb
CHANGED
@@ -4,24 +4,23 @@ module Fontist
|
|
4
4
|
desc "Microsoft Tahoma Font"
|
5
5
|
homepage "https://www.microsoft.com"
|
6
6
|
|
7
|
-
resource "
|
7
|
+
resource "IELPKTH.CAB" do
|
8
8
|
urls [
|
9
|
-
"https://
|
10
|
-
"http://sourceforge.mirrorservice.org/c/co/corefonts/the%20fonts/final/wd97vwr32.exe"
|
9
|
+
"https://master.dl.sourceforge.net/project/corefonts/OldFiles/IELPKTH.CAB"
|
11
10
|
]
|
12
|
-
|
11
|
+
|
12
|
+
sha256 "c1be3fb8f0042570be76ec6daa03a99142c88367c1bc810240b85827c715961a"
|
13
13
|
end
|
14
14
|
|
15
15
|
provides_font("Tahoma", match_styles_from_file: {
|
16
|
-
"Regular" => "tahoma.
|
16
|
+
"Regular" => "tahoma.ttf",
|
17
|
+
"Bold" => "tahomabd.ttf"
|
17
18
|
})
|
18
19
|
|
19
20
|
def extract
|
20
|
-
resource("
|
21
|
-
|
22
|
-
|
23
|
-
match_fonts(fontdir, "Tahoma")
|
24
|
-
end
|
21
|
+
resource("IELPKTH.CAB") do |resource|
|
22
|
+
cab_extract(resource) do |fontdir|
|
23
|
+
match_fonts(fontdir, "Tahoma")
|
25
24
|
end
|
26
25
|
end
|
27
26
|
end
|
data/lib/fontist/version.rb
CHANGED
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: 1.
|
4
|
+
version: 1.2.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-07-
|
12
|
+
date: 2020-07-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: down
|