webmock 3.10.0 → 3.11.0

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: 18f78451e2de5c81e96da75d822f7bb1559f4c9f02e80a383758b9c4ef9be1c3
4
- data.tar.gz: b245cfea73c1924eaeaad716c487f8548b392d120c28ff0f513da71a63d65944
3
+ metadata.gz: ee9c189319718f559e90e9e6d031d8dbdac98e9f0ae84c0c7e79d90bfc0dd493
4
+ data.tar.gz: cde291017ee8a2587c03e21d20317b96755ac15b94f1e4f287acc035c08ad904
5
5
  SHA512:
6
- metadata.gz: 494e56d26e2d83828629de2901e0b1e0234a043261e19bd9080d4326e2812fc699cf7ee3817c8b86b3f99603a1a91918bd1d8474bba10fddefd6cf96565a7869
7
- data.tar.gz: bb92e415f29748dbb63830bff8231607e599c0082d527513f4c02180dda83930fad830750978be6e59ed206122aeb77f7a48e4603e578fa26aa49f6b143087dd
6
+ metadata.gz: 54838a253c586b32dfaf604b8f4c8efff34bb81a888bda860ca6e9b58ff0a5430376852e0d17a84d8ee4e56a088031d75d3ddb3d00d803789e6eb013e5493d9a
7
+ data.tar.gz: 9ddee20d1741ad835224254caaa8bbeda8807dc71c246c4ea8c3be18f31c089658f8c7a3b2fdf14da1f9cda32fe7c7cbf9cb594445ba92d47fa549754dd9b27e
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ # 3.11.0
4
+
5
+ * Added support for `features` in http.rb adapter.
6
+
7
+ Thanks to [Carl (ce07c3)](https://github.com/ce07c3)
8
+
3
9
  # 3.10.0
4
10
 
5
11
  * Added option to global stubs to have lower priority than local stubs.
data/README.md CHANGED
@@ -1151,6 +1151,7 @@ People who submitted patches and new features or suggested improvements. Many th
1151
1151
  * Ben Koshy
1152
1152
  * Jesse Bowes
1153
1153
  * Marek Kasztelnik
1154
+ * ce07c3
1154
1155
 
1155
1156
  For a full list of contributors you can visit the
1156
1157
  [contributors](https://github.com/bblimke/webmock/contributors) page.
@@ -4,7 +4,10 @@ module HTTP
4
4
 
5
5
  def perform(request, options)
6
6
  return __perform__(request, options) unless webmock_enabled?
7
- WebMockPerform.new(request) { __perform__(request, options) }.exec
7
+
8
+ response = WebMockPerform.new(request) { __perform__(request, options) }.exec
9
+ options.features.each { |_name, feature| response = feature.wrap_response(response) }
10
+ response
8
11
  end
9
12
 
10
13
  def webmock_enabled?
@@ -1,3 +1,3 @@
1
1
  module WebMock
2
- VERSION = '3.10.0' unless defined?(::WebMock::VERSION)
2
+ VERSION = '3.11.0' unless defined?(::WebMock::VERSION)
3
3
  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.10.0
4
+ version: 3.11.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: 2020-11-12 00:00:00.000000000 Z
11
+ date: 2020-12-17 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.10.0/CHANGELOG.md
411
- documentation_uri: https://www.rubydoc.info/gems/webmock/3.10.0
412
- source_code_uri: https://github.com/bblimke/webmock/tree/v3.10.0
410
+ changelog_uri: https://github.com/bblimke/webmock/blob/v3.11.0/CHANGELOG.md
411
+ documentation_uri: https://www.rubydoc.info/gems/webmock/3.11.0
412
+ source_code_uri: https://github.com/bblimke/webmock/tree/v3.11.0
413
413
  wiki_uri: https://github.com/bblimke/webmock/wiki
414
414
  post_install_message:
415
415
  rdoc_options: []