module Sass::Util
def file_uri_from_path(path)
def file_uri_from_path(path) absolute_path = File.absolute_path(path) absolute_path = File::SEPARATOR + absolute_path unless absolute_path.start_with? File::SEPARATOR URI_PARSER.escape("file://#{absolute_path}") end
def now
def now (Time.now.to_f * 1000).to_i end
def path_from_file_uri(file_uri)
def path_from_file_uri(file_uri) URI_PARSER.unescape(file_uri)[7..] end
def relative_path(from, to)
def relative_path(from, to) Pathname.new(File.absolute_path(to)).relative_path_from(Pathname.new(File.absolute_path(from))).to_s end