Skip to content

Commit

Permalink
Fix for Ruby 3.2.x (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
exoego authored Feb 22, 2023
1 parent 4d8709a commit 3e8fad5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version: ['2.7', '3.0']

ruby-version: ['2.7', '3.0', '3.2']
timeout-minutes: 5 # Typically ends within 1-2 min
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
Expand Down
3 changes: 2 additions & 1 deletion lib/trino/client/faraday_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ def self.faraday_client(options)
url = "#{ssl ? "https" : "http"}://#{server}"
proxy = options[:http_proxy] || options[:proxy] # :proxy is obsoleted

faraday_options = {url: url, proxy: "#{proxy}"}
faraday_options = {url: url}
faraday_options[:proxy] = "#{proxy}" if proxy
faraday_options[:ssl] = ssl if ssl

faraday = Faraday.new(faraday_options) do |faraday|
Expand Down
1 change: 1 addition & 0 deletions trino-client.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ Gem::Specification.new do |gem|
gem.add_development_dependency "addressable", "~> 2.8.1" # 2.5.0 doesn't support Ruby 1.9.3
gem.add_development_dependency "simplecov", "~> 0.22.0"
gem.add_development_dependency "standard", "~> 1.24.3"
gem.add_development_dependency "psych", "~> 3"
end

0 comments on commit 3e8fad5

Please sign in to comment.