Exception: LoadError

Inherits:
Exception show all
Defined in:
lib/bundled_gems.rb

Overview

for RubyGems without Bundler environment. If loading library is not part of the default gems and the bundled gems, warn it.

Direct Known Subclasses

Gem::LoadError

Instance Method Summary collapse

Methods inherited from Exception

#as_json, json_create, #to_json

Instance Method Details

#messageObject



166
167
168
169
170
171
172
173
174
# File 'lib/bundled_gems.rb', line 166

def message
  return super unless path

  name = path.tr("/", "-")
  if !defined?(Bundler) && Gem::BUNDLED_GEMS::SINCE[name] && !Gem::BUNDLED_GEMS::WARNED[name]
    warn name + Gem::BUNDLED_GEMS.build_message(name)
  end
  super
end