From 85c8e1a39069ac10be00634791a8dcee1821bdda Mon Sep 17 00:00:00 2001 From: Peter Cai <222655+pcai@users.noreply.github.com> Date: Mon, 8 Jul 2024 18:52:50 +0000 Subject: [PATCH 1/2] prepare 2.15.1 release --- CHANGELOG.md | 6 +++++- lib/savon/version.rb | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a22822f4..c2c0b9d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,13 @@ # Savon changelog ## Unreleased -* Ruby 3.0+ is required in the gemspec. * Add your PR changelog line here +## 2.15.1 (2024-07-08) + +* Ruby 3.0+ is required in the gemspec. +* Require httpi 4.x - older versions rely on `Rack::Utils::HeaderHash` which is removed in Rack 3.0. + ## 2.15.0 (2024-02-10) * Drop support for ruby 2.7 and below. Added Ruby 3.2 and 3.3 to test matrix. diff --git a/lib/savon/version.rb b/lib/savon/version.rb index 43f45e78..e3e0093a 100644 --- a/lib/savon/version.rb +++ b/lib/savon/version.rb @@ -1,4 +1,4 @@ # frozen_string_literal: true module Savon - VERSION = '2.15.0' + VERSION = '2.15.1' end From 4dd4abfd0c056f80023c0fb947168b18682aa3da Mon Sep 17 00:00:00 2001 From: Peter Cai <222655+pcai@users.noreply.github.com> Date: Mon, 8 Jul 2024 18:58:00 +0000 Subject: [PATCH 2/2] rm digest_auth tests since rack 3.1 removes support --- spec/integration/support/application.rb | 16 ---------------- spec/savon/options_spec.rb | 9 --------- 2 files changed, 25 deletions(-) diff --git a/spec/integration/support/application.rb b/spec/integration/support/application.rb index 1052c169..7f261e28 100644 --- a/spec/integration/support/application.rb +++ b/spec/integration/support/application.rb @@ -63,22 +63,6 @@ def self.respond_with(options = {}) } end - map "/digest_auth" do - unprotected_app = lambda { |env| - IntegrationServer.respond_with :body => "digest-auth" - } - - realm = 'digest-realm' - app = Rack::Auth::Digest::MD5.new(unprotected_app) do |username| - username == 'admin' ? Digest::MD5.hexdigest("admin:#{realm}:secret") : nil - end - app.realm = realm - app.opaque = 'this-should-be-secret' - app.passwords_hashed = true - - run app - end - map "/multipart" do run lambda { |env| boundary = 'mimepart_boundary' diff --git a/spec/savon/options_spec.rb b/spec/savon/options_spec.rb index 914d3be4..d56e6946 100644 --- a/spec/savon/options_spec.rb +++ b/spec/savon/options_spec.rb @@ -568,15 +568,6 @@ def to_s end end - context "global :digest_auth" do - it "sets the digest auth credentials" do - client = new_client(:endpoint => @server.url(:digest_auth), :digest_auth => ["admin", "secret"]) - response = client.call(:authenticate) - - expect(response.http.body).to eq("digest-auth") - end - end - context "global :ntlm" do it "sets the ntlm credentials to use" do credentials = ["admin", "secret"]