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.relative_pathname == self.relative_pathname &&
    other.mtime.to_i == self.mtime.to_i &&
    other.digest == self.digest
end