X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/ed9b544e10b84cd43348ddfab7068b610a5df1f7..928394cd12eb75c35eac72952b29e4dc9e75d154:/client-libraries/ruby/lib/better_timeout.rb diff --git a/client-libraries/ruby/lib/better_timeout.rb b/client-libraries/ruby/lib/better_timeout.rb index ac12c6eb..818909a8 100644 --- a/client-libraries/ruby/lib/better_timeout.rb +++ b/client-libraries/ruby/lib/better_timeout.rb @@ -163,6 +163,9 @@ end # Another name for Timeout::Error, defined for backwards compatibility with # earlier versions of timeout.rb. +class Object + remove_const(:TimeoutError) if const_defined?(:TimeoutError) +end TimeoutError = Timeout::Error # :nodoc: if __FILE__ == $0