From 21d4d2a7ccf5a4c9976e238fbfd4cdcaf98e2b4a Mon Sep 17 00:00:00 2001 From: Claire Date: Tue, 23 Jun 2026 16:18:31 +0200 Subject: [PATCH] Update dependency `puma` --- Gemfile | 2 +- Gemfile.lock | 6 +++--- config/puma.rb | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Gemfile b/Gemfile index 550f5d20df1..24d954583a8 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,7 @@ source 'https://rubygems.org' ruby '>= 3.2.0', '< 3.5.0' gem 'propshaft' -gem 'puma', '~> 6.3' +gem 'puma', '~> 7.0' gem 'rails', '~> 8.0' gem 'thor', '~> 1.2' diff --git a/Gemfile.lock b/Gemfile.lock index 3c8a8f816a6..083fc933eed 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -460,7 +460,7 @@ GEM timeout net-smtp (0.5.1) net-protocol - nio4r (2.7.4) + nio4r (2.7.5) nokogiri (1.19.4) mini_portile2 (~> 2.8.2) racc (~> 1.4) @@ -639,7 +639,7 @@ GEM date stringio public_suffix (6.0.2) - puma (6.6.0) + puma (7.2.1) nio4r (~> 2.0) pundit (2.5.0) activesupport (>= 3.0.0) @@ -1053,7 +1053,7 @@ DEPENDENCIES prometheus_exporter (~> 2.2) propshaft public_suffix (~> 6.0) - puma (~> 6.3) + puma (~> 7.0) pundit (~> 2.3) rack-attack (~> 6.6) rack-cors diff --git a/config/puma.rb b/config/puma.rb index 16c481a2aee..d34c14b425d 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -27,7 +27,7 @@ if ENV['MASTODON_PROMETHEUS_EXPORTER_ENABLED'] == 'true' end end - on_worker_boot do + before_worker_boot do # Ruby process metrics (memory, GC, etc) PrometheusExporter::Instrumentation::Process.start(type: 'puma') @@ -44,7 +44,7 @@ if ENV['MASTODON_PROMETHEUS_EXPORTER_ENABLED'] == 'true' end end -on_worker_boot do +before_worker_boot do ActiveSupport.on_load(:active_record) do ActiveRecord::Base.establish_connection end