webmock 3.7.6 → 3.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -4
- data/CHANGELOG.md +10 -0
- data/README.md +3 -0
- data/lib/webmock/http_lib_adapters/async_http_client_adapter.rb +1 -1
- data/lib/webmock/http_lib_adapters/net_http.rb +11 -4
- data/lib/webmock/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7f69433e4cc2a3e16c2ba55df62db7f99585200c9bc9bc1d1e9f53df9fc8bb6
|
4
|
+
data.tar.gz: ffa4936d1432c8256bcd244db949cd75342170d60c9920707846ae6d12540434
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 272c6a7bab37739d29fe8412264227325c4ceda06d17a6df13ba6ed317bda6770865063ef99b215c7880029f4a4dca1114e88fb5c0c017efeddee3a67f68cdf9
|
7
|
+
data.tar.gz: b86032f68e0e058d99c2ab61b1d360756d9bf4611cf383588feaad866a1d33964b4150a7819f5c1b0c64651539aed99499de7f8e1efbac476f99769f76abcfd4
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 3.8.0
|
4
|
+
|
5
|
+
* Fixed options handling when initialising Async::HTTP::Client
|
6
|
+
|
7
|
+
Thanks to [Samuel Williams](https://github.com/ioquatix)
|
8
|
+
|
9
|
+
* Ruby 2.7 support.
|
10
|
+
|
11
|
+
Thanks to [Ryan Davis](https://github.com/zenspider) and [Brandur](https://github.com/brandur)
|
12
|
+
|
3
13
|
## 3.7.6
|
4
14
|
|
5
15
|
* Suppressed keyword argument warnings in Ruby 2.7 in async-http adapter.
|
data/README.md
CHANGED
@@ -1115,6 +1115,9 @@ People who submitted patches and new features or suggested improvements. Many th
|
|
1115
1115
|
* Orien Madgwick
|
1116
1116
|
* Andrei Sidorov
|
1117
1117
|
* Marco Costa
|
1118
|
+
* Ryan Davis
|
1119
|
+
* Brandur
|
1120
|
+
* Samuel Williams
|
1118
1121
|
|
1119
1122
|
For a full list of contributors you can visit the
|
1120
1123
|
[contributors](https://github.com/bblimke/webmock/contributors) page.
|
@@ -228,9 +228,9 @@ class PatchedStringIO < StringIO #:nodoc:
|
|
228
228
|
|
229
229
|
alias_method :orig_read_nonblock, :read_nonblock
|
230
230
|
|
231
|
-
def read_nonblock(size, *args)
|
231
|
+
def read_nonblock(size, *args, **kwargs)
|
232
232
|
args.reject! {|arg| !arg.is_a?(Hash)}
|
233
|
-
orig_read_nonblock(size, *args)
|
233
|
+
orig_read_nonblock(size, *args, **kwargs)
|
234
234
|
end
|
235
235
|
|
236
236
|
end
|
@@ -257,7 +257,7 @@ end
|
|
257
257
|
module Net #:nodoc: all
|
258
258
|
|
259
259
|
class WebMockNetBufferedIO < BufferedIO
|
260
|
-
def initialize(io, *args)
|
260
|
+
def initialize(io, *args, **kwargs)
|
261
261
|
io = case io
|
262
262
|
when Socket, OpenSSL::SSL::SSLSocket, IO
|
263
263
|
io
|
@@ -268,7 +268,14 @@ module Net #:nodoc: all
|
|
268
268
|
end
|
269
269
|
raise "Unable to create local socket" unless io
|
270
270
|
|
271
|
-
|
271
|
+
# Prior to 2.4.0 `BufferedIO` only takes a single argument (`io`) with no
|
272
|
+
# options. Here we pass through our full set of arguments only if we're
|
273
|
+
# on 2.4.0 or later, and use a simplified invocation otherwise.
|
274
|
+
if RUBY_VERSION >= '2.4.0'
|
275
|
+
super
|
276
|
+
else
|
277
|
+
super(io)
|
278
|
+
end
|
272
279
|
end
|
273
280
|
|
274
281
|
if RUBY_VERSION >= '2.6.0'
|
data/lib/webmock/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webmock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bartosz Blimke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -407,9 +407,9 @@ licenses:
|
|
407
407
|
- MIT
|
408
408
|
metadata:
|
409
409
|
bug_tracker_uri: https://github.com/bblimke/webmock/issues
|
410
|
-
changelog_uri: https://github.com/bblimke/webmock/blob/v3.
|
411
|
-
documentation_uri: https://www.rubydoc.info/gems/webmock/3.
|
412
|
-
source_code_uri: https://github.com/bblimke/webmock/tree/v3.
|
410
|
+
changelog_uri: https://github.com/bblimke/webmock/blob/v3.8.0/CHANGELOG.md
|
411
|
+
documentation_uri: https://www.rubydoc.info/gems/webmock/3.8.0
|
412
|
+
source_code_uri: https://github.com/bblimke/webmock/tree/v3.8.0
|
413
413
|
wiki_uri: https://github.com/bblimke/webmock/wiki
|
414
414
|
post_install_message:
|
415
415
|
rdoc_options: []
|