lib/system_timer_stub.rb in SystemTimer-1.0 vs lib/system_timer_stub.rb in SystemTimer-1.1

- old
+ new

@@ -1,5 +1,7 @@ +# Copyright 2008 David Vollbracht & Philippe Hanrigou + require 'rubygems' require 'timeout' module SystemTimer class << self @@ -7,9 +9,12 @@ def timeout_after(seconds) Timeout::timeout(seconds) do yield end end + + # Backward compatibility with timeout.rb + alias timeout timeout_after end end