From 32736d2f6326ed8da776ae4709504134f27dbf78 Mon Sep 17 00:00:00 2001 From: Hartley McGuire Date: Wed, 14 Jun 2023 01:18:03 +0000 Subject: [PATCH 1/2] Fix some unused variable verbose warnings (#2084) --- lib/rack/sendfile.rb | 2 +- test/spec_lint.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rack/sendfile.rb b/lib/rack/sendfile.rb index 45f0a8c36..9c6e0c42f 100644 --- a/lib/rack/sendfile.rb +++ b/lib/rack/sendfile.rb @@ -111,7 +111,7 @@ def initialize(app, variation = nil, mappings = []) end def call(env) - status, headers, body = response = @app.call(env) + _, headers, body = response = @app.call(env) if body.respond_to?(:to_path) case type = variation(env) diff --git a/test/spec_lint.rb b/test/spec_lint.rb index 081ff367b..398c7719c 100755 --- a/test/spec_lint.rb +++ b/test/spec_lint.rb @@ -478,7 +478,7 @@ def body.each; end def body.to_path; __FILE__ end app = lambda { |env| [200, {}, body] } - status, headers, body = Rack::Lint.new(app).call(env({})) + body = Rack::Lint.new(app).call(env({}))[2] body.must_respond_to(:to_path) body.to_path.must_equal __FILE__ end From d28c464bcb55a9e26b9a9656e4ba484d327515ed Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Wed, 14 Jun 2023 11:01:11 +0900 Subject: [PATCH 2/2] Bump patch verison. --- lib/rack/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rack/version.rb b/lib/rack/version.rb index d253eec32..e634f23ae 100644 --- a/lib/rack/version.rb +++ b/lib/rack/version.rb @@ -25,7 +25,7 @@ def self.version VERSION end - RELEASE = "3.0.7" + RELEASE = "3.0.8" # Return the Rack release as a dotted string. def self.release