class AssetPipeline::StaticAssets::Manifest

Included Modules

Defined in:

asset_pipeline/static_assets.cr

Constructors

Instance Method Summary

Constructor Detail

def self.load(file : Path | String) : self #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(schema_version : Int32 = MANIFEST_SCHEMA_VERSION, public_path : String = "/assets", assets : Hash(String, ManifestEntry) = {} of String => ManifestEntry) #

[View source]

Instance Method Detail

def assets : Hash(String, ManifestEntry) #

[View source]
def entry(logical_path : Path | String) : ManifestEntry #

[View source]
def integrity(logical_path : Path | String) : String #

[View source]
def path(logical_path : Path | String) : String #

[View source]
def public_path : String #

[View source]
def schema_version : Int32 #

[View source]
def to_deterministic_json : String #

[View source]
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.


[View source]