Skip to content

Commit

Permalink
Fix uninitialized constant Rackup::Handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Bohdan Paratskyi committed Jan 7, 2025
1 parent 437c9ce commit 980eb05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/puma/const.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class UnsupportedOption < RuntimeError
# too taxing on performance.
module Const

PUMA_VERSION = VERSION = "6.5.0"
PUMA_VERSION = VERSION = "6.5.1"
CODE_NAME = "Sky's Version"

PUMA_SERVER_STRING = ["puma", PUMA_VERSION, CODE_NAME].join(" ").freeze
Expand Down
2 changes: 1 addition & 1 deletion lib/rack/handler/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def set_host_port_to_config(host, port, config)
end

# rackup was removed in Rack 3, it is now a separate gem
if Object.const_defined?(:Rackup) && ::Rackup.const_defined?(:Handler)
if Object.const_defined?(:Rackup) && defined?(::Rackup::Handler)
module Rackup
module Handler
module Puma
Expand Down

0 comments on commit 980eb05

Please sign in to comment.