webmock 3.1.1 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/README.md +2 -0
- data/lib/webmock/http_lib_adapters/curb_adapter.rb +1 -1
- data/lib/webmock/rspec.rb +8 -2
- data/lib/webmock/version.rb +1 -1
- data/spec/acceptance/http_rb/http_rb_spec_helper.rb +4 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcc2534597446961ba1489ab97892043fde75a6f
|
4
|
+
data.tar.gz: 1ef34b8d183d56935d2991b73cfa183d172f1df5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5ed61bb690ad3b649b944d2fbfe5d6c636303befe3ef378a3096dc17aa087fbb19ea36f73623400ae97bf20a30decb864ff32ba3fd9c0e452ef4dbf5b75e060
|
7
|
+
data.tar.gz: e6d8db01788d4f7684cece257af0efa5ae975c2f194cf72c907883a212e35534a6e281d5ef8fa14cf6dc44d5e6b719464941592fa9cbbd86752124569e27774f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 3.2.0
|
4
|
+
|
5
|
+
* Automatically disable WebMock after Rspec suite
|
6
|
+
|
7
|
+
Thanks to [Michał Matyas](https://github.com/d4rky-pl)
|
8
|
+
|
9
|
+
* Fixed bug when handling redirection using Curb.
|
10
|
+
|
11
|
+
Thanks to [Olia Kremmyda](https://github.com/Olia-Kremmyda)
|
12
|
+
|
13
|
+
|
3
14
|
## 3.1.1
|
4
15
|
|
5
16
|
* Warning message is displayed only once when adding query params to URIAddressablePattern.
|
data/README.md
CHANGED
@@ -1049,6 +1049,8 @@ People who submitted patches and new features or suggested improvements. Many th
|
|
1049
1049
|
* Rick Song
|
1050
1050
|
* NARUSE, Yui
|
1051
1051
|
* Piotr Boniecki
|
1052
|
+
* Olia Kremmyda
|
1053
|
+
* Michał Matyas
|
1052
1054
|
|
1053
1055
|
For a full list of contributors you can visit the
|
1054
1056
|
[contributors](https://github.com/bblimke/webmock/contributors) page.
|
data/lib/webmock/rspec.rb
CHANGED
@@ -20,13 +20,19 @@ end
|
|
20
20
|
|
21
21
|
require 'webmock/rspec/matchers'
|
22
22
|
|
23
|
-
WebMock.enable!
|
24
|
-
|
25
23
|
RSPEC_CONFIGURER.configure { |config|
|
26
24
|
|
27
25
|
config.include WebMock::API
|
28
26
|
config.include WebMock::Matchers
|
29
27
|
|
28
|
+
config.before(:suite) do
|
29
|
+
WebMock.enable!
|
30
|
+
end
|
31
|
+
|
32
|
+
config.after(:suite) do
|
33
|
+
WebMock.disable!
|
34
|
+
end
|
35
|
+
|
30
36
|
config.after(:each) do
|
31
37
|
WebMock.reset!
|
32
38
|
end
|
data/lib/webmock/version.rb
CHANGED
@@ -8,7 +8,10 @@ module HttpRbSpecHelper
|
|
8
8
|
chain = chain.basic_auth(user: basic_auth[0], pass: basic_auth[1])
|
9
9
|
end
|
10
10
|
|
11
|
-
|
11
|
+
ssl_ctx = OpenSSL::SSL::SSLContext.new
|
12
|
+
ssl_ctx.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
13
|
+
|
14
|
+
response = chain.request(method, normalize_uri(uri), options.merge(ssl_context: ssl_ctx))
|
12
15
|
|
13
16
|
OpenStruct.new({
|
14
17
|
body: response.body.to_s,
|
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.2.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: 2018-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -112,16 +112,16 @@ dependencies:
|
|
112
112
|
name: rack
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ">"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.6
|
117
|
+
version: '1.6'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - ">"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 1.6
|
124
|
+
version: '1.6'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rspec
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -398,7 +398,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
398
398
|
version: '0'
|
399
399
|
requirements: []
|
400
400
|
rubyforge_project: webmock
|
401
|
-
rubygems_version: 2.
|
401
|
+
rubygems_version: 2.6.13
|
402
402
|
signing_key:
|
403
403
|
specification_version: 4
|
404
404
|
summary: Library for stubbing HTTP requests in Ruby.
|