lib/proxy_rb/setup.rb in proxy_rb-0.8.2 vs lib/proxy_rb/setup.rb in proxy_rb-0.8.3

- old
+ new

@@ -15,28 +15,18 @@ 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( :proxy_set, @@ -70,10 +60,10 @@ :after_resource_fetched, proc do |event| begin runtime.announcer.announce :http_response_headers, event.entity.driver.response_headers rescue Capybara::NotSupportedByDriverError - runtime.announcer.announce :http_response_headers, { 'Message': format('Using #response_headers with the current driver "%s" is currently not supported', event.entity.driver.class) } + runtime.announcer.announce :http_response_headers, 'Message': format('Using #response_headers with the current driver "%s" is currently not supported', event.entity.driver.class) end end ) end # enable Metrics/MethodLength