Skip to content

Commit

Permalink
feat: add Ciphers option to SSL Option
Browse files Browse the repository at this point in the history
  • Loading branch information
saiqulhaq committed Sep 8, 2024
1 parent c7d0dfb commit 1c1a7d7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
source 'https://rubygems.org'
gemspec

gem 'faraday', '>= 1.0'

gem 'rake', '~> 13.0'
gem 'rspec', '~> 3.0'
gem 'simplecov', '~> 0.19.0'
Expand Down
1 change: 1 addition & 0 deletions faraday-httpclient.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ Gem::Specification.new do |spec|
spec.require_paths = ['lib']

spec.add_dependency 'httpclient', '>= 2.2'
spec.add_dependency 'faraday', '>= 2.11.0'
end
1 change: 1 addition & 0 deletions lib/faraday/adapter/httpclient.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def configure_ssl(client, ssl)
ssl_config.add_trust_ca ssl[:ca_path] if ssl[:ca_path]
ssl_config.client_cert = ssl[:client_cert] if ssl[:client_cert]
ssl_config.client_key = ssl[:client_key] if ssl[:client_key]
ssl_config.ciphers = ssl[:ciphers] if ssl[:ciphers]
ssl_config.verify_depth = ssl[:verify_depth] if ssl[:verify_depth]
end

Expand Down
2 changes: 1 addition & 1 deletion lib/faraday/httpclient/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Faraday
module HTTPClient
VERSION = '2.0.1'
VERSION = '2.1.0'
end
end

0 comments on commit 1c1a7d7

Please sign in to comment.