diff --git a/README.md b/README.md index 9f85234f..5def43f1 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,8 @@ Add the following to your code: require 'net_http_ssl_fix' ```` +Other solutions are documented on the RubyGems [website](https://guides.rubygems.org/ssl-certificate-update/). + ### Logging The logging level can be configured for debugging purpose: diff --git a/lib/webdrivers.rb b/lib/webdrivers.rb index 154646e6..d8861d99 100644 --- a/lib/webdrivers.rb +++ b/lib/webdrivers.rb @@ -17,5 +17,10 @@ def logger def configure yield self end + + def net_http_ssl_fix + raise 'Webdrivers.net_http_ssl_fix is no longer available.' \ + ' Please see https://github.com/titusfortner/webdrivers#ssl_connect-errors.' + end end end diff --git a/spec/webdrivers_proxy_support_spec.rb b/spec/webdrivers_proxy_support_spec.rb index f6e95b08..dd93c521 100644 --- a/spec/webdrivers_proxy_support_spec.rb +++ b/spec/webdrivers_proxy_support_spec.rb @@ -42,4 +42,10 @@ def self.http_object it 'does not use the Proxy when proxy is not configured' do expect(http_object.instance_variable_get('@is_proxy_class')).to be false end + + it 'raises an exception when net_http_ssl_fix is called.' do + err = 'Webdrivers.net_http_ssl_fix is no longer available.' \ + ' Please see https://github.com/titusfortner/webdrivers#ssl_connect-errors.' + expect { described_class.net_http_ssl_fix }.to raise_error(StandardError, err) + end end