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.

[View source]

253
254
255
# File 'lib/bundler/errors.rb', line 253

def initialize(loaded_spec)
  @loaded_spec = loaded_spec
end

Instance Method Details

#messageObject

[View source]

257
258
259
260
261
# File 'lib/bundler/errors.rb', line 257

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