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:
parent
d86b169d9d
commit
9470937da9
2 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,3 @@
|
|||
|
||||
# Standard libraries
|
||||
require 'socket'
|
||||
require 'tempfile'
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue