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'
|
||||||
|
@ -18,7 +19,7 @@ require 'puma'
|
||||||
def redirect_test_io
|
def redirect_test_io
|
||||||
yield
|
yield
|
||||||
end
|
end
|
||||||
|
|
||||||
# Either takes a string to do a get request against, or a tuple of [URI, HTTP] where
|
# Either takes a string to do a get request against, or a tuple of [URI, HTTP] where
|
||||||
# HTTP is some kind of Net::HTTP request object (POST, HEAD, etc.)
|
# HTTP is some kind of Net::HTTP request object (POST, HEAD, etc.)
|
||||||
def hit(uris)
|
def hit(uris)
|
||||||
|
|
Loading…
Add table
Reference in a new issue