diff options
author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-19 06:00:36 +0000 |
---|---|---|
committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-19 06:00:36 +0000 |
commit | 65652ecdb5145fae92e3c86611a4425a476da6ec (patch) | |
tree | eedc2d207ffde1876c9d7271f8492741ee065584 /lib/webrick/compat.rb | |
parent | 90e010abb9efeaaf706c363af31beedf65c8be3b (diff) | |
download | ruby-65652ecdb5145fae92e3c86611a4425a476da6ec.tar.gz |
* lib/webrick/ssl.rb: new file; SSL/TLS enhancement for GenericServer.
* lib/webrick/https.rb: SSLSocket handling is moved to webrick/ssl.rb.
* lib/webrick/compat.rb (File::fnmatch): remove old migration code.
* lib/webrick/httpserver.rb (HTTPServer#run): ditto.
* lib/webrick/server.rb (GenericServer#listen): the body of this
method is pull out as Utils::create_lisnteners.
* lib/webrick/utils.rb (Utils::create_lisnteners): new method.
* lib/webrick/server.rb (GenericServer#start): should not
through unknown errors. and refine comments.
* ext/openssl/lib/openssl/ssl.rb (SSLServer#accept): should close
socket if SSLSocket raises error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick/compat.rb')
-rw-r--r-- | lib/webrick/compat.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/webrick/compat.rb b/lib/webrick/compat.rb index a972204ff1..ad7760b640 100644 --- a/lib/webrick/compat.rb +++ b/lib/webrick/compat.rb @@ -13,18 +13,3 @@ module Errno class ECONNRESET < SystemCallError; end class ECONNABORTED < SystemCallError; end end - -unless File.respond_to?(:fnmatch) - def File.fnmatch(pat, str) - case pat[0] - when nil - not str[0] - when ?* - fnmatch(pat[1..-1], str) || str[0] && fnmatch(pat, str[1..-1]) - when ?? - str[0] && fnmatch(pat[1..-1], str[1..-1]) - else - pat[0] == str[0] && fnmatch(pat[1..-1], str[1..-1]) - end - end -end |