mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02: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
|
@ -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…
Add table
Add a link
Reference in a new issue