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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 77c24ea82517ab8ea581b9f666eaf9177289848c489077c2fad2ea0ab528541f
4
- data.tar.gz: 277836dbbefc29902a8212981ef06e60829ac4f102f130491ff9f03f896b67fd
3
+ metadata.gz: 6948ddb57a14b1c4336d618e0acefbec39af45062ddae01eefedfe03f15ae5d3
4
+ data.tar.gz: be5a073f2f186b62c813183716d48dd80760f5f84d84494f364768b37ec63319
5
5
  SHA512:
6
- metadata.gz: a1e3e14bc5febf2ca5afcbdfef1e89e6370ebc00b60b5b6fcb376e976219e76607b224de8a6d44c3cdc31b897823a50380a2a9292dea03ef783cd8c48dc92c1c
7
- data.tar.gz: e7d1eed5edd5722a07f1801ccdd074c580d60465f7b2fa9707b45cea77b5e5370579121eb53c93a18d8145814a4ee3e132e3730591c95cdbebf67e445cf803af
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")
@@ -58,6 +58,7 @@ module Fontist
58
58
 
59
59
  def license_is_accepted?(confirmation)
60
60
  return true unless @formula.license_required?
61
+ return true if @formula.licensed_for_current_platform?
61
62
 
62
63
  "yes".casecmp?(confirmation)
63
64
  end
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Fontist
2
- VERSION = "2.2.0".freeze
2
+ VERSION = "2.2.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: 2.2.0
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-24 00:00:00.000000000 Z
11
+ date: 2026-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: down