mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Import gemspec
Import gemspec and test file from ruby/webrick. * webrick.gemspec: Update files and dependency for standalone gem. * test/webrick/utils.rb: Added explicitly loading of EnvUtil for test suite without ruby core test suite. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
905d52772c
commit
33f66084d5
2 changed files with 5 additions and 1 deletions
|
@ -6,11 +6,13 @@ Gem::Specification.new do |s|
|
|||
s.description = "WEBrick is an HTTP server toolkit that can be configured as an HTTPS server, a proxy server, and a virtual-host server."
|
||||
|
||||
s.require_path = %w{lib}
|
||||
s.files = %w{webrick.rb webrick/accesslog.rb webrick/cgi.rb webrick/compat.rb webrick/config.rb webrick/cookie.rb webrick/htmlutils.rb webrick/httpauth.rb webrick/httpauth/authenticator.rb webrick/httpauth/basicauth.rb webrick/httpauth/digestauth.rb webrick/httpauth/htdigest.rb webrick/httpauth/htgroup.rb webrick/httpauth/htpasswd.rb webrick/httpauth/userdb.rb webrick/httpauth.rb webrick/httpproxy.rb webrick/httprequest.rb webrick/httpresponse.rb webrick/https.rb webrick/httpserver.rb webrick/httpservlet.rb webrick/httpservlet/abstract.rb webrick/httpservlet/cgi_runner.rb webrick/httpservlet/cgihandler.rb webrick/httpservlet/erbhandler.rb webrick/httpservlet/filehandler.rb webrick/httpservlet/prochandler.rb webrick/httpservlet.rb webrick/httpstatus.rb webrick/httputils.rb webrick/httpversion.rb webrick/log.rb webrick/server.rb webrick/ssl.rb webrick/utils.rb webrick/version.rb}
|
||||
s.files = ["lib/webrick.rb", "lib/webrick/accesslog.rb", "lib/webrick/cgi.rb", "lib/webrick/compat.rb", "lib/webrick/config.rb", "lib/webrick/cookie.rb", "lib/webrick/htmlutils.rb", "lib/webrick/httpauth.rb", "lib/webrick/httpauth/authenticator.rb", "lib/webrick/httpauth/basicauth.rb", "lib/webrick/httpauth/digestauth.rb", "lib/webrick/httpauth/htdigest.rb", "lib/webrick/httpauth/htgroup.rb", "lib/webrick/httpauth/htpasswd.rb", "lib/webrick/httpauth/userdb.rb", "lib/webrick/httpauth.rb", "lib/webrick/httpproxy.rb", "lib/webrick/httprequest.rb", "lib/webrick/httpresponse.rb", "lib/webrick/https.rb", "lib/webrick/httpserver.rb", "lib/webrick/httpservlet.rb", "lib/webrick/httpservlet/abstract.rb", "lib/webrick/httpservlet/cgi_runner.rb", "lib/webrick/httpservlet/cgihandler.rb", "lib/webrick/httpservlet/erbhandler.rb", "lib/webrick/httpservlet/filehandler.rb", "lib/webrick/httpservlet/prochandler.rb", "lib/webrick/httpservlet.rb", "lib/webrick/httpstatus.rb", "lib/webrick/httputils.rb", "lib/webrick/httpversion.rb", "lib/webrick/log.rb", "lib/webrick/server.rb", "lib/webrick/ssl.rb", "lib/webrick/utils.rb", "lib/webrick/version.rb"]
|
||||
s.required_ruby_version = ">= 2.5.0dev"
|
||||
|
||||
s.authors = ["TAKAHASHI Masayoshi", "GOTOU YUUZOU"]
|
||||
s.email = [nil, nil]
|
||||
s.homepage = "https://www.ruby-lang.org"
|
||||
s.license = "BSD-2-Clause"
|
||||
|
||||
s.add_development_dependency "rake"
|
||||
end
|
||||
|
|
|
@ -15,6 +15,7 @@ module TestWEBrick
|
|||
|
||||
class WEBrick::HTTPServlet::CGIHandler
|
||||
remove_const :Ruby
|
||||
require "envutil" unless defined?(EnvUtil)
|
||||
Ruby = EnvUtil.rubybin
|
||||
remove_const :CGIRunner
|
||||
CGIRunner = "\"#{Ruby}\" \"#{WEBrick::Config::LIBDIR}/httpservlet/cgi_runner.rb\"" # :nodoc:
|
||||
|
@ -26,6 +27,7 @@ module TestWEBrick
|
|||
RubyBin << " \"-I#{File.dirname(EnvUtil.rubybin)}/.ext/common\""
|
||||
RubyBin << " \"-I#{File.dirname(EnvUtil.rubybin)}/.ext/#{RUBY_PLATFORM}\""
|
||||
|
||||
require "test/unit" unless defined?(Test::Unit)
|
||||
include Test::Unit::Assertions
|
||||
extend Test::Unit::Assertions
|
||||
|
||||
|
|
Loading…
Reference in a new issue