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
|
# Standard libraries
|
||||||
require 'socket'
|
require 'socket'
|
||||||
require 'tempfile'
|
require 'tempfile'
|
||||||
|
|
|
@ -2,8 +2,9 @@
|
||||||
# Copyright (c) 2005 Zed A. Shaw
|
# Copyright (c) 2005 Zed A. Shaw
|
||||||
|
|
||||||
|
|
||||||
%w(lib ext bin test).each do |dir|
|
%w(lib test).each do |d|
|
||||||
$LOAD_PATH.unshift File.expand_path("../../#{dir}", __FILE__)
|
dir = File.expand_path("../../#{d}", __FILE__)
|
||||||
|
$LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir)
|
||||||
end
|
end
|
||||||
|
|
||||||
require 'rubygems'
|
require 'rubygems'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue