webmock 3.25.0 → 3.25.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/README.md +2 -0
- data/lib/webmock/http_lib_adapters/em_http_request_adapter.rb +0 -2
- data/lib/webmock/http_lib_adapters/net_http.rb +2 -2
- data/lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb +1 -1
- data/lib/webmock/version.rb +1 -1
- metadata +21 -21
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6cb5adfd1be1340803aabcb4c88b2d17449d901b3fbfc83a689f0805c12b065e
|
|
4
|
+
data.tar.gz: e833d8da20f42f76052cfe12463a284f0860f4698ac2d3365d61d1ffd41df2f0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 75f3664119713809d194ea6f09206ca9fc98cf78027e2a2b88a0058f4e98e92cb1542d0c47744e35169f0397ef8874807b933495b4621618e7db139bba3a6ffe
|
|
7
|
+
data.tar.gz: 9fdf57a2893b373d16ead64b995d5c83a2f7d1c6c5aa25e1d7115dfb037a4e03626291432d51a5b067f6259dcd19afb1f8771eb672f74ec83b668e9d7c4d9241
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
# 3.25.2
|
|
4
|
+
|
|
5
|
+
* Return support for `em_http_request`
|
|
6
|
+
|
|
7
|
+
Thanks to [Oleg](https://github.com/Koilanetroc)
|
|
8
|
+
|
|
9
|
+
# 3.25.1
|
|
10
|
+
|
|
11
|
+
* Fix FrozenError in Typhoeus streaming response body
|
|
12
|
+
|
|
13
|
+
Thanks to [Patrick Jaberg](https://github.com/patrickjaberg)
|
|
14
|
+
|
|
3
15
|
# 3.25.0
|
|
4
16
|
|
|
5
17
|
* Resolve net-http adapter deprecation Ruby 3.4
|
data/README.md
CHANGED
|
@@ -1207,6 +1207,8 @@ People who submitted patches and new features or suggested improvements. Many th
|
|
|
1207
1207
|
* Jacob Frautschi
|
|
1208
1208
|
* Christian Schmidt
|
|
1209
1209
|
* Rodrigo Argumedo
|
|
1210
|
+
* Patrick Jaberg
|
|
1211
|
+
* Oleg
|
|
1210
1212
|
|
|
1211
1213
|
For a full list of contributors you can visit the
|
|
1212
1214
|
[contributors](https://github.com/bblimke/webmock/contributors) page.
|
|
@@ -200,9 +200,9 @@ module WebMock
|
|
|
200
200
|
|
|
201
201
|
|
|
202
202
|
def check_right_http_connection
|
|
203
|
-
unless @@
|
|
203
|
+
unless @@already_checked_for_right_http_connection ||= false
|
|
204
204
|
WebMock::NetHTTPUtility.puts_warning_for_right_http_if_needed
|
|
205
|
-
@@
|
|
205
|
+
@@already_checked_for_right_http_connection = true
|
|
206
206
|
end
|
|
207
207
|
end
|
|
208
208
|
end
|
|
@@ -172,7 +172,7 @@ if defined?(Typhoeus)
|
|
|
172
172
|
request.execute_headers_callbacks(response)
|
|
173
173
|
end
|
|
174
174
|
if request.respond_to?(:streaming?) && request.streaming?
|
|
175
|
-
response.options[:response_body] = ""
|
|
175
|
+
response.options[:response_body] = "".dup
|
|
176
176
|
request.on_body.each { |callback| callback.call(webmock_response.body, response) }
|
|
177
177
|
end
|
|
178
178
|
request.finish(response)
|
data/lib/webmock/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: webmock
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.25.
|
|
4
|
+
version: 3.25.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bartosz Blimke
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: addressable
|
|
@@ -197,20 +197,6 @@ dependencies:
|
|
|
197
197
|
- - ">="
|
|
198
198
|
- !ruby/object:Gem::Version
|
|
199
199
|
version: 2.2.4
|
|
200
|
-
- !ruby/object:Gem::Dependency
|
|
201
|
-
name: mutex_m
|
|
202
|
-
requirement: !ruby/object:Gem::Requirement
|
|
203
|
-
requirements:
|
|
204
|
-
- - ">="
|
|
205
|
-
- !ruby/object:Gem::Version
|
|
206
|
-
version: '0'
|
|
207
|
-
type: :development
|
|
208
|
-
prerelease: false
|
|
209
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
210
|
-
requirements:
|
|
211
|
-
- - ">="
|
|
212
|
-
- !ruby/object:Gem::Version
|
|
213
|
-
version: '0'
|
|
214
200
|
- !ruby/object:Gem::Dependency
|
|
215
201
|
name: excon
|
|
216
202
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -295,6 +281,20 @@ dependencies:
|
|
|
295
281
|
- - ">="
|
|
296
282
|
- !ruby/object:Gem::Version
|
|
297
283
|
version: '0'
|
|
284
|
+
- !ruby/object:Gem::Dependency
|
|
285
|
+
name: protocol-http
|
|
286
|
+
requirement: !ruby/object:Gem::Requirement
|
|
287
|
+
requirements:
|
|
288
|
+
- - "<="
|
|
289
|
+
- !ruby/object:Gem::Version
|
|
290
|
+
version: 0.50.0
|
|
291
|
+
type: :development
|
|
292
|
+
prerelease: false
|
|
293
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
294
|
+
requirements:
|
|
295
|
+
- - "<="
|
|
296
|
+
- !ruby/object:Gem::Version
|
|
297
|
+
version: 0.50.0
|
|
298
298
|
description: WebMock allows stubbing HTTP requests and setting expectations on HTTP
|
|
299
299
|
requests.
|
|
300
300
|
email:
|
|
@@ -372,9 +372,9 @@ licenses:
|
|
|
372
372
|
- MIT
|
|
373
373
|
metadata:
|
|
374
374
|
bug_tracker_uri: https://github.com/bblimke/webmock/issues
|
|
375
|
-
changelog_uri: https://github.com/bblimke/webmock/blob/v3.25.
|
|
376
|
-
documentation_uri: https://www.rubydoc.info/gems/webmock/3.25.
|
|
377
|
-
source_code_uri: https://github.com/bblimke/webmock/tree/v3.25.
|
|
375
|
+
changelog_uri: https://github.com/bblimke/webmock/blob/v3.25.2/CHANGELOG.md
|
|
376
|
+
documentation_uri: https://www.rubydoc.info/gems/webmock/3.25.2
|
|
377
|
+
source_code_uri: https://github.com/bblimke/webmock/tree/v3.25.2
|
|
378
378
|
wiki_uri: https://github.com/bblimke/webmock/wiki
|
|
379
379
|
rdoc_options: []
|
|
380
380
|
require_paths:
|
|
@@ -383,14 +383,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
383
383
|
requirements:
|
|
384
384
|
- - ">="
|
|
385
385
|
- !ruby/object:Gem::Version
|
|
386
|
-
version: '2.
|
|
386
|
+
version: '2.6'
|
|
387
387
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
388
388
|
requirements:
|
|
389
389
|
- - ">="
|
|
390
390
|
- !ruby/object:Gem::Version
|
|
391
391
|
version: '0'
|
|
392
392
|
requirements: []
|
|
393
|
-
rubygems_version: 3.
|
|
393
|
+
rubygems_version: 3.6.9
|
|
394
394
|
specification_version: 4
|
|
395
395
|
summary: Library for stubbing HTTP requests in Ruby.
|
|
396
396
|
test_files: []
|