Skip to content

Commit 500ae6f

Browse files
committed
Use -W:strict_unused_block when running tests on Ruby 3.4+
No changes needed to the code.
1 parent cfc126c commit 500ae6f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Rakefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ rdoc_task_class.new do |rdoc|
2020
rdoc.rdoc_files.add %w"README.rdoc MIT-LICENSE lib/sequel_postgresql_triggers.rb lib/sequel/extensions/pg_triggers.rb"
2121
end
2222

23-
test_flags = "-w" if RUBY_VERSION >= '3'
23+
test_flags = String.new
24+
test_flags << " -w" if RUBY_VERSION >= '3'
25+
test_flags << " -W:strict_unused_block" if RUBY_VERSION >= '3.4'
2426

2527
desc "Run specs with extension"
2628
task :spec do

0 commit comments

Comments
 (0)