fontist 2.1.5 → 2.2.0

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.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +5 -0
  3. data/.rubocop_todo.yml +476 -11
  4. data/README.adoc +1 -1
  5. data/TODO.fontist-v5.md +196 -0
  6. data/fontist.gemspec +1 -1
  7. data/lib/fontist/cache/store.rb +17 -7
  8. data/lib/fontist/cli.rb +116 -0
  9. data/lib/fontist/errors.rb +61 -0
  10. data/lib/fontist/extract.rb +13 -0
  11. data/lib/fontist/font.rb +9 -1
  12. data/lib/fontist/font_collection.rb +1 -0
  13. data/lib/fontist/font_finder.rb +154 -0
  14. data/lib/fontist/font_installer.rb +172 -15
  15. data/lib/fontist/font_model.rb +1 -0
  16. data/lib/fontist/font_path.rb +4 -4
  17. data/lib/fontist/font_style.rb +17 -0
  18. data/lib/fontist/format_matcher.rb +176 -0
  19. data/lib/fontist/format_spec.rb +80 -0
  20. data/lib/fontist/formula.rb +126 -215
  21. data/lib/fontist/formula_picker.rb +39 -4
  22. data/lib/fontist/import/create_formula.rb +80 -3
  23. data/lib/fontist/import/formula_builder.rb +5 -1
  24. data/lib/fontist/import/google/font_database.rb +15 -153
  25. data/lib/fontist/import/google/formula_builder.rb +26 -0
  26. data/lib/fontist/import/google/formula_builders/base_formula_builder.rb +93 -0
  27. data/lib/fontist/import/google/formula_builders/formula_builder_v4.rb +155 -0
  28. data/lib/fontist/import/google/formula_builders/formula_builder_v5.rb +193 -0
  29. data/lib/fontist/import/google_fonts_importer.rb +17 -5
  30. data/lib/fontist/import/{macos.rb → macos_importer.rb} +4 -2
  31. data/lib/fontist/import/recursive_extraction.rb +2 -0
  32. data/lib/fontist/import/{sil_import.rb → sil_importer.rb} +3 -1
  33. data/lib/fontist/import/upgrade_formulas.rb +1 -1
  34. data/lib/fontist/import/v4_to_v5_migrator.rb +263 -0
  35. data/lib/fontist/import_cli.rb +20 -2
  36. data/lib/fontist/indexes/index_mixin.rb +8 -4
  37. data/lib/fontist/manifest.rb +27 -1
  38. data/lib/fontist/path_scanning.rb +1 -1
  39. data/lib/fontist/resource.rb +54 -0
  40. data/lib/fontist/resource_collection.rb +18 -0
  41. data/lib/fontist/system_index.rb +18 -9
  42. data/lib/fontist/utils/downloader.rb +0 -2
  43. data/lib/fontist/utils/github_client.rb +5 -2
  44. data/lib/fontist/utils/github_url.rb +4 -3
  45. data/lib/fontist/utils.rb +1 -1
  46. data/lib/fontist/version.rb +1 -1
  47. data/lib/fontist.rb +3 -2
  48. metadata +19 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0625c7b3933a74de8462f617558b73b8c4a27112e42a4066209dd66f805df21d
4
- data.tar.gz: 7fb21a4892763ed22113cec7950af17a6c716d00f3dc8b569a636c3de013a594
3
+ metadata.gz: 77c24ea82517ab8ea581b9f666eaf9177289848c489077c2fad2ea0ab528541f
4
+ data.tar.gz: 277836dbbefc29902a8212981ef06e60829ac4f102f130491ff9f03f896b67fd
5
5
  SHA512:
6
- metadata.gz: 8446fbdb79e95e818298e6ed0f487789299992afc598676f5bd7f376e8c3dbedc267d46ffcf9acf6cf67c5bb66d96d34338677ce7f9818d0c167729e6db1770e
7
- data.tar.gz: 9ca12d1d2a163a289fe0ed5cef1bee92f0f5d6e48b3b79c30c9a9eb86da189802fce19c66393736038d925822524357066d91bed1c54699509a5b26b119cac11
6
+ metadata.gz: a1e3e14bc5febf2ca5afcbdfef1e89e6370ebc00b60b5b6fcb376e976219e76607b224de8a6d44c3cdc31b897823a50380a2a9292dea03ef783cd8c48dc92c1c
7
+ data.tar.gz: e7d1eed5edd5722a07f1801ccdd074c580d60465f7b2fa9707b45cea77b5e5370579121eb53c93a18d8145814a4ee3e132e3730591c95cdbebf67e445cf803af
data/.gitignore CHANGED
@@ -8,6 +8,9 @@
8
8
  /tmp/
9
9
  Gemfile.lock
10
10
 
11
+ # backup files
12
+ *.orig
13
+
11
14
  # fonts
12
15
  /spec/fixtures/fonts/*
13
16
  /spec/fixtures/fonts/DejaVuSerif.ttf
@@ -33,4 +36,6 @@ CLAUDE.md
33
36
  # macOS font catalogs (downloaded via rake task)
34
37
  /spec/fixtures/macos_catalogs/com_apple_MobileAsset_Font*.xml
35
38
 
39
+ CLAUDE.md
40
+ /cache/
36
41
  .lycheecache
data/.rubocop_todo.yml CHANGED
@@ -1,40 +1,505 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2026-01-21 22:46:14 UTC using RuboCop version 1.82.1.
3
+ # on 2026-03-18 07:11:54 UTC using RuboCop version 1.85.1.
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
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 25
9
+ # Offense count: 1
10
+ # This cop supports safe autocorrection (--autocorrect).
11
+ Layout/ElseAlignment:
12
+ Exclude:
13
+ - 'script/validate_v5_urls.rb'
14
+
15
+ # Offense count: 3
16
+ # This cop supports safe autocorrection (--autocorrect).
17
+ Layout/EmptyLineAfterGuardClause:
18
+ Exclude:
19
+ - 'lib/fontist/extract.rb'
20
+ - 'script/validate_v5_urls.rb'
21
+
22
+ # Offense count: 2
23
+ # This cop supports safe autocorrection (--autocorrect).
24
+ # Configuration parameters: EnforcedStyle.
25
+ # SupportedStyles: empty_lines, no_empty_lines
26
+ Layout/EmptyLinesAroundBlockBody:
27
+ Exclude:
28
+ - 'spec/fontist/import/v4_to_v5_migrator_spec.rb'
29
+ - 'spec/fontist/v5_integration_spec.rb'
30
+
31
+ # Offense count: 1
32
+ # This cop supports safe autocorrection (--autocorrect).
33
+ # Configuration parameters: EnforcedStyle.
34
+ # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
35
+ Layout/EmptyLinesAroundClassBody:
36
+ Exclude:
37
+ - 'lib/fontist/font_finder.rb'
38
+
39
+ # Offense count: 1
40
+ # This cop supports safe autocorrection (--autocorrect).
41
+ # Configuration parameters: EnforcedStyleAlignWith.
42
+ # SupportedStylesAlignWith: keyword, variable, start_of_line
43
+ Layout/EndAlignment:
44
+ Exclude:
45
+ - 'script/validate_v5_urls.rb'
46
+
47
+ # Offense count: 1
48
+ # This cop supports safe autocorrection (--autocorrect).
49
+ # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
50
+ Layout/ExtraSpacing:
51
+ Exclude:
52
+ - 'lib/fontist/import/google/formula_builders/formula_builder_v4.rb'
53
+
54
+ # Offense count: 15
55
+ # This cop supports safe autocorrection (--autocorrect).
56
+ # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
57
+ # SupportedHashRocketStyles: key, separator, table
58
+ # SupportedColonStyles: key, separator, table
59
+ # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
60
+ Layout/HashAlignment:
61
+ Exclude:
62
+ - 'script/validate_v5_urls.rb'
63
+
64
+ # Offense count: 1
65
+ # This cop supports safe autocorrection (--autocorrect).
66
+ # Configuration parameters: Width, EnforcedStyleAlignWith, AllowedPatterns.
67
+ # SupportedStylesAlignWith: start_of_line, relative_to_receiver
68
+ Layout/IndentationWidth:
69
+ Exclude:
70
+ - 'script/validate_v5_urls.rb'
71
+
72
+ # Offense count: 1
73
+ # This cop supports safe autocorrection (--autocorrect).
74
+ # Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment, AllowRBSInlineAnnotation, AllowSteepAnnotation.
75
+ Layout/LeadingCommentSpace:
76
+ Exclude:
77
+ - 'spec/fontist/install_locations/system_location_spec.rb'
78
+
79
+ # Offense count: 1
80
+ # This cop supports safe autocorrection (--autocorrect).
81
+ Layout/LeadingEmptyLines:
82
+ Exclude:
83
+ - 'lib/fontist/macos_import_source.rb'
84
+
85
+ # Offense count: 2
86
+ # This cop supports safe autocorrection (--autocorrect).
87
+ # Configuration parameters: EnforcedStyle.
88
+ # SupportedStyles: space, no_space
89
+ Layout/LineContinuationSpacing:
90
+ Exclude:
91
+ - 'lib/fontist/import/google/data_sources/github.rb'
92
+
93
+ # Offense count: 1
94
+ # This cop supports safe autocorrection (--autocorrect).
95
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
96
+ # SupportedStyles: aligned, indented
97
+ Layout/LineEndStringConcatenationIndentation:
98
+ Exclude:
99
+ - 'lib/fontist/errors.rb'
100
+
101
+ # Offense count: 674
10
102
  # This cop supports safe autocorrection (--autocorrect).
11
103
  # Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
12
104
  # URISchemes: http, https
13
105
  Layout/LineLength:
14
- Exclude:
15
- - 'spec/fontist/manifest_spec.rb'
16
- - 'spec/support/platform_fonts.rb'
106
+ Enabled: false
17
107
 
18
108
  # Offense count: 1
19
109
  # This cop supports safe autocorrection (--autocorrect).
20
- # Configuration parameters: AllowComments.
21
- Lint/EmptyConditionalBody:
110
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
111
+ # SupportedStyles: aligned, indented
112
+ Layout/MultilineOperationIndentation:
113
+ Exclude:
114
+ - 'script/validate_v5_formulas.rb'
115
+
116
+ # Offense count: 5
117
+ # This cop supports safe autocorrection (--autocorrect).
118
+ Lint/AmbiguousOperatorPrecedence:
119
+ Exclude:
120
+ - 'lib/fontist/import/import_display.rb'
121
+ - 'lib/fontist/utils/downloader.rb'
122
+ - 'lib/fontist/utils/system.rb'
123
+
124
+ # Offense count: 1
125
+ Lint/CopDirectiveSyntax:
126
+ Exclude:
127
+ - 'spec/support/fontist_helper.rb'
128
+
129
+ # Offense count: 3
130
+ # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
131
+ Lint/DuplicateBranch:
132
+ Exclude:
133
+ - 'lib/fontist/helpers.rb'
134
+ - 'lib/fontist/import/import_display.rb'
135
+ - 'lib/fontist/utils/downloader.rb'
136
+
137
+ # Offense count: 2
138
+ Lint/DuplicateMethods:
139
+ Exclude:
140
+ - 'lib/fontist/import/recursive_extraction.rb'
141
+ - 'lib/fontist/system_index.rb'
142
+
143
+ # Offense count: 9
144
+ # Configuration parameters: AllowComments, AllowEmptyLambdas.
145
+ Lint/EmptyBlock:
146
+ Exclude:
147
+ - 'spec/fontist/resources/apple_cdn_resource_spec.rb'
148
+ - 'spec/fontist/utils/file_ops_spec.rb'
149
+
150
+ # Offense count: 1
151
+ Lint/IneffectiveAccessModifier:
152
+ Exclude:
153
+ - 'lib/fontist/import/google/formula_builders/base_formula_builder.rb'
154
+
155
+ # Offense count: 1
156
+ Lint/NoReturnInBeginEndBlocks:
157
+ Exclude:
158
+ - 'lib/fontist/font_installer.rb'
159
+
160
+ # Offense count: 31
161
+ # This cop supports unsafe autocorrection (--autocorrect-all).
162
+ Lint/NonAtomicFileOperation:
22
163
  Exclude:
164
+ - 'lib/fontist/cache/store.rb'
165
+ - 'lib/fontist/font_installer.rb'
166
+ - 'spec/fontist/cache/manager_spec.rb'
167
+ - 'spec/fontist/cache/store_spec.rb'
168
+ - 'spec/fontist/indexes/directory_change_spec.rb'
169
+ - 'spec/fontist/indexes/directory_snapshot_spec.rb'
170
+ - 'spec/fontist/indexes/incremental_index_updater_spec.rb'
171
+ - 'spec/fontist/indexes/incremental_scanner_spec.rb'
23
172
  - 'spec/fontist/manifest_spec.rb'
173
+ - 'spec/fontist/path_scanning_spec.rb'
174
+ - 'spec/fontist/utils/file_ops_spec.rb'
175
+ - 'spec/support/fontist_helper.rb'
176
+ - 'spec/support/spec_isolation_manager.rb'
177
+ - 'spec/support/system_fonts.rb'
178
+ - 'spec/support/windows_test_helper.rb'
24
179
 
25
- # Offense count: 8
180
+ # Offense count: 2
181
+ # This cop supports safe autocorrection (--autocorrect).
182
+ Lint/ScriptPermission:
183
+ Exclude:
184
+ - 'script/test_platform_license_skip.rb'
185
+ - 'script/validate_v5_urls.rb'
186
+
187
+ # Offense count: 2
188
+ # This cop supports safe autocorrection (--autocorrect).
189
+ # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods, NotImplementedExceptions.
190
+ # NotImplementedExceptions: NotImplementedError
191
+ Lint/UnusedMethodArgument:
192
+ Exclude:
193
+ - 'lib/fontist/validator.rb'
194
+ - 'script/test_v5_install.rb'
195
+
196
+ # Offense count: 120
197
+ # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
198
+ Metrics/AbcSize:
199
+ Enabled: false
200
+
201
+ # Offense count: 19
26
202
  # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
27
203
  # AllowedMethods: refine
28
204
  Metrics/BlockLength:
29
- Max: 320
205
+ Max: 217
30
206
 
31
- # Offense count: 2
207
+ # Offense count: 4
208
+ # Configuration parameters: CountBlocks, CountModifierForms.
209
+ Metrics/BlockNesting:
210
+ Max: 4
211
+
212
+ # Offense count: 72
213
+ # Configuration parameters: AllowedMethods, AllowedPatterns, Max.
214
+ Metrics/CyclomaticComplexity:
215
+ Enabled: false
216
+
217
+ # Offense count: 192
32
218
  # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
33
219
  Metrics/MethodLength:
34
- Max: 14
220
+ Max: 129
221
+
222
+ # Offense count: 6
223
+ # Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
224
+ Metrics/ParameterLists:
225
+ Max: 7
226
+
227
+ # Offense count: 55
228
+ # Configuration parameters: AllowedMethods, AllowedPatterns, Max.
229
+ Metrics/PerceivedComplexity:
230
+ Enabled: false
231
+
232
+ # Offense count: 3
233
+ # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
234
+ # AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
235
+ Naming/MethodParameterName:
236
+ Exclude:
237
+ - 'spec/fontist/memoizable_spec.rb'
238
+
239
+ # Offense count: 4
240
+ # Configuration parameters: Mode, AllowedMethods, AllowedPatterns, AllowBangMethods, WaywardPredicates.
241
+ # AllowedMethods: call
242
+ # WaywardPredicates: infinite?, nonzero?
243
+ Naming/PredicateMethod:
244
+ Exclude:
245
+ - 'lib/fontist.rb'
246
+ - 'lib/fontist/font.rb'
247
+ - 'lib/fontist/import/google/models/metadata.rb'
248
+ - 'spec/fontist/memoizable_spec.rb'
249
+
250
+ # Offense count: 1
251
+ # Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros, UseSorbetSigs.
252
+ # NamePrefix: is_, has_, have_, does_
253
+ # ForbiddenPrefixes: is_, has_, have_, does_
254
+ # AllowedMethods: is_a?
255
+ # MethodDefinitionMacros: define_method, define_singleton_method
256
+ Naming/PredicatePrefix:
257
+ Exclude:
258
+ - 'spec/**/*'
259
+ - 'lib/fontist/import/google/formula_builders/formula_builder_v5.rb'
260
+
261
+ # Offense count: 5
262
+ # Configuration parameters: MinSize.
263
+ Performance/CollectionLiteralInLoop:
264
+ Exclude:
265
+ - 'lib/fontist/cache/manager.rb'
266
+ - 'lib/fontist/import/otf/font_file.rb'
267
+ - 'script/test_v5_install.rb'
268
+ - 'spec/fontist/import/create_formula_spec.rb'
269
+
270
+ # Offense count: 23
271
+ # This cop supports unsafe autocorrection (--autocorrect-all).
272
+ Performance/MapCompact:
273
+ Enabled: false
274
+
275
+ # Offense count: 1
276
+ # This cop supports unsafe autocorrection (--autocorrect-all).
277
+ Performance/TimesMap:
278
+ Exclude:
279
+ - 'script/validate_v5_urls.rb'
280
+
281
+ # Offense count: 2
282
+ Security/MarshalLoad:
283
+ Exclude:
284
+ - 'lib/fontist/cache/store.rb'
285
+ - 'spec/fontist/cache/store_spec.rb'
286
+
287
+ # Offense count: 1
288
+ # This cop supports safe autocorrection (--autocorrect).
289
+ # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
290
+ # SupportedStyles: assign_to_condition, assign_inside_condition
291
+ Style/ConditionalAssignment:
292
+ Exclude:
293
+ - 'script/validate_v5_urls.rb'
294
+
295
+ # Offense count: 4
296
+ # This cop supports safe autocorrection (--autocorrect).
297
+ # Configuration parameters: EnforcedStyle.
298
+ # SupportedStyles: trailing_conditional, ternary
299
+ Style/EmptyStringInsideInterpolation:
300
+ Exclude:
301
+ - 'lib/fontist/import/import_display.rb'
302
+ - 'lib/fontist/import/macos_importer.rb'
303
+
304
+ # Offense count: 12
305
+ # This cop supports safe autocorrection (--autocorrect).
306
+ # Configuration parameters: AllowedVars, DefaultToNil.
307
+ Style/FetchEnvVar:
308
+ Exclude:
309
+ - 'lib/fontist/utils/system.rb'
310
+ - 'spec/fontist/import/google/data_sources/base_spec.rb'
311
+ - 'spec/fontist/import/google/data_sources/ttf_spec.rb'
312
+ - 'spec/fontist/import/google/data_sources/vf_spec.rb'
313
+ - 'spec/fontist/import/google/data_sources/woff2_spec.rb'
314
+ - 'spec/fontist/install_locations/system_location_spec.rb'
315
+ - 'spec/support/fontist_helper.rb'
316
+ - 'spec/support/fresh_home.rb'
317
+ - 'spec/support/vcr_setup.rb'
318
+
319
+ # Offense count: 1
320
+ Style/FileOpen:
321
+ Exclude:
322
+ - 'lib/fontist/utils/locking.rb'
323
+
324
+ # Offense count: 1
325
+ # This cop supports safe autocorrection (--autocorrect).
326
+ Style/FileWrite:
327
+ Exclude:
328
+ - 'lib/fontist/import/upgrade_formulas.rb'
329
+
330
+ # Offense count: 1
331
+ # This cop supports unsafe autocorrection (--autocorrect-all).
332
+ # Configuration parameters: AllowSplatArgument.
333
+ Style/HashConversion:
334
+ Exclude:
335
+ - 'lib/fontist/system_index.rb'
35
336
 
36
337
  # Offense count: 1
37
338
  # Configuration parameters: MinBranchesCount.
38
339
  Style/HashLikeCase:
39
340
  Exclude:
40
341
  - 'spec/support/platform_fonts.rb'
342
+
343
+ # Offense count: 6
344
+ # This cop supports unsafe autocorrection (--autocorrect-all).
345
+ Style/IdenticalConditionalBranches:
346
+ Exclude:
347
+ - 'lib/fontist/helpers.rb'
348
+ - 'lib/fontist/import/import_display.rb'
349
+ - 'script/validate_v5_urls.rb'
350
+
351
+ # Offense count: 1
352
+ # This cop supports safe autocorrection (--autocorrect).
353
+ # Configuration parameters: AllowIfModifier.
354
+ Style/IfInsideElse:
355
+ Exclude:
356
+ - 'script/validate_v5_formulas.rb'
357
+
358
+ # Offense count: 3
359
+ # This cop supports unsafe autocorrection (--autocorrect-all).
360
+ Style/MapToHash:
361
+ Exclude:
362
+ - 'lib/fontist/system_index.rb'
363
+ - 'lib/fontist/utils/downloader.rb'
364
+ - 'spec/fontist/indexes/incremental_scanner_spec.rb'
365
+
366
+ # Offense count: 22
367
+ # This cop supports unsafe autocorrection (--autocorrect-all).
368
+ # Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
369
+ # SupportedStyles: predicate, comparison
370
+ Style/NumericPredicate:
371
+ Exclude:
372
+ - 'spec/**/*'
373
+ - 'script/test_platform_license_skip.rb'
374
+ - 'script/test_v5_install.rb'
375
+ - 'script/validate_v5_formulas.rb'
376
+ - 'script/validate_v5_urls.rb'
377
+
378
+ # Offense count: 1
379
+ # Configuration parameters: AllowedClasses.
380
+ Style/OneClassPerFile:
381
+ Exclude:
382
+ - 'script/validate_v5_urls.rb'
383
+
384
+ # Offense count: 1
385
+ Style/OpenStructUse:
386
+ Exclude:
387
+ - 'spec/fontist/cache/store_spec.rb'
388
+
389
+ # Offense count: 2
390
+ # This cop supports unsafe autocorrection (--autocorrect-all).
391
+ Style/PartitionInsteadOfDoubleSelect:
392
+ Exclude:
393
+ - 'script/validate_v5_urls.rb'
394
+ - 'spec/fontist/import/google/data_sources/vf_spec.rb'
395
+
396
+ # Offense count: 3
397
+ # This cop supports unsafe autocorrection (--autocorrect-all).
398
+ Style/ReduceToHash:
399
+ Exclude:
400
+ - 'lib/fontist/import/google/font_database.rb'
401
+ - 'lib/fontist/indexes/directory_snapshot.rb'
402
+
403
+ # Offense count: 2
404
+ # This cop supports safe autocorrection (--autocorrect).
405
+ Style/RedundantBegin:
406
+ Exclude:
407
+ - 'lib/fontist/font_installer.rb'
408
+ - 'script/validate_v5_urls.rb'
409
+
410
+ # Offense count: 2
411
+ # This cop supports safe autocorrection (--autocorrect).
412
+ Style/RedundantParentheses:
413
+ Exclude:
414
+ - 'script/validate_v5_urls.rb'
415
+
416
+ # Offense count: 1
417
+ # This cop supports safe autocorrection (--autocorrect).
418
+ Style/RedundantRegexpArgument:
419
+ Exclude:
420
+ - 'lib/fontist/repo.rb'
421
+
422
+ # Offense count: 9
423
+ # This cop supports safe autocorrection (--autocorrect).
424
+ Style/RescueModifier:
425
+ Exclude:
426
+ - 'script/validate_v5_urls.rb'
427
+
428
+ # Offense count: 11
429
+ # This cop supports safe autocorrection (--autocorrect).
430
+ # Configuration parameters: EnforcedStyle.
431
+ # SupportedStyles: implicit, explicit
432
+ Style/RescueStandardError:
433
+ Exclude:
434
+ - 'script/test_platform_license_skip.rb'
435
+ - 'script/test_v5_install.rb'
436
+ - 'script/validate_v5_formulas.rb'
437
+ - 'script/validate_v5_urls.rb'
438
+
439
+ # Offense count: 3
440
+ # This cop supports unsafe autocorrection (--autocorrect-all).
441
+ # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
442
+ # AllowedMethods: present?, blank?, presence, try, try!
443
+ Style/SafeNavigation:
444
+ Exclude:
445
+ - 'script/test_v5_install.rb'
446
+ - 'script/validate_v5_formulas.rb'
447
+ - 'script/validate_v5_urls.rb'
448
+
449
+ # Offense count: 1
450
+ # Configuration parameters: Max.
451
+ Style/SafeNavigationChainLength:
452
+ Exclude:
453
+ - 'lib/fontist/system_index.rb'
454
+
455
+ # Offense count: 2
456
+ # This cop supports safe autocorrection (--autocorrect).
457
+ # Configuration parameters: AllowModifier.
458
+ Style/SoleNestedConditional:
459
+ Exclude:
460
+ - 'script/validate_v5_formulas.rb'
461
+ - 'script/validate_v5_urls.rb'
462
+
463
+ # Offense count: 1
464
+ # This cop supports safe autocorrection (--autocorrect).
465
+ Style/StderrPuts:
466
+ Exclude:
467
+ - 'script/validate_v5_urls.rb'
468
+
469
+ # Offense count: 3
470
+ # This cop supports unsafe autocorrection (--autocorrect-all).
471
+ # Configuration parameters: Mode.
472
+ Style/StringConcatenation:
473
+ Exclude:
474
+ - 'script/validate_v5_formulas.rb'
475
+ - 'spec/fontist/system_index_spec.rb'
476
+
477
+ # Offense count: 1
478
+ # This cop supports safe autocorrection (--autocorrect).
479
+ Style/SuperArguments:
480
+ Exclude:
481
+ - 'lib/fontist/import/google/models/font_family.rb'
482
+
483
+ # Offense count: 3
484
+ # This cop supports unsafe autocorrection (--autocorrect-all).
485
+ # Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
486
+ # AllowedMethods: define_method
487
+ Style/SymbolProc:
488
+ Exclude:
489
+ - 'lib/fontist/font_installer.rb'
490
+ - 'lib/fontist/format_matcher.rb'
491
+ - 'script/validate_v5_formulas.rb'
492
+
493
+ # Offense count: 1
494
+ # This cop supports safe autocorrection (--autocorrect).
495
+ # Configuration parameters: EnforcedStyleForMultiline.
496
+ # SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
497
+ Style/TrailingCommaInArguments:
498
+ Exclude:
499
+ - 'spec/fontist/v5_integration_spec.rb'
500
+
501
+ # Offense count: 4
502
+ # This cop supports unsafe autocorrection (--autocorrect-all).
503
+ Style/ZeroLengthPredicate:
504
+ Exclude:
505
+ - 'script/validate_v5_urls.rb'
data/README.adoc CHANGED
@@ -2117,7 +2117,7 @@ fontist import sil --import-cache /custom/path ...
2117
2117
  Fontist.import_cache_path = "/custom/import/cache"
2118
2118
 
2119
2119
  # Per-import setting
2120
- Fontist::Import::Macos.new(
2120
+ Fontist::Import::MacosImporter.new(
2121
2121
  plist_path,
2122
2122
  import_cache: "/custom/cache"
2123
2123
  ).call