ruby-changes:46359
From: hsbt <ko1@a...>
Date: Tue, 25 Apr 2017 18:23:09 +0900 (JST)
Subject: [ruby-changes:46359] hsbt:r58473 (trunk): Import gemspec
hsbt 2017-04-25 18:23:04 +0900 (Tue, 25 Apr 2017) New Revision: 58473 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58473 Log: 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. Modified files: trunk/lib/webrick/webrick.gemspec trunk/test/webrick/utils.rb Index: test/webrick/utils.rb =================================================================== --- test/webrick/utils.rb (revision 58472) +++ test/webrick/utils.rb (revision 58473) @@ -15,6 +15,7 @@ module TestWEBrick https://github.com/ruby/ruby/blob/trunk/test/webrick/utils.rb#L15 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 https://github.com/ruby/ruby/blob/trunk/test/webrick/utils.rb#L27 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 Index: lib/webrick/webrick.gemspec =================================================================== --- lib/webrick/webrick.gemspec (revision 58472) +++ lib/webrick/webrick.gemspec (revision 58473) @@ -6,11 +6,13 @@ Gem::Specification.new do |s| https://github.com/ruby/ruby/blob/trunk/lib/webrick/webrick.gemspec#L6 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.r b", "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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/