From 74db2d865f644262eaf666260641edca992e395b Mon Sep 17 00:00:00 2001 From: Loren Segal Date: Sun, 9 Apr 2023 11:18:31 -0700 Subject: [PATCH] Remove dependency on webrick in StaticFileHelpers --- CHANGELOG.md | 2 ++ lib/yard/server/commands/static_file_helpers.rb | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 25e592c55..b76536a99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # main +- Remove dependency on webrick in YARD::Server::Commands::StaticFileHelpers + # 0.9.30 - April 9th, 2023 [0.9.30]: https://github.com/lsegal/yard/compare/v0.9.29...v0.9.30 diff --git a/lib/yard/server/commands/static_file_helpers.rb b/lib/yard/server/commands/static_file_helpers.rb index 285fc8168..e79c8588f 100644 --- a/lib/yard/server/commands/static_file_helpers.rb +++ b/lib/yard/server/commands/static_file_helpers.rb @@ -1,5 +1,4 @@ # frozen_string_literal: true -require 'webrick/httputils' module YARD module Server @@ -7,7 +6,7 @@ module Commands # Include this module to get access to {#static_template_file?} # and {favicon?} helpers. module StaticFileHelpers - include WEBrick::HTTPUtils + include Server::HTTPUtils # Serves an empty favicon. # @raise [FinishRequest] finalizes an empty body if the path matches