Skip to content

Commit

Permalink
Webdrivers.net_http_ssl_fix now raises an exception. (#68)
Browse files Browse the repository at this point in the history
* Webdrivers.net_http_ssl_fix now raises StandardError as the method is no longer available.

* Add link to other SSL related solutions on the RubyGems website.
  • Loading branch information
kapoorlakshya authored Apr 17, 2019
1 parent 7dfe67b commit 47befa9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions lib/webdrivers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions spec/webdrivers_proxy_support_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 47befa9

Please sign in to comment.