fontist 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec6fb2284e060c8f43ac62c16a9777d25d20886ef2ff687eecdfb963980bb350
4
- data.tar.gz: ddcba3ee0f0a7c75f23532d7809c7c40492583ba032b4ebbc204d0730f6af9a4
3
+ metadata.gz: 0eabd37a359d5d16263d7aacc3e3c4ed215619eb257d20bbe9c1505786a4ba70
4
+ data.tar.gz: 491a3dbdf9b4d2a2b1d74b3f07bb11d65e238bcf87f316d1d48b9707739d8202
5
5
  SHA512:
6
- metadata.gz: 7bfc0b3cb5597ceca0474c95d47a26e993ccf91773b4a17b10f08c84ac2ec4dfed40d3a271b309c6b2f7c77cd14dca5978b88a274c7aba3ba3ee95b25afcea30
7
- data.tar.gz: af007b2fda60f2f53bf2be5c107bf27ec423b9759f62c6827bdecc50ed62bf56a4f4f0969ec9d74f91631f92cad75c0564182424ef2b5754ead6c9335ae87ac1
6
+ metadata.gz: a9921980bec05a202f13786302e859f2f7660492ff8db9339c02a7088989d6bb0478139cf1846c05e9967272914c3a87822e827a658c5046ca1611f7ed0588b0
7
+ data.tar.gz: 2ac883da0ac5488ae0d58fa81da7473e40dfeb610a91bdc1286059c1edad816f99e892ec19a5e4ee57df835af8a27ba511c6359062cf8dba15b9d0fb07ba1619
@@ -5,5 +5,6 @@ module Fontist
5
5
  class NonSupportedFontError < StandardError; end
6
6
  class TemparedFileError < StandardError; end
7
7
  class InvalidResourceError < StandardError; end
8
+ class TimeoutError < StandardError; end
8
9
  end
9
10
  end
@@ -4,24 +4,23 @@ module Fontist
4
4
  desc "Microsoft Tahoma Font"
5
5
  homepage "https://www.microsoft.com"
6
6
 
7
- resource "wd97vwr32.exe" do
7
+ resource "IELPKTH.CAB" do
8
8
  urls [
9
- "https://nchc.dl.sourceforge.net/project/corefonts/the%20fonts/final/wd97vwr32.exe",
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
- sha256 "f61126a6d17b2d126a7f31b142504dce4934f7989c55f1c13c6477b3fe80b3d2"
11
+
12
+ sha256 "c1be3fb8f0042570be76ec6daa03a99142c88367c1bc810240b85827c715961a"
13
13
  end
14
14
 
15
15
  provides_font("Tahoma", match_styles_from_file: {
16
- "Regular" => "tahoma.TTF"
16
+ "Regular" => "tahoma.ttf",
17
+ "Bold" => "tahomabd.ttf"
17
18
  })
18
19
 
19
20
  def extract
20
- resource("wd97vwr32.exe") do |resource|
21
- exe_extract(resource) do |dir|
22
- cab_extract(dir["Viewer1.cab"]) do |fontdir|
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
@@ -46,6 +46,8 @@ module Fontist
46
46
 
47
47
  Down.download(
48
48
  @file,
49
+ open_timeout: 10,
50
+ read_timeout: 10,
49
51
  progress_proc: -> (progress) {
50
52
  bar.increment(progress / byte_to_megabyte) if @progress_bar === true
51
53
  }
@@ -1,3 +1,3 @@
1
1
  module Fontist
2
- VERSION = "1.1.0".freeze
2
+ VERSION = "1.2.0".freeze
3
3
  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: 1.1.0
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-18 00:00:00.000000000 Z
12
+ date: 2020-07-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: down