eric-fakeweb 1.2.2.1 → 1.2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/fake_web/ext/net_http.rb +4 -2
- metadata +1 -1
|
@@ -5,6 +5,8 @@ require 'stringio'
|
|
|
5
5
|
module Net #:nodoc: all
|
|
6
6
|
|
|
7
7
|
class BufferedIO
|
|
8
|
+
attr_accessor :full_rbuf
|
|
9
|
+
|
|
8
10
|
alias initialize_without_fakeweb initialize
|
|
9
11
|
def initialize(io, debug_output = nil)
|
|
10
12
|
@read_timeout = 60
|
|
@@ -63,7 +65,7 @@ module Net #:nodoc: all
|
|
|
63
65
|
elsif FakeWeb.allow_net_connect?
|
|
64
66
|
connect_without_fakeweb
|
|
65
67
|
res = request_without_fakeweb(request, body, &block)
|
|
66
|
-
after_unhandled_request(res)
|
|
68
|
+
after_unhandled_request(request, res)
|
|
67
69
|
res
|
|
68
70
|
else
|
|
69
71
|
raise FakeWeb::NetConnectNotAllowedError,
|
|
@@ -75,7 +77,7 @@ module Net #:nodoc: all
|
|
|
75
77
|
def connect
|
|
76
78
|
end
|
|
77
79
|
|
|
78
|
-
def after_unhandled_request(
|
|
80
|
+
def after_unhandled_request(request, response)
|
|
79
81
|
end
|
|
80
82
|
end
|
|
81
83
|
end
|