Place bin dir before lib dir so gem bin stubs work.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2007-12-22 02:32:18 +00:00
Родитель a07e0b139c
Коммит ccc842878d
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -1,3 +1,7 @@
Sat Dec 22 11:31:14 2007 Eric Hodel <drbrain@segment7.net>
* gem_prelude.rb: Place bin dir before lib dir so gem bin stubs work.
Sat Dec 22 11:05:44 2007 Jim Weirich <jim@tardis.local>
* lib/rake.rb (Rake): Added Rake and related libraries to the

Просмотреть файл

@ -152,8 +152,8 @@ module Gem
if File.exist?(File.join(path, ".require_paths"))
require_paths.concat(File.read(File.join(path, ".require_paths")).split.map {|require_path| File.join(path, require_path)})
else
require_paths << File.join(path, "lib") if File.exist?(File.join(path, "lib"))
require_paths << File.join(path, "bin") if File.exist?(File.join(path, "bin"))
require_paths << File.join(path, "lib") if File.exist?(File.join(path, "lib"))
end
end
@ -186,4 +186,4 @@ rescue Exception => e
end
#puts "Gem load in #{Time.now - t} seconds"
end # Gem::Enable
end # Gem::Enable