Skip to content

Commit

Permalink
Merge pull request #150 from ryz310/network-error-class-definition
Browse files Browse the repository at this point in the history
Redefine network error class
  • Loading branch information
ryz310 authored Dec 5, 2019
2 parents 3b3c2bf + d1d75e9 commit 21856f7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ PATH
specs:
my_api_client (0.10.2)
activesupport (>= 4.2.0)
faraday (>= 0.17.1)
jsonpath
sawyer (>= 0.8.2)

Expand Down
4 changes: 3 additions & 1 deletion lib/my_api_client/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ def inspect
end

NETWORK_ERRORS = [
Faraday::ClientError,
Faraday::TimeoutError,
Faraday::ConnectionFailed,
Faraday::SSLError,
OpenSSL::SSL::SSLError,
Net::OpenTimeout,
Net::ReadTimeout,
Expand Down
1 change: 1 addition & 0 deletions my_api_client.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Gem::Specification.new do |spec|
spec.require_paths = ['lib']

spec.add_dependency 'activesupport', '>= 4.2.0'
spec.add_dependency 'faraday', '>= 0.17.1'
spec.add_dependency 'jsonpath'
spec.add_dependency 'sawyer', '>= 0.8.2'

Expand Down

0 comments on commit 21856f7

Please sign in to comment.