class Gem::MissingSpecVersionError
rescue from the superclass Gem::LoadError to catch all types of load errors.
not the requested version. Instead of rescuing from this class, make sure to
Raised when trying to activate a gem, and the gem exists on the system, but
#
def build_message
def build_message names = specs.map(&:full_name) "Could not find '#{name}' (#{requirement}) - did find: [#{names.join ','}]\n" end
def initialize name, requirement, specs
def initialize name, requirement, specs super(name, requirement) @specs = specs end