lib/proxy_rb/setup.rb in proxy_rb-0.8.1 vs lib/proxy_rb/setup.rb in proxy_rb-0.8.2
- old
+ new
@@ -15,16 +15,26 @@
def call
return if runtime.setup_already_done?
events
+ activate_announcer_channels
+ output_warnings
runtime.setup_done
self
end
private
+
+ def activate_announcer_channels
+ runtime.announcer.activate :warnings
+ end
+
+ def output_warnings
+ runtime.announcer.announce :warnings, 'You disabled the "strict"-mode in your ProxyRb-configuration. You might not notice all errors.' if runtime.config.strict == false
+ end
# disable Metrics/MethodLength
# rubocop:disable Metrics/AbcSize
def events
runtime.event_bus.register(