diff options
author | David RodrÃguez <[email protected]> | 2024-11-11 20:44:10 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2024-11-14 11:21:39 +0900 |
commit | 99c35edae1e98c77ac258513bf2f201b447a559d (patch) | |
tree | 5605a442659e6f208eaf1b4c47946f54718ec288 /lib/rubygems | |
parent | d9c754ab442109a654ea3a89f551b0b05f121f6f (diff) |
Update vendored timeout to 0.4.2
Diffstat (limited to 'lib/rubygems')
-rw-r--r-- | lib/rubygems/vendor/timeout/lib/timeout.rb | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/rubygems/vendor/timeout/lib/timeout.rb b/lib/rubygems/vendor/timeout/lib/timeout.rb index df97d64ca0..cb14fa6622 100644 --- a/lib/rubygems/vendor/timeout/lib/timeout.rb +++ b/lib/rubygems/vendor/timeout/lib/timeout.rb @@ -4,7 +4,7 @@ # == Synopsis # # require 'rubygems/vendor/timeout/lib/timeout' -# status = Gem::Timeout::timeout(5) { +# status = Gem::Timeout.timeout(5) { # # Something that should be interrupted if it takes more than 5 seconds... # } # @@ -13,28 +13,25 @@ # Gem::Timeout provides a way to auto-terminate a potentially long-running # operation if it hasn't finished in a fixed amount of time. # -# Previous versions didn't use a module for namespacing, however -# #timeout is provided for backwards compatibility. You -# should prefer Gem::Timeout.timeout instead. -# # == Copyright # # Copyright:: (C) 2000 Network Applied Communication Laboratory, Inc. # Copyright:: (C) 2000 Information-technology Promotion Agency, Japan module Gem::Timeout - VERSION = "0.4.1" + # The version + VERSION = "0.4.2" # Internal error raised to when a timeout is triggered. class ExitException < Exception - def exception(*) + def exception(*) # :nodoc: self end end # Raised by Gem::Timeout.timeout when the block times out. class Error < RuntimeError - def self.handle_timeout(message) + def self.handle_timeout(message) # :nodoc: exc = ExitException.new(message) begin |