class Sprockets::Asset

def eql?(other)

Assets are equal if they share the same path, mtime and digest.
def eql?(other)
  other.class == self.class &&
    other.logical_path == self.logical_path &&
    other.mtime.to_i == self.mtime.to_i &&
    other.digest == self.digest
end