From 4c58755862a9d6daaee25b741e1c03dbb6847c59 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Sat, 21 Jan 2023 06:01:27 +1300 Subject: [PATCH] Add `rack-session` and `rackup` gems. Rack 2 includes this code, but in Rack 3 it was extracted into gems. These gems include a v1 release compatible with Rack 2, and a v2 release compatible with Rack v3+. --- Gemfile.lock | 7 +++++++ actionpack/actionpack.gemspec | 1 + railties/railties.gemspec | 1 + 3 files changed, 9 insertions(+) diff --git a/Gemfile.lock b/Gemfile.lock index 107f04dd647..7f26d5c80c6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -40,6 +40,7 @@ PATH actionview (= 7.1.0.alpha) activesupport (= 7.1.0.alpha) rack (~> 2.0, >= 2.2.4) + rack-session (>= 1.0.1) rack-test (>= 0.6.3) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.0, >= 1.2.0) @@ -94,6 +95,7 @@ PATH railties (7.1.0.alpha) actionpack (= 7.1.0.alpha) activesupport (= 7.1.0.alpha) + rackup (>= 1.0.0) rake (>= 12.2) thor (~> 1.0) zeitwerk (~> 2.6) @@ -344,8 +346,13 @@ GEM rack (>= 0.4) rack-protection (3.0.5) rack + rack-session (1.0.1) + rack (< 3) rack-test (2.0.2) rack (>= 1.3) + rackup (1.0.0) + rack (< 3) + webrick rails-dom-testing (2.0.3) activesupport (>= 4.2.0) nokogiri (>= 1.6) diff --git a/actionpack/actionpack.gemspec b/actionpack/actionpack.gemspec index 583717fb47e..18c4cdf0bfd 100644 --- a/actionpack/actionpack.gemspec +++ b/actionpack/actionpack.gemspec @@ -36,6 +36,7 @@ Gem::Specification.new do |s| s.add_dependency "activesupport", version s.add_dependency "rack", "~> 2.0", ">= 2.2.4" + s.add_dependency "rack-session", ">= 1.0.1" s.add_dependency "rack-test", ">= 0.6.3" s.add_dependency "rails-html-sanitizer", "~> 1.0", ">= 1.2.0" s.add_dependency "rails-dom-testing", "~> 2.0" diff --git a/railties/railties.gemspec b/railties/railties.gemspec index af25f42f7d3..72c48fce9d7 100644 --- a/railties/railties.gemspec +++ b/railties/railties.gemspec @@ -40,6 +40,7 @@ Gem::Specification.new do |s| s.add_dependency "activesupport", version s.add_dependency "actionpack", version + s.add_dependency "rackup", ">= 1.0.0" s.add_dependency "rake", ">= 12.2" s.add_dependency "thor", "~> 1.0" s.add_dependency "zeitwerk", "~> 2.6"