Sha256: f3ae285e2784fb48de8d0e97ea57bd84a58a2a52920494b06334dee95a56a549

Contents?: true

Size: 471 Bytes

Versions: 9

Compression:

Stored size: 471 Bytes

Contents

begin
  begin
    # rack/version exists in Rack 2.2.0 and later, compatible with Ruby 2.3 and later
    # we prefer to not load Rack
    require 'rack/version'
  rescue LoadError
    require 'rack'
  end

  # Rack.release is needed for Rack v1, Rack::RELEASE was added in v2
  if Gem::Version.new(Rack.release) >= Gem::Version.new("3.0.0")
    raise StandardError.new "Puma 5 is not compatible with Rack 3, please upgrade to Puma 6 or higher."
  end
rescue LoadError
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
puma-5.6.9-java lib/rack/version_restriction.rb
puma-5.6.9 lib/rack/version_restriction.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/puma-5.6.8/lib/rack/version_restriction.rb
puma-5.6.8-java lib/rack/version_restriction.rb
puma-5.6.8 lib/rack/version_restriction.rb
puma-5.6.7-java lib/rack/version_restriction.rb
puma-5.6.7 lib/rack/version_restriction.rb
puma-5.6.6-java lib/rack/version_restriction.rb
puma-5.6.6 lib/rack/version_restriction.rb