module Sprockets::URIUtils
def parse_file_digest_uri(uri)
uri - String file-digest URI
# => "/tmp/js/application.js"
parse("file-digest:/tmp/js/application.js")
Examples
Internal: Parse file-digest dependency URI.
def parse_file_digest_uri(uri) scheme, _, path, _ = split_file_uri(uri) unless scheme == 'file-digest'.freeze raise URI::InvalidURIError, "expected file-digest scheme: #{uri}" end path end