Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Support ciphers SSLOptions
Browse files Browse the repository at this point in the history
saiqulhaq committed Sep 9, 2024
1 parent 2d35fce commit 8a9ce7c
Showing 4 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -17,18 +17,18 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set up Ruby 2.7
- name: Set up Ruby 3.x
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
ruby-version: 3
bundler-cache: true
- run: bundle exec standardrb
build:
needs: [linting]
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3']
ruby: ['3.0', '3.1', '3.2', '3.3']

steps:
- uses: actions/checkout@v4
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ source "https://rubygems.org"

gemspec

gem "faraday", ">= 1"
gem "faraday", ">= 2.11.0"

gem "multipart-parser", "~> 0.1.1"
gem "rake", "~> 13.0"
2 changes: 1 addition & 1 deletion faraday-net_http_persistent.gemspec
Original file line number Diff line number Diff line change
@@ -24,6 +24,6 @@ Gem::Specification.new do |spec|
spec.files = Dir.glob("lib/**/*") + %w[README.md LICENSE.md]
spec.require_paths = ["lib"]

spec.add_dependency "faraday", "~> 2.5"
spec.add_dependency "faraday", ">= 2.11.0", "< 3"
spec.add_dependency "net-http-persistent", "~> 4.0"
end
1 change: 1 addition & 0 deletions lib/faraday/adapter/net_http_persistent.rb
Original file line number Diff line number Diff line change
@@ -179,6 +179,7 @@ def request_with_wrapped_block(http, env)

SSL_CONFIGURATIONS = {
certificate: :client_cert,
ciphers: :ciphers,
private_key: :client_key,
ca_file: :ca_file,
ssl_version: :version,

0 comments on commit 8a9ce7c

Please sign in to comment.