From 327a865a714942c4e3f257d846e01361f7eb9233 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Fri, 10 Jan 2020 16:00:22 -0500 Subject: [PATCH] Do not deprecate Rack::File Rack 2.0 don't define Rack::Files so in order to remove this deprecation warning and keep applications and librariesworking with rack 2.0 we would need to add conditionals to the code. Lets delay this deprecation until rack 3.0 or rack 2.2. --- lib/rack/file.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/rack/file.rb b/lib/rack/file.rb index 85d5be72f..52b48e8ba 100644 --- a/lib/rack/file.rb +++ b/lib/rack/file.rb @@ -3,6 +3,5 @@ require 'rack/files' module Rack - warn "Rack::File is deprecated, please use Rack::Files instead." File = Files end