class Gem::Specification

def add_self_to_load_path

def add_self_to_load_path
  return if default_gem?
  paths = full_require_paths
  # gem directories must come after -I and ENV['RUBYLIB']
  insert_index = Gem.load_path_insert_index
  if insert_index then
    # gem directories must come after -I and ENV['RUBYLIB']
    $LOAD_PATH.insert(insert_index, *paths)
  else
    # we are probably testing in core, -I and RUBYLIB don't apply
    $LOAD_PATH.unshift(*paths)
  end
end