class
AssetPipeline::StaticAssets::Manifest
- AssetPipeline::StaticAssets::Manifest
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
asset_pipeline/static_assets.crConstructors
- .load(file : Path | String) : self
- .new(pull : JSON::PullParser)
- .new(schema_version : Int32 = MANIFEST_SCHEMA_VERSION, public_path : String = "/assets", assets : Hash(String, ManifestEntry) = {} of String => ManifestEntry)
Instance Method Summary
- #assets : Hash(String, ManifestEntry)
- #entry(logical_path : Path | String) : ManifestEntry
- #integrity(logical_path : Path | String) : String
- #path(logical_path : Path | String) : String
- #public_path : String
- #schema_version : Int32
- #to_deterministic_json : String
-
#verify(output_root : Path | String) : Nil
Verifies that every manifest entry exists beneath output_root and still matches its byte count, SHA-256 digest, SRI value, MIME type, and expected precompressed representation.
Constructor Detail
def self.new(schema_version : Int32 = MANIFEST_SCHEMA_VERSION, public_path : String = "/assets", assets : Hash(String, ManifestEntry) = {} of String => ManifestEntry)
#
Instance Method Detail
def verify(output_root : Path | String) : Nil
#
Verifies that every manifest entry exists beneath output_root and still matches its byte count, SHA-256 digest, SRI value, MIME type, and expected precompressed representation.