proxy_rb 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.md +4 -0
- data/lib/proxy_rb/rspec.rb +5 -0
- data/lib/proxy_rb/setup.rb +1 -11
- data/lib/proxy_rb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cd600ab4e47bdff1d8f9aa5a4c74c3c033f7cc8
|
4
|
+
data.tar.gz: f923255083ddd9fcf372c8f37815c44387df3c3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cf9fa3ffed13a211032a6c079703c3fa44f57c16f849c18029c51977e3de6884795b6fe5eb6be68f83b368b13f36e56c04606ca96276662729c6717d2c8c6d7
|
7
|
+
data.tar.gz: 62c2411556c6ce5a9949ff0ebd5df5294394e91f834f23a24a857cb0f53c7da9a3440d0eba3a7af26eca7e3603d2ca03e551fb9576784e6a098482e5ff943e9c
|
data/History.md
CHANGED
@@ -4,6 +4,10 @@ Empty
|
|
4
4
|
|
5
5
|
# RELEASED
|
6
6
|
|
7
|
+
## [v0.8.3](https://github.com/cucumber/aruba/compare/v0.8.2...v0.8.3)
|
8
|
+
|
9
|
+
* Make warning appear once
|
10
|
+
|
7
11
|
## [v0.8.2](https://github.com/cucumber/aruba/compare/v0.8.1...v0.8.2)
|
8
12
|
|
9
13
|
* Added warning if one disables `strict`-mode which was
|
data/lib/proxy_rb/rspec.rb
CHANGED
@@ -11,6 +11,11 @@ end
|
|
11
11
|
RSpec.configure do |config|
|
12
12
|
config.include ProxyRb::Api, type: :http_proxy
|
13
13
|
|
14
|
+
# Output warnings
|
15
|
+
config.before :suite do
|
16
|
+
ProxyRb.logger.warn 'You disabled the "strict"-mode in your ProxyRb-configuration. You might not notice all errors.' if ProxyRb.config.strict == false
|
17
|
+
end
|
18
|
+
|
14
19
|
# Setup ProxyRb
|
15
20
|
config.before :each do |_example|
|
16
21
|
next unless self.class.include? ProxyRb::Api
|
data/lib/proxy_rb/setup.rb
CHANGED
@@ -17,8 +17,6 @@ module ProxyRb
|
|
17
17
|
return if runtime.setup_already_done?
|
18
18
|
|
19
19
|
events
|
20
|
-
activate_announcer_channels
|
21
|
-
output_warnings
|
22
20
|
|
23
21
|
runtime.setup_done
|
24
22
|
|
@@ -27,14 +25,6 @@ module ProxyRb
|
|
27
25
|
|
28
26
|
private
|
29
27
|
|
30
|
-
def activate_announcer_channels
|
31
|
-
runtime.announcer.activate :warnings
|
32
|
-
end
|
33
|
-
|
34
|
-
def output_warnings
|
35
|
-
runtime.announcer.announce :warnings, 'You disabled the "strict"-mode in your ProxyRb-configuration. You might not notice all errors.' if runtime.config.strict == false
|
36
|
-
end
|
37
|
-
|
38
28
|
# disable Metrics/MethodLength
|
39
29
|
# rubocop:disable Metrics/AbcSize
|
40
30
|
def events
|
@@ -72,7 +62,7 @@ module ProxyRb
|
|
72
62
|
begin
|
73
63
|
runtime.announcer.announce :http_response_headers, event.entity.driver.response_headers
|
74
64
|
rescue Capybara::NotSupportedByDriverError
|
75
|
-
runtime.announcer.announce :http_response_headers,
|
65
|
+
runtime.announcer.announce :http_response_headers, 'Message': format('Using #response_headers with the current driver "%s" is currently not supported', event.entity.driver.class)
|
76
66
|
end
|
77
67
|
end
|
78
68
|
)
|
data/lib/proxy_rb/version.rb
CHANGED