Class: Ucode::Commands::UniversalSet::ValidateCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/ucode/commands/universal_set.rb

Overview

ucode universal-set validate — post-build structural validation. Reads manifest.json + glyphs/ and runs the four checks (manifest_loadable, glyph_files_present, totals_reconcile, provenance_complete).

Instance Method Summary collapse

Instance Method Details

#call(output_root, version: nil) ⇒ Hash

Returns the Validator#validate payload.

Parameters:

  • output_root (String, Pathname)
  • version (String, nil) (defaults to: nil)

    resolved UCD version, used only to stamp the report's unicode_version when the manifest's recorded value is missing.

Returns:

  • (Hash)

    the Validator#validate payload.



200
201
202
203
# File 'lib/ucode/commands/universal_set.rb', line 200

def call(output_root, version: nil)
  Glyphs::UniversalSet::Validator
    .new(output_root, unicode_version: version).validate
end