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

Version Path
puma-6.5.0-java lib/puma/rack_default.rb
puma-6.5.0 lib/puma/rack_default.rb
jun-puma-1.0.1-java lib/puma/rack_default.rb
jun-puma-1.0.0-java lib/puma/rack_default.rb
puma-6.4.3-java lib/puma/rack_default.rb
puma-6.4.3 lib/puma/rack_default.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/puma-6.4.2/lib/puma/rack_default.rb
puma-6.4.2-java lib/puma/rack_default.rb
puma-6.4.2 lib/puma/rack_default.rb
puma-6.4.1-java lib/puma/rack_default.rb
puma-6.4.1 lib/puma/rack_default.rb
puma-6.4.0-java lib/puma/rack_default.rb
puma-6.4.0 lib/puma/rack_default.rb
puma-6.3.1-java lib/puma/rack_default.rb
puma-6.3.1 lib/puma/rack_default.rb
puma-6.3.0-java lib/puma/rack_default.rb
puma-6.3.0 lib/puma/rack_default.rb