File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11language : ruby
22rvm :
3+ - " 2.3.0"
4+ - " 2.4.0"
35 - ruby-head
46before_install : gem install bundler -v 1.11.2
Original file line number Diff line number Diff line change 11# frozen_string_literal: false
22require 'timeout'
33
4+ # Backport of WEBrick::Utils::TimeoutHandler.terminate from Ruby 2.4.
5+ unless WEBrick ::Utils ::TimeoutHandler . respond_to? :terminate
6+ class WEBrick ::Utils ::TimeoutHandler
7+ def self . terminate
8+ instance . terminate
9+ end
10+
11+ def terminate
12+ TimeoutMutex . synchronize {
13+ @timeout_info . clear
14+ @watcher &.kill &.join
15+ }
16+ end
17+ end
18+ end
19+
420module TestXMLRPC
521module WEBrick_Testing
622 def teardown
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
1818 spec . bindir = "exe"
1919 spec . executables = spec . files . grep ( %r{^exe/} ) { |f | File . basename ( f ) }
2020 spec . require_paths = [ "lib" ]
21- spec . required_ruby_version = ">= 2.4.0dev "
21+ spec . required_ruby_version = ">= 2.3 "
2222
2323 spec . add_development_dependency "bundler"
2424 spec . add_development_dependency "rake"
You can’t perform that action at this time.
0 commit comments