Skip to content

Commit 4fa7209

Browse files
Release 0.1.1
Fix uninitialized constant Puma::Plugin error when Bundler auto-requires the gem before Puma is loaded.
1 parent 8dfc619 commit 4fa7209

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.1.1 (2026/03/20)
4+
5+
- Fix `uninitialized constant Puma::Plugin` error when Bundler auto-requires the gem before Puma is loaded
6+
37
## 0.1.0 (2026/03/19)
48

59
- Initial release

lib/puma-plugin-delayed_stop.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# frozen_string_literal: true
22

3-
# This file exists so that `require "puma-plugin-delayed_stop"` works, but
4-
# Puma discovers plugins via lib/puma/plugin/<name>.rb automatically.
5-
require_relative "puma/plugin/delayed_stop"
3+
# This file exists so Bundler's auto-require doesn't raise a LoadError.
4+
# The actual plugin is loaded by Puma when it encounters `plugin :delayed_stop`
5+
# in the Puma config. It lives at lib/puma/plugin/delayed_stop.rb and is
6+
# discovered by convention — no explicit require is needed.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module PumaPluginDelayedStop
4-
VERSION = "0.1.0"
4+
VERSION = "0.1.1"
55
end

0 commit comments

Comments
 (0)