From a90797a8dd726f88e328744b0cc7303c2f4e307e Mon Sep 17 00:00:00 2001 From: Michael Lovitt Date: Thu, 25 Jul 2024 13:27:57 -0500 Subject: [PATCH] Stop referencing deprecated Rack::VERSION --- lib/evil/client/resolver/request.rb | 2 +- spec/unit/connection_spec.rb | 2 +- spec/unit/resolver/request_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/evil/client/resolver/request.rb b/lib/evil/client/resolver/request.rb index 0c1dc12..b8b24c3 100644 --- a/lib/evil/client/resolver/request.rb +++ b/lib/evil/client/resolver/request.rb @@ -35,7 +35,7 @@ def environment "SERVER_NAME" => uri.host, "SERVER_PORT" => uri.port, "HTTP_Variables" => headers, - "rack.version" => Rack::VERSION, + "rack.version" => Rack.release, "rack.url_scheme" => uri.scheme, "rack.input" => Formatter.call(body, format, boundary: boundary), "rack.multithread" => false, diff --git a/spec/unit/connection_spec.rb b/spec/unit/connection_spec.rb index 4682167..64e6ca0 100644 --- a/spec/unit/connection_spec.rb +++ b/spec/unit/connection_spec.rb @@ -15,7 +15,7 @@ "Authorization" => "Bearer eoiqopr==", "Content-Type" => "application/json" }, - "rack.version" => Rack::VERSION, + "rack.version" => Rack.release, "rack.input" => "name=Andrew&age=46", "rack.url_scheme" => "https", "rack.multithread" => false, diff --git a/spec/unit/resolver/request_spec.rb b/spec/unit/resolver/request_spec.rb index 7e8c2f3..0b7a329 100644 --- a/spec/unit/resolver/request_spec.rb +++ b/spec/unit/resolver/request_spec.rb @@ -50,7 +50,7 @@ "Authorization" => "Bearer eoiqopr==", "Content-Type" => "application/json" }, - "rack.version" => Rack::VERSION, + "rack.version" => Rack.release, "rack.input" => '{"version":"v77"}', "rack.url_scheme" => "https", "rack.multithread" => false,