class Gem::PlatformMismatch


in figuring out why a gem couldn’t be installed.
fetch and install read these and report them to the user to aid
was found, but that it isn’t usable on the current platform.
Generated when trying to lookup a gem to indicate that the gem

def add_platform(platform)

than perform some kind of calculation mismatch summary before creation.
so that we can loop over a list of mismatches and just add them rather
Platforms are added via this instead of injected via the constructor

append a platform to the list of mismatched platforms.
#
def add_platform(platform)
  @platforms << platform
end

def initialize(name, version)

def initialize(name, version)
  @name = name
  @version = version
  @platforms = []
end

def wordy

A wordy description of the error.
#
def wordy
  format("Found %s (%s), but was for platform%s %s", @name, @version, @platforms.size == 1 ? "" : "s", @platforms.join(" ,"))
end