Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add method aliases to eliminate warnings when running with -w

  • Loading branch information...
commit 6e3dd195e0ca499d8e5dfe42f7b0f8df7c65222b 1 parent b13cf7c
@illuminerdi illuminerdi authored chrisk committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/fake_web/ext/net_http.rb
View
4 lib/fake_web/ext/net_http.rb
@@ -5,6 +5,7 @@
module Net #:nodoc: all
class BufferedIO
+ alias :old_initialize :initialize
def initialize(io, debug_output = nil)
@read_timeout = 60
@rbuf = ''
@@ -25,6 +26,9 @@ def initialize(io, debug_output = nil)
end
class HTTP
+ class << self
+ alias :old_socket_type :socket_type
+ end
def self.socket_type
FakeWeb::StubSocket
end
Please sign in to comment.
Something went wrong with that request. Please try again.