Skip to content

Commit 6cdd7fb

Browse files
Support Puma 7
1 parent 76f4a6c commit 6cdd7fb

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
ruby-version: ["3.0", "3.1", "3.2", "3.3"]
16-
puma-version: ["5", "6"]
16+
puma-version: ["5", "6", "7"]
1717

1818
steps:
1919
- uses: actions/checkout@v4

lib/puma/plugin/delayed_stop.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
Puma::Plugin.create do
1313
# Signals Puma registers handlers for. It overwrites plugin handlers for these
1414
# after plugins start, so using one here would silently break the delayed stop.
15-
PUMA_SIGNALS = %w[TERM INT USR1 USR2 HUP].freeze
15+
# INFO (BSD/macOS) and PWR (Linux) were added in Puma 7.
16+
PUMA_SIGNALS = %w[TERM INT USR1 USR2 HUP INFO PWR].freeze
1617

1718
# POSIX signal that triggers a delayed stop.
1819
# Defaults to QUIT so as not to interfere with Puma's default signal handling.

puma-plugin-delayed_stop.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
2727
spec.files = Dir["lib/**/*.rb", "LICENSE", "README.md", "CHANGELOG.md"]
2828
spec.require_paths = ["lib"]
2929

30-
spec.add_dependency "puma", ">= 5.0", "< 7"
30+
spec.add_dependency "puma", ">= 5.0", "< 8"
3131

3232
spec.add_development_dependency "bundler", ">= 2.0"
3333
spec.add_development_dependency "rake", "~> 13.0"

0 commit comments

Comments
 (0)