From 8a9ce7c78eb192359230822fc514145d616ba710 Mon Sep 17 00:00:00 2001 From: Saiqul Haq Date: Mon, 9 Sep 2024 09:57:54 +0700 Subject: [PATCH] Feat: Support ciphers SSLOptions --- .github/workflows/ci.yml | 6 +++--- Gemfile | 2 +- faraday-net_http_persistent.gemspec | 2 +- lib/faraday/adapter/net_http_persistent.rb | 1 + 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4558890..8801b60 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,10 +17,10 @@ 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: @@ -28,7 +28,7 @@ jobs: 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 diff --git a/Gemfile b/Gemfile index f12209f..984137e 100644 --- a/Gemfile +++ b/Gemfile @@ -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" diff --git a/faraday-net_http_persistent.gemspec b/faraday-net_http_persistent.gemspec index aba0c0c..5c10dad 100644 --- a/faraday-net_http_persistent.gemspec +++ b/faraday-net_http_persistent.gemspec @@ -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 diff --git a/lib/faraday/adapter/net_http_persistent.rb b/lib/faraday/adapter/net_http_persistent.rb index b601bd2..a5ab9c4 100644 --- a/lib/faraday/adapter/net_http_persistent.rb +++ b/lib/faraday/adapter/net_http_persistent.rb @@ -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,