webmock 3.7.3 → 3.7.6
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/.travis.yml +2 -0
- data/CHANGELOG.md +18 -0
- data/README.md +3 -2
- data/lib/webmock/http_lib_adapters/async_http_client_adapter.rb +2 -2
- data/lib/webmock/http_lib_adapters/curb_adapter.rb +4 -0
- data/lib/webmock/http_lib_adapters/excon_adapter.rb +3 -0
- data/lib/webmock/version.rb +1 -1
- data/spec/acceptance/curb/curb_spec.rb +12 -5
- data/spec/acceptance/excon/excon_spec_helper.rb +2 -0
- 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: 337947555c0257e2a9eb31d5af91db7a2540ad489fd27dc31ad3409e14a9b028
|
4
|
+
data.tar.gz: bd7cde5d8e0c7226e1c9a38303dee583ac2e974658373215b7c11396579adef2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e94e7cd1f009c514204c4642ce13df9eb338fcd0cadea61347f02550606680c1605ea00b03c6453d34c89b407987b02d1b3a01c6ae9bc26ec56aec8103726999
|
7
|
+
data.tar.gz: 0fc2817995308a59726a703c3ab221e9aa7ee10b35909a637dfe9620c5c185d06ea5327f86234e6578568d94e7ca566df112601eb27f762d258c183b10c67dbc
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 3.7.6
|
4
|
+
|
5
|
+
* Suppressed keyword argument warnings in Ruby 2.7 in async-http adapter.
|
6
|
+
|
7
|
+
Thanks to [Koichi ITO](https://github.com/koic)
|
8
|
+
|
9
|
+
## 3.7.5
|
10
|
+
|
11
|
+
* Suppress Excon warning generated by extra key
|
12
|
+
|
13
|
+
Thanks to [Marco Costa](https://github.com/marcotc)
|
14
|
+
|
15
|
+
## 3.7.4
|
16
|
+
|
17
|
+
* Resetting memoized response fields in Curb adapter.
|
18
|
+
|
19
|
+
Thanks to [Andrei Sidorov](https://github.com/heretge)
|
20
|
+
|
3
21
|
## 3.7.3
|
4
22
|
|
5
23
|
* Fix for http.rb. Allow passing an output buffer to HTTP::Response::Body#readpartial
|
data/README.md
CHANGED
@@ -43,6 +43,7 @@ Supported Ruby Interpreters
|
|
43
43
|
* MRI 2.4
|
44
44
|
* MRI 2.5
|
45
45
|
* MRI 2.6
|
46
|
+
* MRI 2.7
|
46
47
|
* JRuby
|
47
48
|
* Rubinius
|
48
49
|
|
@@ -1112,8 +1113,8 @@ People who submitted patches and new features or suggested improvements. Many th
|
|
1112
1113
|
* George Claghorn
|
1113
1114
|
* Alex Junger
|
1114
1115
|
* Orien Madgwick
|
1115
|
-
|
1116
|
-
|
1116
|
+
* Andrei Sidorov
|
1117
|
+
* Marco Costa
|
1117
1118
|
|
1118
1119
|
For a full list of contributors you can visit the
|
1119
1120
|
[contributors](https://github.com/bblimke/webmock/contributors) page.
|
@@ -40,8 +40,8 @@ if defined?(Async::HTTP)
|
|
40
40
|
)
|
41
41
|
webmock_endpoint = WebMockEndpoint.new(scheme, authority, protocol)
|
42
42
|
|
43
|
-
@network_client = WebMockClient.new(endpoint, protocol, scheme, authority, options)
|
44
|
-
@webmock_client = WebMockClient.new(webmock_endpoint, protocol, scheme, authority, options)
|
43
|
+
@network_client = WebMockClient.new(endpoint, protocol, scheme, authority, **options)
|
44
|
+
@webmock_client = WebMockClient.new(webmock_endpoint, protocol, scheme, authority, **options)
|
45
45
|
|
46
46
|
@scheme = scheme
|
47
47
|
@authority = authority
|
@@ -340,6 +340,10 @@ if defined?(Curl)
|
|
340
340
|
|
341
341
|
def reset
|
342
342
|
instance_variable_set(:@body_str, nil)
|
343
|
+
instance_variable_set(:@content_type, nil)
|
344
|
+
instance_variable_set(:@header_str, nil)
|
345
|
+
instance_variable_set(:@last_effective_url, nil)
|
346
|
+
instance_variable_set(:@response_code, nil)
|
343
347
|
super
|
344
348
|
end
|
345
349
|
end
|
data/lib/webmock/version.rb
CHANGED
@@ -474,18 +474,25 @@ unless RUBY_PLATFORM =~ /java/
|
|
474
474
|
include CurbSpecHelper::ClassPerform
|
475
475
|
end
|
476
476
|
|
477
|
-
describe "using
|
477
|
+
describe "using #reset" do
|
478
478
|
before do
|
479
479
|
@curl = Curl::Easy.new
|
480
480
|
@curl.url = "http://example.com"
|
481
|
-
|
482
|
-
|
481
|
+
stub_request(:any, "example.com").
|
482
|
+
to_return(body: "abc",
|
483
|
+
headers: { "Content-Type" => "application/json" })
|
483
484
|
@curl.http_get
|
484
485
|
end
|
485
486
|
|
486
|
-
it "should clear
|
487
|
+
it "should clear all memoized response fields" do
|
487
488
|
@curl.reset
|
488
|
-
expect(@curl
|
489
|
+
expect(@curl).to have_attributes(
|
490
|
+
body_str: nil,
|
491
|
+
content_type: nil,
|
492
|
+
header_str: nil,
|
493
|
+
last_effective_url: nil,
|
494
|
+
response_code: 0,
|
495
|
+
)
|
489
496
|
end
|
490
497
|
end
|
491
498
|
end
|
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.7.
|
4
|
+
version: 3.7.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bartosz Blimke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-29 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.7.
|
411
|
-
documentation_uri: https://www.rubydoc.info/gems/webmock/3.7.
|
412
|
-
source_code_uri: https://github.com/bblimke/webmock/tree/v3.7.
|
410
|
+
changelog_uri: https://github.com/bblimke/webmock/blob/v3.7.6/CHANGELOG.md
|
411
|
+
documentation_uri: https://www.rubydoc.info/gems/webmock/3.7.6
|
412
|
+
source_code_uri: https://github.com/bblimke/webmock/tree/v3.7.6
|
413
413
|
wiki_uri: https://github.com/bblimke/webmock/wiki
|
414
414
|
post_install_message:
|
415
415
|
rdoc_options: []
|