Skip to content

Commit 35958b5

Browse files
authored
Merge pull request #578 from rono23/puma-7
Rename `on_stopped` to `after_stopped` for Puma 7 compatibility
2 parents 99a2e99 + 937b93f commit 35958b5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
* Support Rails 8.1 scaffolding which disables system tests by default. #585 @flavorjones
88
* Puma plugin now has experimental support for Rails engines. #567 @bopm
9+
* Puma plugin uses Puma 7's `after_stopped` callback, quashing a deprecation warning. #578 @rono23
910

1011

1112
## v4.3.0 / 2025-07-06

lib/puma/plugin/tailwindcss.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ def start(launcher)
2020
end
2121
end
2222

23-
launcher.events.on_stopped { stop_tailwind }
23+
if Gem::Version.new(Puma::Const::PUMA_VERSION) >= Gem::Version.new("7")
24+
launcher.events.after_stopped { stop_tailwind }
25+
else
26+
launcher.events.on_stopped { stop_tailwind }
27+
end
2428

2529
in_background do
2630
monitor_tailwind

0 commit comments

Comments
 (0)