fontist 1.13.0 → 1.13.1
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 +4 -4
- data/lib/fontist/import/google/skiplist.yml +1 -0
- data/lib/fontist/utils/downloader.rb +5 -8
- 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: f376e0b45e530b28be9d60c132b3840d4485103995fc435c0512b07bf6e20435
|
4
|
+
data.tar.gz: b8c8aa1f3de0b627bcaffe09b45398dd60a0ba2a3a2163599263461acb179292
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 157c06d56119a5e94a7a15b33b7b1e65695eb94af595f618bbbcf382f8d201d8db7f1a51ed2e3b20cf56d0339a7bd33dc2be82900de1851e29ee31225d2f8054
|
7
|
+
data.tar.gz: 3fabd78041974540dc3504c293e335cfd39d241c5cd80da8fd0eef2b6b0a0e6a49701baf4c13e4c151ff397c8aaa6d9d542b37a45b52610ca404bb0abcef004a
|
@@ -24,7 +24,7 @@ module Fontist
|
|
24
24
|
download_file
|
25
25
|
end
|
26
26
|
|
27
|
-
|
27
|
+
check_tampered(file)
|
28
28
|
|
29
29
|
file
|
30
30
|
end
|
@@ -33,15 +33,12 @@ module Fontist
|
|
33
33
|
|
34
34
|
attr_reader :file, :sha, :file_size
|
35
35
|
|
36
|
-
def
|
36
|
+
def check_tampered(file)
|
37
37
|
file_checksum = Digest::SHA256.file(file).to_s
|
38
38
|
if !sha.empty? && !sha.include?(file_checksum)
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
"match with the expected sha256 checksum (#{file_checksum})!\n" \
|
43
|
-
"Beginning of content: #{File.read(file, 3000)}",
|
44
|
-
),
|
39
|
+
Fontist.ui.error(
|
40
|
+
"SHA256 checksum mismatch for #{url}: #{file_checksum}, " \
|
41
|
+
"should be #{sha.join(', or ')}.",
|
45
42
|
)
|
46
43
|
end
|
47
44
|
end
|
data/lib/fontist/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fontist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.13.
|
4
|
+
version: 1.13.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: down
|