Skip to content

Commit

Permalink
Fix Object#timeout deprecation warning in Ruby 2.3
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mattbrictson committed Jan 2, 2016
1 parent cf2ae08 commit 7d435c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rerun/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7d435c8

Please sign in to comment.