proxy_rb 0.8.2 → 0.8.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 92fe4af2621de95c2c277229cbaaff95f5ca0cbf
4
- data.tar.gz: 47bdbe23b2fe02c8ee43e4fd29d12a033b51c9a1
3
+ metadata.gz: 9cd600ab4e47bdff1d8f9aa5a4c74c3c033f7cc8
4
+ data.tar.gz: f923255083ddd9fcf372c8f37815c44387df3c3d
5
5
  SHA512:
6
- metadata.gz: c4047b08628ac37fa4de5f8bb904216ba151fa81cf0b2e9da64ddf5850026f2b33a68d3a53ce8274f8bcb42e4df50c85475c88a8138634f4ffa9e04030145253
7
- data.tar.gz: 8a16a1b9d458fff9dcaefcb3b8603e32206ff4783be3590bd82fa144f0aaab45b8d664c0586c5f4927640fcd8279ccd8b435f791dce654b3eaa49663d701c21d
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
@@ -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
@@ -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, { 'Message': format('Using #response_headers with the current driver "%s" is currently not supported', event.entity.driver.class) }
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
  )
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  # Main Module
3
3
  module ProxyRb
4
- VERSION = '0.8.2'
4
+ VERSION = '0.8.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proxy_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Meyer