Project

General

Profile

Bug #4941 » gem_prelude.diff

lazaridis.com (Lazaridis Ilias), 06/28/2011 08:28 PM

View differences:

"b/C:\\Users\\lazaridis\\data\\pj\\sand\\rubyi2\\sandbox\\ruby193\\gem_prelude.rb"
require 'rubygems.rb' if defined?(Gem)
begin
require 'rubygems.rb' if defined?(Gem)
rescue LoadError
#the current file directory (= source-tree-root)
fdir = File.dirname(__FILE__)
#add "lib", so it finds rubygems.rb (and other libraries)
$LOAD_PATH << File.expand_path(File.join("lib"), fdir )
#add current file-dir, thus require "rbconfig.rb" works
$LOAD_PATH << File.expand_path(fdir)
#puts "\nActual library paths:"
#puts "---------------------"
#$LOAD_PATH.each { |i| p i }
#puts "---------------------"
require 'rubygems.rb' if defined?(Gem)
end
(1-1/2)