webmock 3.5.0 → 3.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2fcd3ec57f1f8be3dbf2685777853444680221a9c0230e6c068d3581bfb831a4
4
- data.tar.gz: c14190f8962b927f5d1c5493db24a226c6cc56d54aff9d34589e7fa3adbf44b5
3
+ metadata.gz: a1f4b12d21d9712fdf49cc29d9494285c36926b29eda702e3821caab05ba7a97
4
+ data.tar.gz: 24a7edb6ce921ef9735043588ee89ab31b895f9e99bccf3c655d20f645b3cf55
5
5
  SHA512:
6
- metadata.gz: 7ed35459642359c3dc62cae4016b636110432e2bef6b6047acc5bb11d7ffa6dd180cb8938ad6e6dc522a4cb3429150ad7533e442df5fe8ab2fc3b9638126da7c
7
- data.tar.gz: 2e7ebfc8da28d95acf8477b7166dba7e19657ba5d8fd7c4f44ae19985d216c639250c6c7ff47e2b65b007f58791f0116509a15f98b8babd75fd0acb66d00ca1d
6
+ metadata.gz: 724c7ae8d9ba016537b0e45968e9ae8d820458be36106a24eb7374ccc09cb3e06fb0df5968014443b4f94ba16349dad4643bf683cab17c4af1b32ae9c5b1112d
7
+ data.tar.gz: 440171bbd565223139df3aec8581378497cfe359dc766c4b5e8dcf0b865a6c6adf759029d551b3ffac084d7b9683401baabd0b713930017563b7d79cb09320e8
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.5.1
4
+
5
+ * Disabling TracePoint defined in Net::BufferedIO in case of exception being raised.
6
+
7
+ Thanks to [Koichi Sasada](https://github.com/ko1)
8
+
9
+
3
10
  ## 3.5.0
4
11
 
5
12
  * Ruby 2.6.0 support
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, read_timeout: 60, write_timeout: 60, continue_timeout: nil, debug_output: nil)
260
- @read_timeout = read_timeout
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 @io
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
@@ -23,7 +23,7 @@ module Net
23
23
  return nil if @body.nil?
24
24
 
25
25
  dest ||= ::Net::ReadAdapter.new(block)
26
- dest << @body
26
+ dest << @body.dup
27
27
  @body = dest
28
28
  ensure
29
29
  # allow subsequent calls to #read_body to proceed as normal, without our hack...
@@ -1,3 +1,3 @@
1
1
  module WebMock
2
- VERSION = '3.5.0' unless defined?(::WebMock::VERSION)
2
+ VERSION = '3.5.1' unless defined?(::WebMock::VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webmock
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.0
4
+ version: 3.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bartosz Blimke