Switch phlex to fork that silences -w warnings
Rake's test task runs Ruby with -w, and phlex 2.4.1 emits a flood of
method-redefinition warnings on first subclass. The fork drops the
redefinitions so we can keep -w on for our own code.
Also removes the no-op `ruby "~> 3.3"` constraint and brings bundler in
line with the lockfile.
Assisted-by: Claude Opus 4.7 via Claude Code
diff --git a/Gemfile b/Gemfile
index 576c30a..34d61fe 100644
--- a/Gemfile
+++ b/Gemfile
@@ -2,12 +2,12 @@
source "https://rubygems.org"
-ruby "~> 3.3"
-
gem "roda"
gem "puma"
gem "rackup"
-gem "phlex"
+# Fork silences the method-redefinition warnings phlex 2.4 emits
+# under -w when its element methods are first generated.
+gem "phlex", git: "https://github.com/kejadlen/phlex.git"
gem "sequel"
gem "sqlite3"
gem "rake"
diff --git a/Gemfile.lock b/Gemfile.lock
index b2eec0d..16db90d 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -1,3 +1,11 @@
+GIT
+ remote: https://github.com/kejadlen/phlex.git
+ revision: 671ccc021beca34d860ff4751810cff104a75c5c
+ specs:
+ phlex (2.4.1)
+ refract (~> 1.0)
+ zeitwerk (~> 2.7)
+
GEM
remote: https://rubygems.org/
specs:
@@ -7,9 +15,6 @@ GEM
drb (~> 2.0)
prism (~> 1.5)
nio4r (2.7.5)
- phlex (2.4.1)
- refract (~> 1.0)
- zeitwerk (~> 2.7)
prism (1.9.0)
puma (8.0.1)
nio4r (~> 2.0)
@@ -52,7 +57,7 @@ PLATFORMS
DEPENDENCIES
minitest
- phlex
+ phlex!
puma
rack-test
rackup
@@ -61,8 +66,5 @@ DEPENDENCIES
sequel
sqlite3
-RUBY VERSION
- ruby 3.3.8p144
-
BUNDLED WITH
- 2.6.7
+ 4.0.11