proxy_rb 0.8.1 → 0.8.2

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
  SHA1:
3
- metadata.gz: 7a53deeff6e2b4c95b2d112ab7d20495b6d96a6e
4
- data.tar.gz: dd4afdcfce8e0eace00d11038f7fd4ae93150400
3
+ metadata.gz: 92fe4af2621de95c2c277229cbaaff95f5ca0cbf
4
+ data.tar.gz: 47bdbe23b2fe02c8ee43e4fd29d12a033b51c9a1
5
5
  SHA512:
6
- metadata.gz: 94e3c4a46fc6750ee4fab9f2281ed956667185f6ea6724c0da900f7411f48de2e6ecc96533b94685d10f55a4da01a26af00d5460c023909a254d0c3d1e50b552
7
- data.tar.gz: faeab3e30945621f1c2fd8d3ae52fe837f2aa57e433a21a4235036c67e2572758624501833dd1876f5623afde324c9198d864e39437130bd662fe60ab7b4a419
6
+ metadata.gz: c4047b08628ac37fa4de5f8bb904216ba151fa81cf0b2e9da64ddf5850026f2b33a68d3a53ce8274f8bcb42e4df50c85475c88a8138634f4ffa9e04030145253
7
+ data.tar.gz: 8a16a1b9d458fff9dcaefcb3b8603e32206ff4783be3590bd82fa144f0aaab45b8d664c0586c5f4927640fcd8279ccd8b435f791dce654b3eaa49663d701c21d
data/History.md CHANGED
@@ -4,6 +4,10 @@ Empty
4
4
 
5
5
  # RELEASED
6
6
 
7
+ ## [v0.8.2](https://github.com/cucumber/aruba/compare/v0.8.1...v0.8.2)
8
+
9
+ * Added warning if one disables `strict`-mode which was
10
+
7
11
  ## [v0.8.1](https://github.com/cucumber/aruba/compare/v0.8.0...v0.8.1)
8
12
 
9
13
  * Handle drivers - like `capybara-selenium` which currently not support
@@ -74,6 +74,7 @@ module ProxyRb
74
74
  private
75
75
 
76
76
  def after_init
77
+ output_format :warnings, proc { |v| format('WARNING: %s', v) }
77
78
  output_format :proxy, proc { |v| format('Proxy: %s', v) }
78
79
  output_format :proxy_user, proc { |v| format('Proxy User: %s', v) }
79
80
  output_format :resource_user, proc { |v| format('Resource User: %s', v) }
@@ -17,6 +17,8 @@ module ProxyRb
17
17
  return if runtime.setup_already_done?
18
18
 
19
19
  events
20
+ activate_announcer_channels
21
+ output_warnings
20
22
 
21
23
  runtime.setup_done
22
24
 
@@ -25,6 +27,14 @@ module ProxyRb
25
27
 
26
28
  private
27
29
 
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
+
28
38
  # disable Metrics/MethodLength
29
39
  # rubocop:disable Metrics/AbcSize
30
40
  def events
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  # Main Module
3
3
  module ProxyRb
4
- VERSION = '0.8.1'
4
+ VERSION = '0.8.2'
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.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Meyer