webmock 3.25.0 → 3.26.0
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 +18 -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/request_pattern.rb +3 -3
- data/lib/webmock/version.rb +1 -1
- metadata +24 -21
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ea3075ae990e337281ee3253f47b6d60b3fbfc1abac938b07ef7315d36095a49
|
|
4
|
+
data.tar.gz: 8f1ad063592c2f0959e0910777d938dfacdfe1321d6fcf912fb7f90fee21da7b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7ff751fe621c133529d87d1c0ce5cb88667fb570598a977d68849928fb57710663c1ce7a6470c42e1663fc70501d89a9e49ee7e4167488a1ea91551350629dbf
|
|
7
|
+
data.tar.gz: 785ac79c219e4710414e160afcb8857c3a654f69294565f8aecacb60bb079855b63155be6307e2f32ae0be77c7fc519227e0060607d55b5925a9c6a2054b17ab
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
# 3.26.0
|
|
4
|
+
|
|
5
|
+
* Support Addressable::URI in request patterns
|
|
6
|
+
|
|
7
|
+
Thanks to [Alexey Zapparov](https://github.com/ixti)
|
|
8
|
+
|
|
9
|
+
# 3.25.2
|
|
10
|
+
|
|
11
|
+
* Return support for `em_http_request`
|
|
12
|
+
|
|
13
|
+
Thanks to [Oleg](https://github.com/Koilanetroc)
|
|
14
|
+
|
|
15
|
+
# 3.25.1
|
|
16
|
+
|
|
17
|
+
* Fix FrozenError in Typhoeus streaming response body
|
|
18
|
+
|
|
19
|
+
Thanks to [Patrick Jaberg](https://github.com/patrickjaberg)
|
|
20
|
+
|
|
3
21
|
# 3.25.0
|
|
4
22
|
|
|
5
23
|
* 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)
|
|
@@ -86,10 +86,10 @@ module WebMock
|
|
|
86
86
|
URICallablePattern.new(uri)
|
|
87
87
|
elsif uri.is_a?(::URI::Generic)
|
|
88
88
|
URIStringPattern.new(uri.to_s)
|
|
89
|
-
elsif uri.
|
|
90
|
-
URIStringPattern.new(uri)
|
|
89
|
+
elsif uri.respond_to?(:to_str)
|
|
90
|
+
URIStringPattern.new(uri.to_str)
|
|
91
91
|
else
|
|
92
|
-
raise ArgumentError.new("URI should be a String, Regexp, Addressable::Template
|
|
92
|
+
raise ArgumentError.new("URI should be a String, Regexp, Addressable::Template, a callable object, or respond to #to_str. Got: #{uri.class}")
|
|
93
93
|
end
|
|
94
94
|
end
|
|
95
95
|
end
|
data/lib/webmock/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +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.26.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bartosz Blimke
|
|
8
|
+
autorequire:
|
|
8
9
|
bindir: bin
|
|
9
10
|
cert_chain: []
|
|
10
|
-
date: 2025-
|
|
11
|
+
date: 2025-10-26 00:00:00.000000000 Z
|
|
11
12
|
dependencies:
|
|
12
13
|
- !ruby/object:Gem::Dependency
|
|
13
14
|
name: addressable
|
|
@@ -197,20 +198,6 @@ dependencies:
|
|
|
197
198
|
- - ">="
|
|
198
199
|
- !ruby/object:Gem::Version
|
|
199
200
|
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
201
|
- !ruby/object:Gem::Dependency
|
|
215
202
|
name: excon
|
|
216
203
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -295,6 +282,20 @@ dependencies:
|
|
|
295
282
|
- - ">="
|
|
296
283
|
- !ruby/object:Gem::Version
|
|
297
284
|
version: '0'
|
|
285
|
+
- !ruby/object:Gem::Dependency
|
|
286
|
+
name: protocol-http
|
|
287
|
+
requirement: !ruby/object:Gem::Requirement
|
|
288
|
+
requirements:
|
|
289
|
+
- - "<="
|
|
290
|
+
- !ruby/object:Gem::Version
|
|
291
|
+
version: 0.50.0
|
|
292
|
+
type: :development
|
|
293
|
+
prerelease: false
|
|
294
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
295
|
+
requirements:
|
|
296
|
+
- - "<="
|
|
297
|
+
- !ruby/object:Gem::Version
|
|
298
|
+
version: 0.50.0
|
|
298
299
|
description: WebMock allows stubbing HTTP requests and setting expectations on HTTP
|
|
299
300
|
requests.
|
|
300
301
|
email:
|
|
@@ -372,10 +373,11 @@ licenses:
|
|
|
372
373
|
- MIT
|
|
373
374
|
metadata:
|
|
374
375
|
bug_tracker_uri: https://github.com/bblimke/webmock/issues
|
|
375
|
-
changelog_uri: https://github.com/bblimke/webmock/blob/v3.
|
|
376
|
-
documentation_uri: https://www.rubydoc.info/gems/webmock/3.
|
|
377
|
-
source_code_uri: https://github.com/bblimke/webmock/tree/v3.
|
|
376
|
+
changelog_uri: https://github.com/bblimke/webmock/blob/v3.26.0/CHANGELOG.md
|
|
377
|
+
documentation_uri: https://www.rubydoc.info/gems/webmock/3.26.0
|
|
378
|
+
source_code_uri: https://github.com/bblimke/webmock/tree/v3.26.0
|
|
378
379
|
wiki_uri: https://github.com/bblimke/webmock/wiki
|
|
380
|
+
post_install_message:
|
|
379
381
|
rdoc_options: []
|
|
380
382
|
require_paths:
|
|
381
383
|
- lib
|
|
@@ -383,14 +385,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
383
385
|
requirements:
|
|
384
386
|
- - ">="
|
|
385
387
|
- !ruby/object:Gem::Version
|
|
386
|
-
version: '2.
|
|
388
|
+
version: '2.6'
|
|
387
389
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
388
390
|
requirements:
|
|
389
391
|
- - ">="
|
|
390
392
|
- !ruby/object:Gem::Version
|
|
391
393
|
version: '0'
|
|
392
394
|
requirements: []
|
|
393
|
-
rubygems_version: 3.
|
|
395
|
+
rubygems_version: 3.5.16
|
|
396
|
+
signing_key:
|
|
394
397
|
specification_version: 4
|
|
395
398
|
summary: Library for stubbing HTTP requests in Ruby.
|
|
396
399
|
test_files: []
|