fontist 1.13.0 → 1.13.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 43f3bc7643cf7694fb753d9c62509f7134a26d68fb41a2e06c9c9e25f33ae2c5
4
- data.tar.gz: 3269f7aedc78eed761697ff862701bf6ca27679e9be90972d8983e913a15beea
3
+ metadata.gz: f376e0b45e530b28be9d60c132b3840d4485103995fc435c0512b07bf6e20435
4
+ data.tar.gz: b8c8aa1f3de0b627bcaffe09b45398dd60a0ba2a3a2163599263461acb179292
5
5
  SHA512:
6
- metadata.gz: a92d2d69bed9e8e33fc9785f198c9878d1a02dda4de65f290ecff30336adec6117cfd18cc09d52545f318a917b40e02b4d796049384b6b6c12fee05d2056283f
7
- data.tar.gz: ffdb9a02c723a5a8c04c26c3f3d5a0d0bba4e875fd750bee67a3c68698d2f2e9057ff936019523d3eb9a359bbbf19de566c45acb99fff99b745952039add7e30
6
+ metadata.gz: 157c06d56119a5e94a7a15b33b7b1e65695eb94af595f618bbbcf382f8d201d8db7f1a51ed2e3b20cf56d0339a7bd33dc2be82900de1851e29ee31225d2f8054
7
+ data.tar.gz: 3fabd78041974540dc3504c293e335cfd39d241c5cd80da8fd0eef2b6b0a0e6a49701baf4c13e4c151ff397c8aaa6d9d542b37a45b52610ca404bb0abcef004a
@@ -9,3 +9,4 @@
9
9
  - Andika
10
10
  - Harmattan
11
11
  - Padauk
12
+ - STIX Two Math
@@ -24,7 +24,7 @@ module Fontist
24
24
  download_file
25
25
  end
26
26
 
27
- raise_if_tampered(file)
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 raise_if_tampered(file)
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
- raise(
40
- Fontist::Errors::TamperedFileError.new(
41
- "The downloaded file from #{@file} doesn't " \
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
@@ -1,3 +1,3 @@
1
1
  module Fontist
2
- VERSION = "1.13.0".freeze
2
+ VERSION = "1.13.1".freeze
3
3
  end
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.0
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: 2021-12-07 00:00:00.000000000 Z
11
+ date: 2022-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: down