Exception: Bundler::CorruptBundlerInstallError

Inherits:
BundlerError
  • Object
show all
Defined in:
lib/bundler/errors.rb

Instance Method Summary collapse

Methods inherited from BundlerError

all_errors, status_code

Constructor Details

#initialize(loaded_spec) ⇒ CorruptBundlerInstallError

Returns a new instance of CorruptBundlerInstallError.



235
236
237
# File 'lib/bundler/errors.rb', line 235

def initialize(loaded_spec)
  @loaded_spec = loaded_spec
end

Instance Method Details

#messageObject



239
240
241
242
243
# File 'lib/bundler/errors.rb', line 239

def message
  "The running version of Bundler (#{Bundler::VERSION}) does not match the version of the specification installed for it (#{@loaded_spec.version}). " \
  "This can be caused by reinstalling Ruby without removing previous installation, leaving around an upgraded default version of Bundler. " \
  "Reinstalling Ruby from scratch should fix the problem."
end