Exception: LoadError

Inherits:
Exception
  • Object
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.

Instance Method Summary collapse

Instance Method Details

#messageObject

:nodoc:



239
240
241
242
243
244
245
246
247
# File 'lib/bundled_gems.rb', line 239

def message # :nodoc:
  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), uplevel: Gem::BUNDLED_GEMS.uplevel
  end
  super
end