File net-ssh-session-0.1.6_use_global_timeout.patch of Package rubygem-net-ssh-session

Index: net-ssh-session-0.1.6/lib/net/ssh/session.rb
===================================================================
--- net-ssh-session-0.1.6.orig/lib/net/ssh/session.rb
+++ net-ssh-session-0.1.6/lib/net/ssh/session.rb
@@ -166,11 +166,11 @@ module Net
 
       def handle_timeout(&block)
         if timeout
-          Timeout.timeout(timeout) { block.call(self) }
+          ::Timeout.timeout(timeout) { block.call(self) }
         else
           block.call(self)
         end
       end
     end
   end
-end
\ No newline at end of file
+end
Index: net-ssh-session-0.1.6/lib/net/ssh/session_helpers.rb
===================================================================
--- net-ssh-session-0.1.6.orig/lib/net/ssh/session_helpers.rb
+++ net-ssh-session-0.1.6/lib/net/ssh/session_helpers.rb
@@ -124,10 +124,10 @@ module Net
       # @param time [Integer] max time for execution in seconds
       # @param block [Block] block to execute
       def with_timeout(time, &block)
-        Timeout.timeout(time) do
+        ::Timeout.timeout(time) do
           block.call(self)
         end
       end
     end
   end
-end
\ No newline at end of file
+end
openSUSE Build Service is sponsored by