From 7d435c88aa21ed8ed449e98f8956ee1d0331434f Mon Sep 17 00:00:00 2001 From: Matt Brictson Date: Fri, 1 Jan 2016 21:48:08 -0800 Subject: [PATCH] Fix Object#timeout deprecation warning in Ruby 2.3 Fix the following warning by explicitly including the Timeout module, rather than relying on Object#timeout: lib/rerun/runner.rb:254:in `stop': Object#timeout is deprecated, use Timeout.timeout instead. --- lib/rerun/runner.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/rerun/runner.rb b/lib/rerun/runner.rb index 71999b5..33138a7 100644 --- a/lib/rerun/runner.rb +++ b/lib/rerun/runner.rb @@ -13,6 +13,7 @@ def self.keep_running(cmd, options) end include System + include ::Timeout def initialize(run_command, options = {}) @run_command, @options = run_command, options