module Gem::Requirement::CorrectHashForLambdaOperator

def hash

def hash
  if requirements.any? {|r| r.first == "~>" }
    requirements.map {|r| r.first == "~>" ? [r[0], r[1].to_s] : r }.sort.hash
  else
    super
  end
end