fontisan 0.2.5 → 0.2.6

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: f9e4f20ee30027ebf8a4b3ab32962f140f534499bbf092a9612536e55ba32a98
4
- data.tar.gz: 04d9460282cb09bbecc12cb370ccbbadcaceea130eff6287a8ac30042b3e3a0f
3
+ metadata.gz: 9ee842928fa05a0dceee00f233fe76f0f392083087807e8d85dc2ab3840b17e4
4
+ data.tar.gz: fd136b7b46e1cf21b3bcd9a968fb13cf9abe59bff4b6c73b798db8bee40d7a02
5
5
  SHA512:
6
- metadata.gz: 87bb6f593f2ff100fec38820360a540323fd25a2c54309b7a639829b3536d31b8bdbc188071677aebb1d3fbf9fd0e3ddcd5777b4c2444d8150873a8a75989bfa
7
- data.tar.gz: b22a61de6d8cf929c951dfda40a5388331b2a23ca72dc785d96a872d102733dab263de01036968547702a2e421673315d83c50672efd813d1191d0ca7a31079b
6
+ metadata.gz: b0d3626427babba6144519e649ac113673a42d89ff1fde9b2c854d7ec72e8ef3aa4434cb98cc59c6243c0b428607c6ad30b746955afbec9452f2b06fbb31ba54
7
+ data.tar.gz: 3d871f07e2591a82081cf1c5f7582d3e731f1d1cf1fc0e416ff0c9216de417046220bd6afd8d482c6c096a2c96639004e567cec74c3ef8b9eac2c9815d2c5738
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2026-01-03 10:07:45 UTC using RuboCop version 1.81.7.
3
+ # on 2026-01-05 11:02:40 UTC using RuboCop version 1.81.7.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
@@ -34,7 +34,7 @@ Layout/EmptyLinesAroundExceptionHandlingKeywords:
34
34
  Exclude:
35
35
  - 'lib/fontisan/hints/hint_validator.rb'
36
36
 
37
- # Offense count: 31
37
+ # Offense count: 32
38
38
  # This cop supports safe autocorrection (--autocorrect).
39
39
  # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
40
40
  Layout/ExtraSpacing:
@@ -49,14 +49,23 @@ Layout/ExtraSpacing:
49
49
  - 'spec/fontisan/tables/sbix_spec.rb'
50
50
  - 'spec/fontisan/validators/basic_validator_spec.rb'
51
51
  - 'spec/integration/color_emoji_fonts_spec.rb'
52
+ - 'spec/integration/dfont_pack_spec.rb'
52
53
 
53
- # Offense count: 1242
54
+ # Offense count: 1309
54
55
  # This cop supports safe autocorrection (--autocorrect).
55
56
  # Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
56
57
  # URISchemes: http, https
57
58
  Layout/LineLength:
58
59
  Enabled: false
59
60
 
61
+ # Offense count: 1
62
+ # This cop supports safe autocorrection (--autocorrect).
63
+ # Configuration parameters: EnforcedStyle.
64
+ # SupportedStyles: final_newline, final_blank_line
65
+ Layout/TrailingEmptyLines:
66
+ Exclude:
67
+ - 'spec/integration/dfont_pack_spec.rb'
68
+
60
69
  # Offense count: 18
61
70
  # This cop supports safe autocorrection (--autocorrect).
62
71
  # Configuration parameters: AllowInHeredoc.
@@ -64,7 +73,7 @@ Layout/TrailingWhitespace:
64
73
  Exclude:
65
74
  - 'spec/fontisan/converters/woff2_encoder_integration_spec.rb'
66
75
 
67
- # Offense count: 25
76
+ # Offense count: 27
68
77
  # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
69
78
  Lint/DuplicateBranch:
70
79
  Enabled: false
@@ -116,13 +125,14 @@ Lint/UnusedBlockArgument:
116
125
  - 'spec/fontisan/validators/profile_loader_spec.rb'
117
126
  - 'spec/fontisan/validators/validator_spec.rb'
118
127
 
119
- # Offense count: 11
128
+ # Offense count: 13
120
129
  # This cop supports safe autocorrection (--autocorrect).
121
130
  # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods, NotImplementedExceptions.
122
131
  # NotImplementedExceptions: NotImplementedError
123
132
  Lint/UnusedMethodArgument:
124
133
  Exclude:
125
134
  - 'lib/fontisan.rb'
135
+ - 'lib/fontisan/converters/collection_converter.rb'
126
136
  - 'lib/fontisan/font_loader.rb'
127
137
  - 'lib/fontisan/optimizers/charstring_rewriter.rb'
128
138
  - 'lib/fontisan/tables/cff2/private_dict_blend_handler.rb'
@@ -149,12 +159,12 @@ Lint/UselessAssignment:
149
159
  - 'spec/fontisan/hints/hint_round_trip_spec.rb'
150
160
  - 'spec/fontisan/validators/validator_spec.rb'
151
161
 
152
- # Offense count: 452
162
+ # Offense count: 464
153
163
  # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
154
164
  Metrics/AbcSize:
155
165
  Enabled: false
156
166
 
157
- # Offense count: 29
167
+ # Offense count: 30
158
168
  # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
159
169
  # AllowedMethods: refine
160
170
  Metrics/BlockLength:
@@ -165,23 +175,23 @@ Metrics/BlockLength:
165
175
  Metrics/BlockNesting:
166
176
  Max: 5
167
177
 
168
- # Offense count: 230
178
+ # Offense count: 234
169
179
  # Configuration parameters: AllowedMethods, AllowedPatterns, Max.
170
180
  Metrics/CyclomaticComplexity:
171
181
  Enabled: false
172
182
 
173
- # Offense count: 678
183
+ # Offense count: 706
174
184
  # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
175
185
  Metrics/MethodLength:
176
186
  Max: 135
177
187
 
178
- # Offense count: 19
188
+ # Offense count: 20
179
189
  # Configuration parameters: CountKeywordArgs.
180
190
  Metrics/ParameterLists:
181
191
  Max: 39
182
192
  MaxOptionalParameters: 4
183
193
 
184
- # Offense count: 167
194
+ # Offense count: 171
185
195
  # Configuration parameters: AllowedMethods, AllowedPatterns, Max.
186
196
  Metrics/PerceivedComplexity:
187
197
  Enabled: false
@@ -196,7 +206,7 @@ Naming/MethodParameterName:
196
206
  - 'lib/fontisan/tables/glyf/curve_converter.rb'
197
207
  - 'lib/fontisan/variation/optimizer.rb'
198
208
 
199
- # Offense count: 84
209
+ # Offense count: 87
200
210
  # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
201
211
  # SupportedStyles: snake_case, normalcase, non_integer
202
212
  # AllowedIdentifiers: TLS1_1, TLS1_2, capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
@@ -245,7 +255,7 @@ RSpec/AnyInstance:
245
255
  RSpec/ContextWording:
246
256
  Enabled: false
247
257
 
248
- # Offense count: 21
258
+ # Offense count: 22
249
259
  # Configuration parameters: IgnoredMetadata.
250
260
  RSpec/DescribeClass:
251
261
  Enabled: false
@@ -256,7 +266,7 @@ RSpec/DescribeMethod:
256
266
  - 'spec/fontisan/collection/variable_font_builder_spec.rb'
257
267
  - 'spec/fontisan/converters/woff2_encoder_integration_spec.rb'
258
268
 
259
- # Offense count: 1269
269
+ # Offense count: 1284
260
270
  # Configuration parameters: CountAsOne.
261
271
  RSpec/ExampleLength:
262
272
  Max: 66
@@ -330,7 +340,7 @@ RSpec/MultipleDescribes:
330
340
  - 'spec/fontisan/utils/thread_pool_spec.rb'
331
341
  - 'spec/fontisan/variation/cache_spec.rb'
332
342
 
333
- # Offense count: 1674
343
+ # Offense count: 1688
334
344
  RSpec/MultipleExpectations:
335
345
  Max: 22
336
346
 
@@ -404,7 +414,7 @@ RSpec/VerifiedDoubleReference:
404
414
  Exclude:
405
415
  - 'spec/fontisan/variation/parallel_generator_spec.rb'
406
416
 
407
- # Offense count: 288
417
+ # Offense count: 289
408
418
  # Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
409
419
  RSpec/VerifiedDoubles:
410
420
  Enabled: false
@@ -450,12 +460,13 @@ Style/ConditionalAssignment:
450
460
  Exclude:
451
461
  - 'lib/fontisan/formatters/text_formatter.rb'
452
462
 
453
- # Offense count: 1
463
+ # Offense count: 2
454
464
  # This cop supports safe autocorrection (--autocorrect).
455
465
  # Configuration parameters: EnforcedStyle, AllowComments.
456
466
  # SupportedStyles: empty, nil, both
457
467
  Style/EmptyElse:
458
468
  Exclude:
469
+ - 'lib/fontisan/commands/convert_command.rb'
459
470
  - 'lib/fontisan/validators/validator.rb'
460
471
 
461
472
  # Offense count: 17
@@ -562,12 +573,13 @@ Style/RescueStandardError:
562
573
  - 'lib/fontisan/commands/validate_command.rb'
563
574
  - 'lib/fontisan/validators/validator.rb'
564
575
 
565
- # Offense count: 6
576
+ # Offense count: 7
566
577
  # This cop supports unsafe autocorrection (--autocorrect-all).
567
578
  # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
568
579
  # AllowedMethods: present?, blank?, presence, try, try!
569
580
  Style/SafeNavigation:
570
581
  Exclude:
582
+ - 'lib/fontisan/cli.rb'
571
583
  - 'lib/fontisan/tables/maxp.rb'
572
584
  - 'lib/fontisan/tables/os2.rb'
573
585
  - 'lib/fontisan/validators/validator.rb'
@@ -586,12 +598,14 @@ Style/StringConcatenation:
586
598
  Exclude:
587
599
  - 'spec/fontisan/tables/cbdt_spec.rb'
588
600
 
589
- # Offense count: 48
601
+ # Offense count: 53
590
602
  # This cop supports safe autocorrection (--autocorrect).
591
603
  # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
592
604
  # SupportedStyles: single_quotes, double_quotes
593
605
  Style/StringLiterals:
594
606
  Exclude:
607
+ - 'lib/fontisan/commands/convert_command.rb'
608
+ - 'lib/fontisan/converters/collection_converter.rb'
595
609
  - 'lib/fontisan/validators/font_book_validator.rb'
596
610
  - 'lib/fontisan/validators/opentype_validator.rb'
597
611
  - 'lib/fontisan/validators/web_font_validator.rb'
@@ -616,13 +630,14 @@ Style/SymbolProc:
616
630
  - 'lib/fontisan/validators/web_font_validator.rb'
617
631
  - 'spec/fontisan/validators/validator_spec.rb'
618
632
 
619
- # Offense count: 65
633
+ # Offense count: 69
620
634
  # This cop supports safe autocorrection (--autocorrect).
621
635
  # Configuration parameters: EnforcedStyleForMultiline.
622
636
  # SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
623
637
  Style/TrailingCommaInArguments:
624
638
  Exclude:
625
639
  - 'lib/fontisan/cli.rb'
640
+ - 'lib/fontisan/commands/convert_command.rb'
626
641
  - 'lib/fontisan/commands/info_command.rb'
627
642
  - 'spec/fontisan/converters/woff2_encoder_integration_spec.rb'
628
643
  - 'spec/fontisan/models/validation_report_spec.rb'
@@ -631,6 +646,7 @@ Style/TrailingCommaInArguments:
631
646
  - 'spec/fontisan/tables/sbix_spec.rb'
632
647
  - 'spec/fontisan/validators/basic_validator_spec.rb'
633
648
  - 'spec/integration/color_emoji_fonts_spec.rb'
649
+ - 'spec/integration/dfont_pack_spec.rb'
634
650
 
635
651
  # Offense count: 12
636
652
  # This cop supports safe autocorrection (--autocorrect).