Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion lib/puma/plugin/tailwindcss.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down