webmock 3.5.0 → 3.5.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +3 -0
- data/lib/webmock/http_lib_adapters/net_http.rb +6 -9
- data/lib/webmock/http_lib_adapters/net_http_response.rb +1 -1
- data/lib/webmock/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1f4b12d21d9712fdf49cc29d9494285c36926b29eda702e3821caab05ba7a97
|
4
|
+
data.tar.gz: 24a7edb6ce921ef9735043588ee89ab31b895f9e99bccf3c655d20f645b3cf55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 724c7ae8d9ba016537b0e45968e9ae8d820458be36106a24eb7374ccc09cb3e06fb0df5968014443b4f94ba16349dad4643bf683cab17c4af1b32ae9c5b1112d
|
7
|
+
data.tar.gz: 440171bbd565223139df3aec8581378497cfe359dc766c4b5e8dcf0b865a6c6adf759029d551b3ffac084d7b9683401baabd0b713930017563b7d79cb09320e8
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -36,6 +36,7 @@ Supported Ruby Interpreters
|
|
36
36
|
* MRI 2.3
|
37
37
|
* MRI 2.4
|
38
38
|
* MRI 2.5
|
39
|
+
* MRI 2.6
|
39
40
|
* JRuby
|
40
41
|
* Rubinius
|
41
42
|
|
@@ -1083,6 +1084,8 @@ People who submitted patches and new features or suggested improvements. Many th
|
|
1083
1084
|
* Olle Jonsson
|
1084
1085
|
* Pavel Rosický
|
1085
1086
|
* Geremia Taglialatela
|
1087
|
+
* Koichi Sasada
|
1088
|
+
* Yusuke Endoh
|
1086
1089
|
|
1087
1090
|
For a full list of contributors you can visit the
|
1088
1091
|
[contributors](https://github.com/bblimke/webmock/contributors) page.
|
@@ -256,13 +256,8 @@ end
|
|
256
256
|
module Net #:nodoc: all
|
257
257
|
|
258
258
|
class WebMockNetBufferedIO < BufferedIO
|
259
|
-
def initialize(io,
|
260
|
-
|
261
|
-
@write_timeout = write_timeout
|
262
|
-
@rbuf = ''.dup
|
263
|
-
@debug_output = debug_output
|
264
|
-
|
265
|
-
@io = case io
|
259
|
+
def initialize(io, *args)
|
260
|
+
io = case io
|
266
261
|
when Socket, OpenSSL::SSL::SSLSocket, IO
|
267
262
|
io
|
268
263
|
when StringIO
|
@@ -270,7 +265,9 @@ module Net #:nodoc: all
|
|
270
265
|
when String
|
271
266
|
PatchedStringIO.new(io)
|
272
267
|
end
|
273
|
-
raise "Unable to create local socket" unless
|
268
|
+
raise "Unable to create local socket" unless io
|
269
|
+
|
270
|
+
super
|
274
271
|
end
|
275
272
|
|
276
273
|
if RUBY_VERSION >= '2.6.0'
|
@@ -285,7 +282,7 @@ module Net #:nodoc: all
|
|
285
282
|
end
|
286
283
|
|
287
284
|
super
|
288
|
-
|
285
|
+
ensure
|
289
286
|
trace.disable
|
290
287
|
end
|
291
288
|
end
|
data/lib/webmock/version.rb
CHANGED