From 812590f93a757d8dc2327f924330d62f98d1b011 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 25 Jun 2024 16:46:15 +0900 Subject: [PATCH] Use rack/files instead of rack/file --- lib/tdiary/rack/static.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tdiary/rack/static.rb b/lib/tdiary/rack/static.rb index 4f305c290..03bdcc21f 100644 --- a/lib/tdiary/rack/static.rb +++ b/lib/tdiary/rack/static.rb @@ -1,11 +1,11 @@ -require 'rack/file' +require 'rack/files' module TDiary module Rack class Static def initialize( app, base_dir ) @app = app - @file = base_dir.map{|dir| ::Rack::File.new(dir) } + @file = base_dir.map{|dir| ::Rack::Files.new(dir) } end def call( env )