From 500ae6fe1fe74e33e23113c2bb0836093b42b137 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Tue, 17 Dec 2024 19:58:55 -0800 Subject: [PATCH] Use -W:strict_unused_block when running tests on Ruby 3.4+ No changes needed to the code. --- Rakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 0bbac4d..6a6bbf7 100644 --- a/Rakefile +++ b/Rakefile @@ -20,7 +20,9 @@ rdoc_task_class.new do |rdoc| rdoc.rdoc_files.add %w"README.rdoc MIT-LICENSE lib/sequel_postgresql_triggers.rb lib/sequel/extensions/pg_triggers.rb" end -test_flags = "-w" if RUBY_VERSION >= '3' +test_flags = String.new +test_flags << " -w" if RUBY_VERSION >= '3' +test_flags << " -W:strict_unused_block" if RUBY_VERSION >= '3.4' desc "Run specs with extension" task :spec do