Exception: Gem::MissingSpecVersionError
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
MissingSpecError,
LoadError,
LoadError
|
|
Instance Chain:
self,
MissingSpecError,
LoadError,
LoadError
|
|
Inherits: |
Gem::MissingSpecError
|
Defined in: | lib/rubygems/errors.rb |
Overview
Raised when trying to activate a gem, and the gem exists on the system, but not the requested version. Instead of rescuing from this class, make sure to rescue from the superclass LoadError to catch all types of load errors.
Class Method Summary
MissingSpecError - Inherited
Instance Attribute Summary
Instance Method Summary
Constructor Details
.new(name, requirement, specs) ⇒ MissingSpecVersionError
Instance Attribute Details
#specs (readonly)
[ GitHub ]# File 'lib/rubygems/errors.rb', line 51
attr_reader :specs
Instance Method Details
#build_message (private)
[ GitHub ]# File 'lib/rubygems/errors.rb', line 60
def if name == "bundler" && = Gem::BundlerVersionFinder. return end names = specs.map(&:full_name) "Could not find '#{name}' (#{requirement}) - did find: [#{names.join ','}]\n" end