Skip to content

Commit

Permalink
Use -W:strict_unused_block when running tests on Ruby 3.4+
Browse files Browse the repository at this point in the history
No changes needed to the code.
  • Loading branch information
jeremyevans committed Dec 18, 2024
1 parent cfc126c commit 500ae6f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 500ae6f

Please sign in to comment.