fontist 2.2.0 → 2.2.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/font.rb +1 -0
- data/lib/fontist/font_installer.rb +1 -0
- data/lib/fontist/formula.rb +7 -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: 6948ddb57a14b1c4336d618e0acefbec39af45062ddae01eefedfe03f15ae5d3
|
|
4
|
+
data.tar.gz: be5a073f2f186b62c813183716d48dd80760f5f84d84494f364768b37ec63319
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8a1fe40574d4854eb1ddba3b7c62b7d5f7e99868b2ca4a2c21876486621ba6cad887b19225bb5ee7b72e5a14fc77f60098afd712af93c5fc9cc8fdc4ab627109
|
|
7
|
+
data.tar.gz: 7291f52e6a601d25b55dece3cd3563e41fd3c388f506a0da6128562b221d9f9f8d6f211c0c10941e87bc758357a69220c4563e767e7840680cc6584ae1526a7a
|
data/lib/fontist/font.rb
CHANGED
|
@@ -267,6 +267,7 @@ module Fontist
|
|
|
267
267
|
|
|
268
268
|
def check_and_confirm_required_license(formula)
|
|
269
269
|
return @confirmation unless formula.license_required?
|
|
270
|
+
return @confirmation if formula.licensed_for_current_platform?
|
|
270
271
|
|
|
271
272
|
show_license(formula) unless @hide_licenses
|
|
272
273
|
return @confirmation if @confirmation.casecmp?("yes")
|
data/lib/fontist/formula.rb
CHANGED
|
@@ -336,6 +336,13 @@ module Fontist
|
|
|
336
336
|
requires_license_agreement ? true : false
|
|
337
337
|
end
|
|
338
338
|
|
|
339
|
+
def licensed_for_current_platform?
|
|
340
|
+
return false unless platforms && !platforms.empty?
|
|
341
|
+
|
|
342
|
+
current_os = Utils::System.user_os.to_s
|
|
343
|
+
platforms.any? { |p| p == current_os || p.start_with?("#{current_os}-") }
|
|
344
|
+
end
|
|
345
|
+
|
|
339
346
|
def file_size
|
|
340
347
|
return nil if resources.nil? || resources.empty?
|
|
341
348
|
|
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: 2.2.
|
|
4
|
+
version: 2.2.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: 2026-03-
|
|
11
|
+
date: 2026-03-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: down
|