From 0d1c9e80b1c6ebd5a1e900dc3808d418265f689e Mon Sep 17 00:00:00 2001 From: Petrik Date: Fri, 25 Aug 2023 10:50:50 +0200 Subject: [PATCH] Remove unused rack classes These are no longer autoloaded so they can be removed. See: https://github.com/rack/rack/commit/fd7e0ade3ed8fc82408505f9d6069ee3384da5d1 --- CHANGELOG.md | 7 +++++++ lib/rack/handler.rb | 10 ---------- lib/rack/server.rb | 10 ---------- 3 files changed, 7 insertions(+), 20 deletions(-) create mode 100644 CHANGELOG.md delete mode 100644 lib/rack/handler.rb delete mode 100644 lib/rack/server.rb diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..3fab0b9 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,7 @@ +# Changelog + +All notable changes to this project will be documented in this file. For info on how to format all future additions to this file please reference [Keep A Changelog](https://keepachangelog.com/en/1.0.0/). + +## Unreleased + +- Remove rack shims. diff --git a/lib/rack/handler.rb b/lib/rack/handler.rb deleted file mode 100644 index fd38d6b..0000000 --- a/lib/rack/handler.rb +++ /dev/null @@ -1,10 +0,0 @@ -# frozen_string_literal: true - -# Released under the MIT License. -# Copyright, 2022-2023, by Samuel Williams. - -warn "Rack::Handler is deprecated and replaced by Rackup::Handler" -require_relative '../rackup/handler' -module Rack - Handler = ::Rackup::Handler -end diff --git a/lib/rack/server.rb b/lib/rack/server.rb deleted file mode 100644 index fb789cb..0000000 --- a/lib/rack/server.rb +++ /dev/null @@ -1,10 +0,0 @@ -# frozen_string_literal: true - -# Released under the MIT License. -# Copyright, 2022-2023, by Samuel Williams. - -warn "Rack::Server is deprecated and replaced by Rackup::Server" -require_relative '../rackup/server' -module Rack - Server = ::Rackup::Server -end