class Gem::NameTuple

def initialize(name, version, platform=Gem::Platform::RUBY)

def initialize(name, version, platform=Gem::Platform::RUBY)
  if Gem::Platform === platform
    initialize_with_platform(name, version, platform.to_s)
  else
    initialize_with_platform(name, version, platform)
  end
end

def lock_name

def lock_name
  if platform == Gem::Platform::RUBY
    "#{name} (#{version})"
  else
    "#{name} (#{version}-#{platform})"
  end
end