class Sprockets::URITar
def expand
file:///This/is/an/absolute/path
If a uri is outside the root, it will start with a slash:
file://this/is/a/relative/path
start with a slash for example:
If a uri is inside of the environment's root it will not
Internal: Convert a "compressed" uri to an absolute path
def expand if path.start_with?("/".freeze) # Stored path was absolute, don't add root scheme + path else # Stored path was relative, add root scheme + File.join(root, path) end end