From 761ce3e1f410cdc8f6eabc046b0acb16363c01ec Mon Sep 17 00:00:00 2001 From: rono23 <26753+rono23@users.noreply.github.com> Date: Fri, 5 Sep 2025 08:33:00 +0900 Subject: [PATCH 1/2] Rename `on_stopped` to `after_stopped` for Puma 7 compatibility --- lib/puma/plugin/tailwindcss.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/puma/plugin/tailwindcss.rb b/lib/puma/plugin/tailwindcss.rb index 3cf777b..29b5b62 100644 --- a/lib/puma/plugin/tailwindcss.rb +++ b/lib/puma/plugin/tailwindcss.rb @@ -20,7 +20,11 @@ def start(launcher) end end - launcher.events.on_stopped { stop_tailwind } + if Gem::Version.new(Puma::Const::PUMA_VERSION) >= Gem::Version.new("7") + launcher.events.after_stopped { stop_tailwind } + else + launcher.events.on_stopped { stop_tailwind } + end in_background do monitor_tailwind From 937b93f01f12ee8f59e6ca4e2ce4dceb1104da82 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Mon, 27 Oct 2025 16:03:37 -0400 Subject: [PATCH 2/2] doc: update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 798cb1c..a0c97ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ * Support Rails 8.1 scaffolding which disables system tests by default. #585 @flavorjones * Puma plugin now has experimental support for Rails engines. #567 @bopm +* Puma plugin uses Puma 7's `after_stopped` callback, quashing a deprecation warning. #578 @rono23 ## v4.3.0 / 2025-07-06