1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Remove non-required dirs from $LOAD_PATH

This commit is contained in:
Luis Lavena 2012-01-08 16:48:51 -03:00
parent d86b169d9d
commit 9470937da9
2 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,3 @@
# Standard libraries
require 'socket'
require 'tempfile'

View file

@ -2,8 +2,9 @@
# Copyright (c) 2005 Zed A. Shaw
%w(lib ext bin test).each do |dir|
$LOAD_PATH.unshift File.expand_path("../../#{dir}", __FILE__)
%w(lib test).each do |d|
dir = File.expand_path("../../#{d}", __FILE__)
$LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir)
end
require 'rubygems'