Skip to content

Commit

Permalink
Adds Ruby 3.0 to CI Matrix (#1226)
Browse files Browse the repository at this point in the history
  • Loading branch information
iMacTia authored Dec 31, 2020
1 parent d67d012 commit 687108b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ['2.4', '2.5', '2.6', '2.7']
experimental: [false]
include:
- ruby: head
experimental: true
ruby: ['2.4', '2.5', '2.6', '2.7', '3.0']

steps:
- uses: actions/checkout@v1
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ group :test, :development do
gem 'multipart-parser'
# TODO: remove this once v4 is released
options = (RUBY_VERSION.start_with?('3') ? { github: 'grosser/net-http-persistent', branch: 'grosser/spec' } : {})
gem 'net-http-persistent', (RUBY_VERSION.start_with?('3') ? '>= 3.0' : '~> 3.0'), **options
gem 'net-http-persistent', '>= 3.0', **options
gem 'patron', '>= 0.4.2', platforms: :ruby
gem 'rack-test', '>= 0.6', require: 'rack/test'
gem 'rspec', '~> 3.7'
Expand Down
2 changes: 1 addition & 1 deletion lib/faraday/adapter/net_http_persistent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def proxy_uri(env)

def perform_request(http, env)
http.request env[:url], create_request(env)
rescue Errno::ETIMEDOUT => e
rescue Errno::ETIMEDOUT, Net::OpenTimeout => e
raise Faraday::TimeoutError, e
rescue Net::HTTP::Persistent::Error => e
raise Faraday::TimeoutError, e if e.message.include? 'Timeout'
Expand Down

0 comments on commit 687108b

Please sign in to comment.