Sha256: fdf94330e70f39872e147387467595addce77621b58ab489c9eaf8641a415602
Contents?: true
Size: 530 Bytes
Versions: 17
Compression:
Stored size: 530 Bytes
Contents
# frozen_string_literal: true require_relative '../rack/handler/puma' # rackup was removed in Rack 3, it is now a separate gem if Object.const_defined? :Rackup module Rackup module Handler def self.default(options = {}) ::Rackup::Handler::Puma end end end elsif Object.const_defined?(:Rack) && Rack.release < '3' module Rack module Handler def self.default(options = {}) ::Rack::Handler::Puma end end end else raise "Rack 3 must be used with the Rackup gem" end
Version data entries
17 entries across 17 versions & 3 rubygems