<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,7 +5,7 @@ require 'stringio'
 module Net  #:nodoc: all
 
   class BufferedIO
-    alias :old_initialize :initialize
+    alias initialize_without_fakeweb initialize
     def initialize(io, debug_output = nil)
       @read_timeout = 60
       @rbuf = ''
@@ -27,15 +27,13 @@ module Net  #:nodoc: all
 
   class HTTP
     class &lt;&lt; self
-      alias :old_socket_type :socket_type
-    end
-    def self.socket_type
-      FakeWeb::StubSocket
+      alias socket_type_without_fakeweb socket_type
+      def socket_type
+        FakeWeb::StubSocket
+      end
     end
 
-    alias :original_net_http_request :request
-    alias :original_net_http_connect :connect
-
+    alias request_without_fakeweb request
     def request(request, body = nil, &amp;block)
       protocol = use_ssl? ? &quot;https&quot; : &quot;http&quot;
 
@@ -55,14 +53,15 @@ module Net  #:nodoc: all
         @socket = Net::HTTP.socket_type.new
         FakeWeb.response_for(method, uri, &amp;block)
       elsif FakeWeb.allow_net_connect?
-        original_net_http_connect
-        original_net_http_request(request, body, &amp;block)
+        connect_without_fakeweb
+        request_without_fakeweb(request, body, &amp;block)
       else
         raise FakeWeb::NetConnectNotAllowedError,
               &quot;Real HTTP connections are disabled. Unregistered request: #{request.method} #{uri}&quot;
       end
     end
 
+    alias connect_without_fakeweb connect
     def connect
     end
   end</diff>
      <filename>lib/fake_web/ext/net_http.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6e3dd195e0ca499d8e5dfe42f7b0f8df7c65222b</id>
    </parent>
  </parents>
  <author>
    <name>Chris Kampmeier</name>
    <email>chris@kampers.net</email>
  </author>
  <url>http://github.com/rubyist/fakeweb/commit/e174eb111037cdf5fa3cbd99469887fbb31130b5</url>
  <id>e174eb111037cdf5fa3cbd99469887fbb31130b5</id>
  <committed-date>2009-05-24T13:22:02-07:00</committed-date>
  <authored-date>2009-05-24T13:10:15-07:00</authored-date>
  <message>Rename all aliases to use alias_method_chain's _without_foo style, to reduce chances of collision with another Net::HTTP monkey-patcher</message>
  <tree>644deb08a2a3fb5bfc58efcf4dbc9eb2af68af0d</tree>
  <committer>
    <name>Chris Kampmeier</name>
    <email>chris@kampers.net</email>
  </committer>
</commit>
